Package ucar.unidata.data.imagery
Class McIDASImageDataSource
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.imagery.ImageDataSource
ucar.unidata.data.imagery.McIDASImageDataSource
- All Implemented Interfaces:
Sharable
,DataSource
,DataSourceFactory
,XmlPersistable
A data source for ADDE images AREA files. This is a thin wrapper (derived class) around the ImageDataSource
which does all of the work.
- Version:
- $Revision: 1.26 $ $Date: 2006/12/01 20:42:05 $
- Author:
- Don Murray
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.unidata.data.imagery.ImageDataSource
ImageDataSource.ImageDataInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AddeImageDataSelection
_more_protected Hashtable
_more_Fields inherited from class ucar.unidata.data.imagery.ImageDataSource
imageList, imageTimes, PROP_BANDINFO, PROP_IMAGETYPE, TYPE_RADAR, TYPE_SATELLITE
Fields inherited from class ucar.unidata.data.DataSourceImpl
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES
Fields inherited from interface ucar.unidata.data.DataSource
DATAPATH_DATE_FORMAT, DATAPATH_DATE_PATTERN, MOST_RECENT, ordinalNames, PROP_AUTOCREATEDISPLAY, PROP_BASEDIRECTORY, PROP_CACHEABLE, PROP_DATACHOICENAME, PROP_DISPLAYPROPERTIES, PROP_DOCUMENTLINKS, PROP_FILEPATTERN, PROP_GEOLOCATION, PROP_ICON, PROP_NAME, PROP_POLLINFO, PROP_RESOLVERURL, PROP_SERVICE_HTTP, PROP_SUBPROPERTIES, PROP_TIMELABELS, PROP_TIMESTRIDE, PROP_TITLE
-
Constructor Summary
ConstructorsConstructorDescriptionThe parameterless ctor unpersisting.McIDASImageDataSource
(DataSourceDescriptor descriptor, String[] images, Hashtable properties) Create a new McIDASImageDataSource with array of AREA files.McIDASImageDataSource
(DataSourceDescriptor descriptor, String image, Hashtable properties) Construct a McIDASImageDataSourceMcIDASImageDataSource
(DataSourceDescriptor descriptor, ArrayList images, Hashtable properties) Create a new McIDASImageDataSource with list of AREA files.McIDASImageDataSource
(DataSourceDescriptor descriptor, ImageDataset ids, Hashtable properties) Create a new McIDASImageDataSource with aImageDataset
-
Method Summary
Modifier and TypeMethodDescriptionint
calculateMagFactor
(int dataPoints, int displayPoints) _more_float[]
convertBritToTemp
(float[] inputData) convert a gray scale value to brightness temperaturefloat
convertBritToTemp
(int inVal) _more__more_protected Data
getDataInner
(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) _more_Get the name for the main data objectgetImageBoundingBox
(int eMag, int lMag, int lines, int elems) _more_Overwrite base class method to return the name of this class.getPreviewImageInfo
(AreaDirectory aDir, String navType) _more_void
init()
_more_void
_more_protected void
initDataSelectionComponents
(List components, DataChoice dataChoice) _more_protected SingleBandedImage
makeImage
(AddeImageDescriptor aid, MathType rangeType, boolean fromSequence, String readLabel) _more_void
setChoiceName
(String choiceName) _more_Methods inherited from class ucar.unidata.data.imagery.ImageDataSource
canCacheDataToDisk, canSaveDataToLocalDisk, doMakeDataChoices, doMakeDateTimes, doRemove, equals, getAllDateTimes, getBandCategories, getBandTimeSeriesCategories, getCacheDataToDisk, getCompositeDataChoices, getDataPaths, getDescriptor, getDescriptors, getDescriptorsToUse, getFullDescription, getImageList, getLocationsForPolling, getSelectedDateTimes, getTwoDCategories, getTwoDTimeSeriesCategories, hashCode, initDataFromPollingInfo, isFileBased, makeImage, makeImageDataset, makeImageDescriptors, makeImageSequence, newFileFromPolling, propertiesChanged, reloadData, reloadData, saveDataToLocalDisk, setImageList, setNewFiles, updateState
Methods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllLevels, getAllLevels, getAllTimesForTimeDriver, getCache, getCache, getCacheClearDelay, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDefaultSave, getDescription, getDescriptor, getErrorMessage, getEverChangedName, getExtraGeoSelectionComponent, getExtraTimesComponent, getFileFilterForPolling, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPartialDescription, getPassword, getPathsThatCanBeRelative, getPollingInfo, getProperties, getPropertiesComponents, getPropertiesHeader, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getRelativePaths, getSampleDataProjection, getSaveDataFileLabel, getSelectedDateTimes, getTimesFromDataSelection, getTmpPaths, getTypeName, getUserName, handlePropertiesAction, hasPollingInfo, holdsDateTimes, holdsIndices, identifiedBy, identifiedByName, incrOutstandingGetDataCalls, initAfter, initAfterCreation, initDataChoice, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeDerivedDataChoices, makeSaveLocalActions, newFilesFromPolling, notifyDataChange, putCache, putCache, reloadProperties, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, selectTimesFromList, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDefaultSave, setDescription, setDescriptor, setDirectory, setEverChangedName, setInError, setInError, setInError, setName, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, writeFieldMaskFile, writeFieldMaskFile
Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ucar.unidata.data.DataSource
getUniqueId
-
Field Details
-
bandDirs
_more_ -
addeImageDataSelection
_more_
-
-
Constructor Details
-
McIDASImageDataSource
public McIDASImageDataSource()The parameterless ctor unpersisting. -
McIDASImageDataSource
Construct a McIDASImageDataSource- Parameters:
descriptor
- _more_image
- _more_properties
- _more_
-
McIDASImageDataSource
public McIDASImageDataSource(DataSourceDescriptor descriptor, ArrayList images, Hashtable properties) Create a new McIDASImageDataSource with list of AREA files.- Parameters:
descriptor
- The descriptor for this data source.images
- List of AREA filesproperties
- The properties for this data source.
-
McIDASImageDataSource
public McIDASImageDataSource(DataSourceDescriptor descriptor, String[] images, Hashtable properties) Create a new McIDASImageDataSource with array of AREA files.- Parameters:
descriptor
- The descriptor for this data source.images
- Array of AREA filesproperties
- The properties for this data source.
-
McIDASImageDataSource
public McIDASImageDataSource(DataSourceDescriptor descriptor, ImageDataset ids, Hashtable properties) Create a new McIDASImageDataSource with aImageDataset
- Parameters:
descriptor
- The descriptor for this data source.ids
- The dataset.properties
- The properties for this data source.
-
-
Method Details
-
init
public void init()_more_ -
getChoiceName
_more_- Returns:
- _more_
-
setChoiceName
_more_- Parameters:
choiceName
- _more_
-
initAfterUnpersistence
public void initAfterUnpersistence()_more_- Specified by:
initAfterUnpersistence
in interfaceDataSource
- Overrides:
initAfterUnpersistence
in classImageDataSource
-
getImageDataSourceName
Overwrite base class method to return the name of this class.- Specified by:
getImageDataSourceName
in classImageDataSource
- Returns:
- The name.
-
getDataName
Get the name for the main data object- Overrides:
getDataName
in classImageDataSource
- Returns:
- name of main data object
-
getDataInner
protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException _more_- Overrides:
getDataInner
in classImageDataSource
- Parameters:
dataChoice
- _more_category
- _more_dataSelection
- _more_requestProperties
- _more_- Returns:
- _more_
- Throws:
RemoteException
- _more_VisADException
- _more_
-
getImageBoundingBox
_more_- Parameters:
eMag
- _more_lMag
- _more_lines
- _more_elems
- _more_- Returns:
- _more_
-
calculateMagFactor
public int calculateMagFactor(int dataPoints, int displayPoints) _more_- Parameters:
dataPoints
- _more_displayPoints
- _more_- Returns:
- _more_
-
makeImage
protected SingleBandedImage makeImage(AddeImageDescriptor aid, MathType rangeType, boolean fromSequence, String readLabel) throws VisADException, RemoteException _more_- Overrides:
makeImage
in classImageDataSource
- Parameters:
aid
- _more_rangeType
- _more_fromSequence
- _more_readLabel
- _more_- Returns:
- _more_
- Throws:
RemoteException
- _more_VisADException
- _more_
-
initDataSelectionComponents
_more_- Overrides:
initDataSelectionComponents
in classDataSourceImpl
- Parameters:
components
- _more_dataChoice
- _more_
-
getPreviewImageInfo
_more_- Parameters:
aDir
- _more_navType
- _more_- Returns:
- _more_
-
convertBritToTemp
public float convertBritToTemp(int inVal) _more_- Parameters:
inVal
- _more_- Returns:
- _more_
-
convertBritToTemp
public float[] convertBritToTemp(float[] inputData) convert a gray scale value to brightness temperature- Parameters:
inputData
- input data array- Returns:
- _more_
-