Package ucar.unidata.data.imagery
Class AddeImageDataSource
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.imagery.ImageDataSource
ucar.unidata.data.imagery.AddeImageDataSource
- All Implemented Interfaces:
Sharable,DataSource,DataSourceFactory,XmlPersistable
A data source for ADDE images. This is a thin wrapper (derived class) around the ImageDataSource
which does all of the work.
- Version:
- $Revision: 1.56 $ $Date: 2007/07/05 18:46:09 $
- 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_static final String_more_static final String_more_protected List<DataChoice> _more_Fields inherited from class ucar.unidata.data.imagery.ImageDataSource
imageList, imageTimes, PROP_BANDINFO, PROP_IMAGETYPE, TYPE_RADAR, TYPE_SATELLITEFields inherited from class ucar.unidata.data.DataSourceImpl
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YESFields 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.AddeImageDataSource(DataSourceDescriptor descriptor, String[] images, Hashtable properties) Create a new AddeImageDataSource with an array (String) image ADDE urls.AddeImageDataSource(DataSourceDescriptor descriptor, String image, Hashtable properties) Create a new AddeImageDataSource with an a single image ADDE url.AddeImageDataSource(DataSourceDescriptor descriptor, List images, Hashtable properties) Create a new AddeImageDataSource with an array (String) image ADDE urls.AddeImageDataSource(DataSourceDescriptor descriptor, ImageDataset ids, Hashtable properties) Create a new AddeImageDataSource with the given dataset. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDataChoice(DataChoice choice) _more_intcalculateMagFactor(int dataPoints, int displayPoints) _more_geoSpaceSubsetD(Rectangle2D rect, String unit, int eMag, int lMag, AREAnav baseAnav, List despList, double maxLat, double minLat, double maxLon, double minLon, int factor, int dlMag, int deMag, String placeValue, boolean isProgressiveResolution, ucar.unidata.geoloc.LatLonPointImpl centerLLP, String nav) _more__more_getBaseSource(String source) _more__more_protected DatagetDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) _more_Get the name for this data.protected ListgetDescriptors(DataChoice dataChoice, DataSelection subset) _more_int_more_intgetEMag()_more_getImageBoundingBox(int eMag, int lMag, int lines, int elems) _more_Overwrite base class method to return the name of this class.static String_more_double[]getLatLonPoints(ucar.unidata.geoloc.LatLonPoint[] latLonPoints) _more_int_more_intgetLMag()_more_getPreviewSource(String inSource, AreaDirectory aDir) _more_protected StringgetUnitString(String description) _more_protected voidhandlePreviewImageError(int flag, Exception excp) _more_void_more_protected voidinitDataSelectionComponents(List components, DataChoice dataChoice) _more_protected voidinitOldBundle(DataChoice dataChoice, List<AddeImageDescriptor> descriptors, String sourceStr) _more_void_more_static String_more_static StringreplaceKey(String src, String key, Object val) _more_static StringreplaceKey(String src, String oldKey, String newKey, Object val) _more_static ListreSetImageDataDescriptor(List despList, String locateKey, String locateValue, String PlaceValue, int lines, int elems, int lineMag, int eleMag, String unit, String nav) _more_protected ListsaveDataToLocalDisk(String prefix, Object loadId, boolean changeLinks) Save files to local diskvoidsetChoiceName(String choiceName) _more_voidsetEleMag(int mag) _more_voidsetLineMag(int mag) _more_Methods inherited from class ucar.unidata.data.imagery.ImageDataSource
canCacheDataToDisk, canSaveDataToLocalDisk, doMakeDataChoices, doMakeDateTimes, doRemove, equals, getAllDateTimes, getBandCategories, getBandTimeSeriesCategories, getCacheDataToDisk, getCompositeDataChoices, getDataPaths, getDescriptor, getDescriptorsToUse, getFullDescription, getImageList, getLocationsForPolling, getSelectedDateTimes, getTwoDCategories, getTwoDTimeSeriesCategories, hashCode, initDataFromPollingInfo, isFileBased, makeImage, makeImage, makeImageDataset, makeImageDescriptors, makeImageSequence, newFileFromPolling, propertiesChanged, reloadData, setImageList, setNewFiles, updateStateMethods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, 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, writeFieldMaskFileMethods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ucar.unidata.data.DataSource
getUniqueId
-
Field Details
-
stashedChoices
_more_ -
SPACING_BRIT
_more_- See Also:
-
SPACING_NON_BRIT
_more_- See Also:
-
addeImageDataSelection
_more_
-
-
Constructor Details
-
AddeImageDataSource
public AddeImageDataSource()The parameterless ctor unpersisting. -
AddeImageDataSource
public AddeImageDataSource(DataSourceDescriptor descriptor, String image, Hashtable properties) throws VisADException Create a new AddeImageDataSource with an a single image ADDE url.- Parameters:
descriptor- The descriptor for this data source.image- ADDE Urlproperties- The properties for this data source.- Throws:
VisADException- for bad
-
AddeImageDataSource
public AddeImageDataSource(DataSourceDescriptor descriptor, String[] images, Hashtable properties) throws VisADException Create a new AddeImageDataSource with an array (String) image ADDE urls.- Parameters:
descriptor- The descriptor for this data source.images- Array of ADDE urls.properties- The properties for this data source.- Throws:
VisADException- for bad
-
AddeImageDataSource
public AddeImageDataSource(DataSourceDescriptor descriptor, List images, Hashtable properties) throws VisADException Create a new AddeImageDataSource with an array (String) image ADDE urls.- Parameters:
descriptor- The descriptor for this data source.images- Array of ADDE urls.properties- The properties for this data source.- Throws:
VisADException- for bad
-
AddeImageDataSource
public AddeImageDataSource(DataSourceDescriptor descriptor, ImageDataset ids, Hashtable properties) throws VisADException Create a new AddeImageDataSource with the given dataset.- Parameters:
descriptor- The descriptor for this data source.ids- The dataset.properties- The properties for this data source.- Throws:
VisADException- for bad
-
-
Method Details
-
initAfterUnpersistence
public void initAfterUnpersistence()_more_- Specified by:
initAfterUnpersistencein interfaceDataSource- Overrides:
initAfterUnpersistencein classImageDataSource
-
getDataInner
protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException _more_- Overrides:
getDataInnerin classImageDataSource- Parameters:
dataChoice- _more_category- _more_dataSelection- _more_requestProperties- _more_- Returns:
- _more_
- Throws:
RemoteException- _more_VisADException- _more_
-
getUnitString
_more_- Parameters:
description- _more_- Returns:
- _more_
-
getDescriptors
_more_- Overrides:
getDescriptorsin classImageDataSource- Parameters:
dataChoice- _more_subset- _more_- Returns:
- _more_
-
getImageBoundingBox
_more_- Parameters:
eMag- _more_lMag- _more_lines- _more_elems- _more_- Returns:
- _more_
-
getEleMag
public int getEleMag()_more_- Returns:
- _more_
-
getLineMag
public int getLineMag()_more_- Returns:
- _more_
-
setEleMag
public void setEleMag(int mag) _more_- Parameters:
mag- _more_
-
setLineMag
public void setLineMag(int mag) _more_- Parameters:
mag- _more_
-
getPreviewSource
_more_- Parameters:
inSource- _more_aDir- _more_- Returns:
- _more_
-
getImageDataSourceName
Overwrite base class method to return the name of this class.- Specified by:
getImageDataSourceNamein classImageDataSource- Returns:
- The name.
-
getDataName
Get the name for this data. Override base class for more info.- Overrides:
getDataNamein classImageDataSource- Returns:
- name for the main data object
-
saveDataToLocalDisk
protected List saveDataToLocalDisk(String prefix, Object loadId, boolean changeLinks) throws Exception Save files to local disk- Overrides:
saveDataToLocalDiskin classImageDataSource- Parameters:
prefix- destination dir and file prefixloadId- For JobManagerchangeLinks- Change internal file references- Returns:
- Files copied
- Throws:
Exception- On badness
-
addDataChoice
_more_- Overrides:
addDataChoicein classDataSourceImpl- Parameters:
choice- _more_
-
getChoiceName
_more_- Returns:
- _more_
-
setChoiceName
_more_- Parameters:
choiceName- _more_
-
reloadData
public void reloadData()_more_- Specified by:
reloadDatain interfaceDataSource- Overrides:
reloadDatain classImageDataSource
-
reSetImageDataDescriptor
public static List reSetImageDataDescriptor(List despList, String locateKey, String locateValue, String PlaceValue, int lines, int elems, int lineMag, int eleMag, String unit, String nav) throws RemoteException, VisADException _more_- Parameters:
despList- _more_locateKey- _more_locateValue- _more_PlaceValue- _more_lines- _more_elems- _more_lineMag- _more_eleMag- _more_unit- _more_nav- _more_- Returns:
- _more_
- Throws:
RemoteException- _more_VisADException- _more_
-
getLatLonPoints
public double[] getLatLonPoints(ucar.unidata.geoloc.LatLonPoint[] latLonPoints) _more_- Parameters:
latLonPoints- _more_- Returns:
- _more_
-
calculateMagFactor
public int calculateMagFactor(int dataPoints, int displayPoints) _more_- Parameters:
dataPoints- _more_displayPoints- _more_- Returns:
- _more_
-
getBaseSource
_more_- Parameters:
source- _more_- Returns:
- _more_
-
replaceKey
_more_- Parameters:
src- _more_key- _more_val- _more_- Returns:
- _more_
-
replaceKey
_more_- Parameters:
src- _more_oldKey- _more_newKey- _more_val- _more_- Returns:
- _more_
-
getKey
_more_- Parameters:
src- _more_key- _more_- Returns:
- _more_
-
removeKey
_more_- Parameters:
src- _more_key- _more_- Returns:
- _more_
-
initOldBundle
protected void initOldBundle(DataChoice dataChoice, List<AddeImageDescriptor> descriptors, String sourceStr) _more_- Parameters:
dataChoice- _more_descriptors- _more_sourceStr- _more_
-
handlePreviewImageError
_more_- Parameters:
flag- _more_excp- _more_
-
getAddeImageDataSelection
_more_- Returns:
- _more_
-
initDataSelectionComponents
_more_- Overrides:
initDataSelectionComponentsin classDataSourceImpl- Parameters:
components- _more_dataChoice- _more_
-
getEMag
public int getEMag()_more_- Returns:
- _more_
-
getLMag
public int getLMag()_more_- Returns:
- _more_
-