public class AddeImageParameterDataSource extends ucar.unidata.data.imagery.AddeImageDataSource
Modifier and Type | Class and Description |
---|---|
static class |
AddeImageParameterDataSource.BundlePreviewSelection |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUX_KEY |
static java.lang.String |
BAND_KEY |
static java.lang.String |
BANDINFO_KEY |
private java.lang.String |
baseSource |
private java.lang.String |
choiceName |
private java.util.Hashtable<java.lang.String,ucar.unidata.data.DataSelection> |
choiceToSel |
(package private) AreaDirectory[][] |
currentDirs
_more_
|
private java.lang.String |
displaySource |
static java.lang.String |
DOC_KEY |
(package private) boolean |
doGeoSpeedup |
private int |
elementMag |
private int |
elementResolution |
private float |
eRes |
private boolean |
fromBundle
Whether or not this DataSource was loaded from a bundle.
|
private boolean |
hasRemoteChoices
Are any of the data choices based upon remote files?
|
private boolean |
haveDataSelectionComponents |
private java.util.List |
iml |
private java.util.Hashtable |
initProps |
private GeoLatLonSelection |
laLoSel |
private ucar.unidata.data.DataChoice |
lastChoice |
private ucar.unidata.data.GeoSelection |
lastGeoSelection |
static java.lang.String |
LATLON_KEY |
static java.lang.String |
LINELE_KEY |
private int |
lineMag |
private int |
lineResolution |
private static org.slf4j.Logger |
logger |
private float |
lRes |
static java.lang.String |
MAG_KEY |
static java.lang.String |
NAV_KEY |
static java.lang.String |
PLACE_KEY |
static java.lang.String |
PREVIEW_KEY |
private AreaDirectory |
previewDir |
private int |
previewEleRes |
private FlatField |
previewImage |
private int |
previewLineRes |
private AREAnav |
previewNav |
private MapProjection |
previewProjection |
private GeoPreviewSelection |
previewSel |
private java.util.Map<java.lang.String,AreaDirectory> |
requestIdToDirectory |
MapProjection |
sampleMapProjection |
protected ucar.unidata.geoloc.ProjectionImpl |
sampleProjection
The first projection we find
|
private java.lang.String |
saveCoordType |
private int |
saveEleMag |
private java.util.List |
saveImageList |
private double |
saveLat |
private int |
saveLineMag |
private double |
saveLon |
private int |
saveNumEle |
private int |
saveNumLine |
private java.lang.String |
savePlace |
private java.lang.Boolean |
saveShowPreview |
private java.util.Hashtable |
selectionProps |
private java.lang.Boolean |
showPreview |
static java.lang.String |
SIZE_KEY
Public keys for server, group, dataset, user, project.
|
private java.lang.String |
source |
private java.util.Hashtable |
sourceProps |
static java.lang.String |
SPAC_KEY |
static java.lang.String |
SPACING_BRIT |
static java.lang.String |
SPACING_NON_BRIT |
protected java.util.List<ucar.unidata.data.DataChoice> |
stashedChoices |
static java.lang.String |
UNIT_KEY |
descriptorsToUse, imageList, imageTimes, myDataChoices, PROP_BANDINFO, PROP_IMAGETYPE, timeMap, TYPE_RADAR, TYPE_SATELLITE
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES
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_TITLE
Constructor and Description |
---|
AddeImageParameterDataSource() |
AddeImageParameterDataSource(ucar.unidata.data.DataSourceDescriptor descriptor,
ucar.unidata.data.imagery.ImageDataset ids,
java.util.Hashtable properties)
Create a new AddeImageParameterDataSource with the given dataset.
|
AddeImageParameterDataSource(ucar.unidata.data.DataSourceDescriptor descriptor,
java.util.List images,
java.util.Hashtable properties)
Creates a new
AddeImageParameterDataSource with an
List of ADDE URL strings. |
AddeImageParameterDataSource(ucar.unidata.data.DataSourceDescriptor descriptor,
java.lang.String[] images,
java.util.Hashtable properties)
Create a new AddeImageParameterDataSource with an array of ADDE URL strings.
|
AddeImageParameterDataSource(ucar.unidata.data.DataSourceDescriptor descriptor,
java.lang.String image,
java.util.Hashtable properties)
Creates a
AddeImageParameterDataSource with a single ADDE URL. |
Modifier and Type | Method and Description |
---|---|
protected void |
addDataChoice(ucar.unidata.data.DataChoice choice)
Insert the new DataChoice into the dataChoice list.
|
protected boolean |
canDoProgressiveResolution() |
boolean |
canSaveDataToLocalDisk()
Is this data source capable of saving its data to local disk
|
void |
doMakeDataChoices()
Create the set of
DataChoice that represent
the data held by this data source. |
private void |
getAreaDirectory(java.util.Hashtable properties) |
java.lang.String |
getChoiceName()
_more_
|
private java.util.List |
getChoicesFromSubset(ucar.unidata.data.CompositeDataChoice choice,
ucar.unidata.data.DataSelection subset)
Get the subset of the composite based on the selection
|
protected Data |
getDataInner(ucar.unidata.data.DataChoice dataChoice,
ucar.unidata.data.DataCategory category,
ucar.unidata.data.DataSelection dataSelection,
java.util.Hashtable requestProperties)
Create the actual data represented by the given
DataChoice . |
protected java.lang.String |
getDataPrefix() |
ucar.unidata.data.DataSelection |
getDataSelection()
Overridden so that McIDAS-V can attempt to return the correct
DataSelection for the current DataChoice . |
java.util.List |
getDateTimeSelection()
Return the list of times held by the DataSelection member.
|
ucar.unidata.data.imagery.AddeImageDescriptor |
getDescriptor(java.lang.Object object)
A utility method that helps us deal with legacy bundles that used to
have String file names as the id of a data choice.
|
java.util.List |
getDescriptors(ucar.unidata.data.DataChoice dataChoice,
ucar.unidata.data.DataSelection subset)
Get a list of descriptors from the choice and subset
|
java.lang.String |
getDisplaySource() |
java.lang.String |
getImageDataSourceName()
Overwrite base class method to return the name of this class.
|
boolean |
getIsProgressiveResolution() |
static java.lang.String |
getKey(java.lang.String src,
java.lang.String key) |
private float[] |
getLineEleResolution(AreaDirectory ad) |
boolean |
getMatchDisplayRegion() |
ucar.unidata.util.PollingInfo |
getPollingInfo() |
private java.util.List<AreaDirectory> |
getPreviewDirectories(ucar.unidata.data.imagery.AddeImageDescriptor imageDescriptor) |
private ucar.unidata.data.imagery.AddeImageDescriptor |
getPreviewDirectory(ucar.unidata.data.imagery.AddeImageDescriptor aid) |
private void |
getSaveComponents() |
int |
getSaveEleMag() |
double |
getSaveLat() |
int |
getSaveLineMag() |
double |
getSaveLon() |
int |
getSaveNumEle() |
int |
getSaveNumLine() |
java.lang.String |
getSavePlace() |
boolean |
getSaveShowPreview() |
ucar.unidata.data.DataSelection |
getSelForChoice(ucar.unidata.data.DataChoice choice) |
private java.lang.String |
getServer(java.lang.String urlString) |
boolean |
getShowPreview() |
java.lang.String |
getSource() |
java.util.Hashtable |
getSourceProps() |
protected java.lang.String |
getUrl()
Create the first part of the ADDE request URL
|
protected void |
handlePreviewImageError(int flag,
java.lang.Exception excp)
Show the given error to the user.
|
private boolean |
hasBandInfo(ucar.unidata.data.DataChoice dataChoice)
Check if the DataChoice has a BandInfo for its ID
|
protected boolean |
hasPollingInfo() |
boolean |
hasSelForChoice(ucar.unidata.data.DataChoice choice) |
void |
initAfterUnpersistence()
_more_
|
protected boolean |
initDataFromPollingInfo()
Method for intializing the data.
|
protected void |
initDataSelectionComponents(java.util.List components,
ucar.unidata.data.DataChoice dataChoice)
_more_
|
static boolean |
isFromFile(ucar.unidata.data.imagery.AddeImageDescriptor descriptor)
Checks to see if a given
AddeImageDescriptor is based upon a
local (or remote) file. |
protected boolean |
isPolling() |
private static java.lang.String |
makeBandParam(ucar.unidata.data.imagery.AddeImageDescriptor descriptor) |
private static java.lang.String |
makeBandParam(ucar.unidata.data.imagery.BandInfo bi)
Make a parameter name for the BandInfo
|
private SingleBandedImage |
makeImage(ucar.unidata.data.imagery.AddeImageDescriptor aid,
MathType rangeType,
boolean fromSequence,
java.lang.String readLabel,
ucar.unidata.data.DataSelection subset)
Create the single image defined by the given
AddeImageDescriptor . |
protected ImageSequence |
makeImageSequence(ucar.unidata.data.DataChoice dataChoice,
ucar.unidata.data.DataSelection subset)
Create the image sequence defined by the given dataChoice.
|
private boolean |
makePreviewImage(ucar.unidata.data.DataChoice dataChoice)
A hook to allow this data source to add data selection components
to the IDV field selector
|
protected void |
propertiesChanged()
The user changed the properties.
|
void |
putSelForChoice(ucar.unidata.data.DataChoice choice,
ucar.unidata.data.DataSelection sel) |
protected java.util.List |
readTextLines(java.lang.String url)
Read the adde text url and return the lines of text.
|
static java.lang.String |
removeKey(java.lang.String src,
java.lang.String key) |
static java.lang.String |
replaceKey(java.lang.String sourceUrl,
java.lang.String key,
java.lang.Object value) |
static java.lang.String |
replaceKey(java.lang.String src,
java.lang.String oldKey,
java.lang.String newKey,
java.lang.Object value) |
private <T> void |
replaceKey(java.lang.String key,
T value) |
protected java.util.List |
saveDataToLocalDisk(java.lang.String prefix,
java.lang.Object loadId,
boolean changeLinks)
Save files to local disk
|
private boolean |
sensorIsGEO(int sensorID)
Return true if the Sensor is Geostationary
|
void |
setChoiceName(java.lang.String choiceName)
_more_
|
void |
setDataSelection(ucar.unidata.data.DataSelection s)
Overridden so that McIDAS-V can associate this data source's current
DataChoice with the given DataSelection . |
void |
setDateTimeSelection(java.util.List selectedTimes)
Set the list of selected times for this data source.
|
void |
setDisplaySource(java.lang.String src,
java.util.Hashtable props) |
void |
setIsProgressiveResolution(boolean isPG) |
private void |
setMag() |
void |
setPollingInfo(ucar.unidata.util.PollingInfo value) |
void |
setSaveEleMag(int saveEleMag) |
void |
setSaveLat(double saveLat) |
void |
setSaveLineMag(int saveLineMag) |
void |
setSaveLon(double saveLon) |
void |
setSaveNumEle(int saveNumEle) |
void |
setSaveNumLine(int saveNumLine) |
void |
setSavePlace(java.lang.String savePlace) |
void |
setSaveShowPreview(boolean saveShowPreview) |
void |
setShowPreview(boolean showPreview) |
void |
setSource(java.lang.String source) |
void |
setSourceProps(java.util.Hashtable sourceProps) |
calculateMagFactor, geoSpaceSubsetD, getAddeImageDataSelection, getBaseSource, getDataName, getEleMag, getEMag, getImageBoundingBox, getLatLonPoints, getLineMag, getLMag, getPreviewSource, getUnitString, initOldBundle, makeSamplingLabel, reloadData, reSetImageDataDescriptor, setEleMag, setLineMag
canCacheDataToDisk, doMakeDateTimes, doRemove, equals, getAllDateTimes, getBandCategories, getBandTimeSeriesCategories, getCacheDataToDisk, getCompositeDataChoices, getDataPaths, getDescriptorsToUse, getFullDescription, getImageList, getLocationsForPolling, getSelectedDateTimes, getTwoDCategories, getTwoDTimeSeriesCategories, getUniqueDayStrings, hashCode, isFileBased, makeImage, makeImageDataset, makeImageDescriptors, newFileFromPolling, reloadData, setBandInfo, setImageList, setNewFiles, updateState
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, getDataSelectionComponents, getDataSource, getDateTimes, getDefaultSave, getDescription, getDescriptor, getErrorMessage, getEverChangedName, getExtraGeoSelectionComponent, getExtraTimesComponent, getFileFilterForPolling, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPartialDescription, getPassword, getPathsThatCanBeRelative, getProperties, getPropertiesComponents, getPropertiesHeader, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getRelativePaths, getSampleDataProjection, getSaveDataFileLabel, getSelectedDateTimes, getTimesFromDataSelection, getTmpPaths, getTypeName, getUserName, handlePropertiesAction, holdsDateTimes, holdsIndices, identifiedBy, identifiedByName, incrOutstandingGetDataCalls, initAfter, initAfterCreation, initDataChoice, initFromXml, 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, setDefaultSave, setDescription, setDescriptor, setDirectory, setEverChangedName, setInError, setInError, setInError, setName, setObjectProperties, setObjectProperty, setPassword, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, writeFieldMaskFile, writeFieldMaskFile
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
private static final org.slf4j.Logger logger
public static final java.lang.String SIZE_KEY
public static final java.lang.String PLACE_KEY
public static final java.lang.String LATLON_KEY
public static final java.lang.String LINELE_KEY
public static final java.lang.String MAG_KEY
public static final java.lang.String BAND_KEY
public static final java.lang.String BANDINFO_KEY
public static final java.lang.String UNIT_KEY
public static final java.lang.String PREVIEW_KEY
public static final java.lang.String SPAC_KEY
public static final java.lang.String NAV_KEY
public static final java.lang.String AUX_KEY
public static final java.lang.String DOC_KEY
public static final java.lang.String SPACING_BRIT
public static final java.lang.String SPACING_NON_BRIT
protected ucar.unidata.geoloc.ProjectionImpl sampleProjection
public MapProjection sampleMapProjection
private java.lang.String source
private java.lang.String baseSource
private java.util.Hashtable sourceProps
private java.util.Hashtable selectionProps
private int lineResolution
private int elementResolution
private float lRes
private float eRes
private int lineMag
private int elementMag
private ucar.unidata.data.GeoSelection lastGeoSelection
private ucar.unidata.data.DataChoice lastChoice
private java.lang.Boolean showPreview
private FlatField previewImage
private MapProjection previewProjection
private java.util.Hashtable initProps
private AreaDirectory previewDir
private AREAnav previewNav
private boolean haveDataSelectionComponents
private GeoPreviewSelection previewSel
private GeoLatLonSelection laLoSel
private java.lang.String choiceName
private java.lang.String saveCoordType
private java.lang.String savePlace
private double saveLat
private double saveLon
private int saveNumLine
private int saveNumEle
private int saveLineMag
private int saveEleMag
private java.lang.Boolean saveShowPreview
private java.lang.String displaySource
protected java.util.List<ucar.unidata.data.DataChoice> stashedChoices
private java.util.List iml
private java.util.List saveImageList
private int previewLineRes
private int previewEleRes
boolean doGeoSpeedup
private boolean fromBundle
private boolean hasRemoteChoices
private java.util.Map<java.lang.String,AreaDirectory> requestIdToDirectory
private java.util.Hashtable<java.lang.String,ucar.unidata.data.DataSelection> choiceToSel
AreaDirectory[][] currentDirs
public AddeImageParameterDataSource()
public AddeImageParameterDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, java.lang.String image, java.util.Hashtable properties) throws VisADException
AddeImageParameterDataSource
with a single ADDE URL.
Note: the URLs should point at "image" data.descriptor
- DataSourceDescriptor
for this data source.image
- ADDE URLproperties
- The properties for this data source.VisADException
public AddeImageParameterDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, java.lang.String[] images, java.util.Hashtable properties) throws VisADException
descriptor
- DataSourceDescriptor
for this data source.images
- Array of ADDE URLs.properties
- Properties for this data source.VisADException
public AddeImageParameterDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, java.util.List images, java.util.Hashtable properties) throws VisADException
AddeImageParameterDataSource
with an
List
of ADDE URL strings.
Note: the URLs should point at "image" data.descriptor
- DataSourceDescriptor
for this data source.images
- List
of ADDE URL strings.properties
- Properties for this data source.VisADException
public AddeImageParameterDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, ucar.unidata.data.imagery.ImageDataset ids, java.util.Hashtable properties) throws VisADException
descriptor
- DataSourceDescriptor
for this data source.ids
- Dataset.properties
- Properties for this data source.VisADException
protected void propertiesChanged()
ucar.unidata.data.imagery.ImageDataSource
propertiesChanged
in class ucar.unidata.data.imagery.ImageDataSource
protected boolean initDataFromPollingInfo()
ucar.unidata.data.imagery.ImageDataSource
initDataFromPollingInfo
in class ucar.unidata.data.imagery.ImageDataSource
protected boolean isPolling()
isPolling
in class ucar.unidata.data.DataSourceImpl
public void setPollingInfo(ucar.unidata.util.PollingInfo value)
setPollingInfo
in class ucar.unidata.data.DataSourceImpl
protected boolean hasPollingInfo()
hasPollingInfo
in class ucar.unidata.data.DataSourceImpl
public ucar.unidata.util.PollingInfo getPollingInfo()
getPollingInfo
in class ucar.unidata.data.DataSourceImpl
public void initAfterUnpersistence()
ucar.unidata.data.imagery.AddeImageDataSource
initAfterUnpersistence
in interface ucar.unidata.data.DataSource
initAfterUnpersistence
in class ucar.unidata.data.imagery.AddeImageDataSource
public boolean canSaveDataToLocalDisk()
ucar.unidata.data.imagery.ImageDataSource
canSaveDataToLocalDisk
in interface ucar.unidata.data.DataSource
canSaveDataToLocalDisk
in class ucar.unidata.data.imagery.ImageDataSource
public ucar.unidata.data.DataSelection getSelForChoice(ucar.unidata.data.DataChoice choice)
public boolean hasSelForChoice(ucar.unidata.data.DataChoice choice)
public void putSelForChoice(ucar.unidata.data.DataChoice choice, ucar.unidata.data.DataSelection sel)
protected java.util.List saveDataToLocalDisk(java.lang.String prefix, java.lang.Object loadId, boolean changeLinks) throws java.lang.Exception
saveDataToLocalDisk
in class ucar.unidata.data.imagery.AddeImageDataSource
prefix
- destination dir and file prefixloadId
- For JobManagerchangeLinks
- Change internal file referencesjava.lang.Exception
- On badnessprotected java.lang.String getDataPrefix()
getDataPrefix
in class ucar.unidata.data.DataSourceImpl
public ucar.unidata.data.imagery.AddeImageDescriptor getDescriptor(java.lang.Object object)
getDescriptor
in class ucar.unidata.data.imagery.ImageDataSource
object
- May be an AddeImageDescriptor (for new bundles) or a
String that is converted to an image descriptor.public java.lang.String getImageDataSourceName()
getImageDataSourceName
in class ucar.unidata.data.imagery.AddeImageDataSource
private void setMag()
private void getAreaDirectory(java.util.Hashtable properties)
protected void initDataSelectionComponents(java.util.List components, ucar.unidata.data.DataChoice dataChoice)
ucar.unidata.data.imagery.AddeImageDataSource
initDataSelectionComponents
in class ucar.unidata.data.imagery.AddeImageDataSource
components
- _more_dataChoice
- _more_private boolean makePreviewImage(ucar.unidata.data.DataChoice dataChoice)
dataChoice
- the data choiceprivate boolean sensorIsGEO(int sensorID)
McIDAS
- Sensor Source number.
See https://www.ssec.wisc.edu/mcidas/doc/users_guide/2017.2/app_c-1.htmlprotected void handlePreviewImageError(int flag, java.lang.Exception excp)
handlePreviewImageError
in class ucar.unidata.data.imagery.AddeImageDataSource
excp
- The exceptionflag
- _more_public static java.lang.String removeKey(java.lang.String src, java.lang.String key)
public static java.lang.String replaceKey(java.lang.String sourceUrl, java.lang.String key, java.lang.Object value)
public static java.lang.String replaceKey(java.lang.String src, java.lang.String oldKey, java.lang.String newKey, java.lang.Object value)
private <T> void replaceKey(java.lang.String key, T value)
public static java.lang.String getKey(java.lang.String src, java.lang.String key)
public void doMakeDataChoices()
DataChoice
that represent
the data held by this data source. We create one top-level
CompositeDataChoice
that represents
all of the image time steps. We create a set of children
DirectDataChoice
, one for each time step.doMakeDataChoices
in class ucar.unidata.data.imagery.ImageDataSource
public ucar.unidata.data.DataSelection getDataSelection()
DataSelection
for the current DataChoice
.getDataSelection
in interface ucar.unidata.data.DataSource
getDataSelection
in class ucar.unidata.data.DataSourceImpl
public void setDataSelection(ucar.unidata.data.DataSelection s)
DataChoice
with the given DataSelection
.setDataSelection
in class ucar.unidata.data.DataSourceImpl
protected void addDataChoice(ucar.unidata.data.DataChoice choice)
addDataChoice
in class ucar.unidata.data.imagery.AddeImageDataSource
choice
- new choice to addpublic static boolean isFromFile(ucar.unidata.data.imagery.AddeImageDescriptor descriptor)
AddeImageDescriptor
is based upon a
local (or remote) file.
The check is pretty simple: is descriptor.getSource()
a valid
path?
descriptor
- AddeImageDescriptor
of questionable origins. Shouldn't be null
.true
if descriptor
's source is a valid path.protected Data getDataInner(ucar.unidata.data.DataChoice dataChoice, ucar.unidata.data.DataCategory category, ucar.unidata.data.DataSelection dataSelection, java.util.Hashtable requestProperties) throws VisADException, java.rmi.RemoteException
DataChoice
.getDataInner
in class ucar.unidata.data.imagery.AddeImageDataSource
dataChoice
- Either the
CompositeDataChoice
representing all time steps or a
DirectDataChoice
representing a single time step.category
- Not really used.dataSelection
- Defines any time subsets.requestProperties
- extra request propertiesjava.rmi.RemoteException
- Java RMI problemVisADException
- VisAD problemprivate boolean hasBandInfo(ucar.unidata.data.DataChoice dataChoice)
dataChoice
- choice to checkprotected ImageSequence makeImageSequence(ucar.unidata.data.DataChoice dataChoice, ucar.unidata.data.DataSelection subset) throws VisADException, java.rmi.RemoteException
makeImageSequence
in class ucar.unidata.data.imagery.ImageDataSource
dataChoice
- The choice.subset
- any time subsets.java.rmi.RemoteException
- Java RMI problemVisADException
- VisAD problemprivate SingleBandedImage makeImage(ucar.unidata.data.imagery.AddeImageDescriptor aid, MathType rangeType, boolean fromSequence, java.lang.String readLabel, ucar.unidata.data.DataSelection subset) throws VisADException, java.rmi.RemoteException
AddeImageDescriptor
.aid
- Holds image directory and location of the desired image.rangeType
- "rangeType" to use (if non-null
).fromSequence
- _more_readLabel
- subset
- geographical subsetting infojava.rmi.RemoteException
- Java RMI problemVisADException
- VisAD problemprivate static java.lang.String makeBandParam(ucar.unidata.data.imagery.BandInfo bi)
bi
- the BandInfo in questionprivate static java.lang.String makeBandParam(ucar.unidata.data.imagery.AddeImageDescriptor descriptor)
public java.util.List getDescriptors(ucar.unidata.data.DataChoice dataChoice, ucar.unidata.data.DataSelection subset)
getDescriptors
in class ucar.unidata.data.imagery.AddeImageDataSource
dataChoice
- Data choicesubset
- subsetting infoprivate java.util.List getChoicesFromSubset(ucar.unidata.data.CompositeDataChoice choice, ucar.unidata.data.DataSelection subset)
choice
- composite choicesubset
- time selectionprivate java.util.List<AreaDirectory> getPreviewDirectories(ucar.unidata.data.imagery.AddeImageDescriptor imageDescriptor)
private ucar.unidata.data.imagery.AddeImageDescriptor getPreviewDirectory(ucar.unidata.data.imagery.AddeImageDescriptor aid)
private java.lang.String getServer(java.lang.String urlString)
public void setDisplaySource(java.lang.String src, java.util.Hashtable props)
public java.lang.String getDisplaySource()
private float[] getLineEleResolution(AreaDirectory ad)
protected java.util.List readTextLines(java.lang.String url)
url
- adde url to a text filenull
if in error.protected java.lang.String getUrl()
public java.util.Hashtable getSourceProps()
public void setSourceProps(java.util.Hashtable sourceProps)
public java.lang.String getChoiceName()
ucar.unidata.data.imagery.AddeImageDataSource
getChoiceName
in class ucar.unidata.data.imagery.AddeImageDataSource
public void setChoiceName(java.lang.String choiceName)
ucar.unidata.data.imagery.AddeImageDataSource
setChoiceName
in class ucar.unidata.data.imagery.AddeImageDataSource
choiceName
- _more_public java.lang.String getSavePlace()
public void setSavePlace(java.lang.String savePlace)
public double getSaveLat()
public void setSaveLat(double saveLat)
public double getSaveLon()
public void setSaveLon(double saveLon)
public int getSaveNumLine()
public void setSaveNumLine(int saveNumLine)
public int getSaveNumEle()
public void setSaveNumEle(int saveNumEle)
public int getSaveLineMag()
public void setSaveLineMag(int saveLineMag)
public int getSaveEleMag()
public void setSaveEleMag(int saveEleMag)
public java.lang.String getSource()
public void setSource(java.lang.String source)
public boolean getShowPreview()
public void setShowPreview(boolean showPreview)
public boolean getSaveShowPreview()
public void setSaveShowPreview(boolean saveShowPreview)
private void getSaveComponents()
public java.util.List getDateTimeSelection()
getDateTimeSelection
in interface ucar.unidata.data.DataSource
getDateTimeSelection
in class ucar.unidata.data.DataSourceImpl
public void setDateTimeSelection(java.util.List selectedTimes)
setDateTimeSelection
in interface ucar.unidata.data.DataSource
setDateTimeSelection
in class ucar.unidata.data.DataSourceImpl
selectedTimes
- List of selected timesprotected boolean canDoProgressiveResolution()
public boolean getIsProgressiveResolution()
public void setIsProgressiveResolution(boolean isPG)
public boolean getMatchDisplayRegion()