public class MultiDimensionDataSource extends HydraDataSource
Modifier and Type | Field and Description |
---|---|
private Map<String,MultiDimensionAdapter> |
adapterMap |
protected MultiDimensionAdapter[] |
adapters |
private List |
categories |
protected List[] |
categoriesArray |
private static String |
DATA_DESCRIPTION |
private Map<String,double[]> |
defaultSubset |
protected Map[] |
defaultSubsets |
protected String |
filename
Sources file
|
private boolean |
hasImagePreview |
private boolean |
hasTrackPreview |
private static org.slf4j.Logger |
logger |
private MultiSpectralData |
multiSpectData |
protected Hashtable[] |
propsArray |
protected MultiDimensionReader |
reader |
protected SpectrumAdapter |
spectrumAdapter |
TrackAdapter |
track_adapter |
private TrackSelection |
trackSelection |
oldSourceFromBundles, request, sources
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 |
---|
MultiDimensionDataSource()
Zero-argument constructor for construction via unpersistence.
|
MultiDimensionDataSource(DataSourceDescriptor descriptor,
List newSources,
Hashtable properties)
Construct a new HYDRA hdf data source.
|
MultiDimensionDataSource(DataSourceDescriptor descriptor,
String fileName,
Hashtable properties)
Construct a new HYDRA hdf data source.
|
Modifier and Type | Method and Description |
---|---|
protected Data |
applyProperties(Data data,
Hashtable requestProperties,
Map<String,double[]> subset) |
private ArrayAdapter |
createTrackVertArrayAdapter(String variableName) |
private DataChoice |
doMakeDataChoice(int idx,
String var) |
void |
doMakeDataChoices()
Make and insert the
DataChoices for this DataSource . |
boolean |
equals(Object o)
Check to see if this
HDFHydraDataSource is equal to the object
in question. |
Data |
getData(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties) |
protected Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
Get the data for the given DataChoice and selection criteria.
|
String |
getDatasetName() |
MultiSpectralData |
getMultiSpectralData() |
Map<String,double[]> |
getSubsetFromLonLatRect(MultiDimensionSubset select,
GeoSelection geoSelection) |
private String |
getTrackDimensionName(String variableName) |
private String |
getVariableDimensionName(String variableName,
int dimension) |
private String |
getVerticalDimensionName(String variableName) |
private boolean |
hasVariable(String variableName) |
void |
initAfterUnpersistence() |
protected void |
initDataSelectionComponents(List<DataSelectionComponent> components,
DataChoice dataChoice) |
void |
setDatasetName(String name) |
void |
setup() |
canSaveDataToLocalDisk, clearCachedData, doMakeDateTimes, getAdapters, isFileBased
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, doRemove, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getAllTimesForTimeDriver, getCache, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, getDataPaths, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDefaultSave, getDescription, getDescriptor, getErrorMessage, getEverChangedName, getExtraGeoSelectionComponent, getExtraTimesComponent, getFileFilterForPolling, getFullDescription, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getLocationsForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPartialDescription, getPassword, getPathsThatCanBeRelative, getPollingInfo, getProperties, getPropertiesComponents, getPropertiesHeader, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getRelativePaths, getSampleDataProjection, getSaveDataFileLabel, getSelectedDateTimes, getSelectedDateTimes, getTimesFromDataSelection, getTmpPaths, getTypeName, getUserName, handlePropertiesAction, hasPollingInfo, holdsDateTimes, holdsIndices, identifiedBy, identifiedByName, incrOutstandingGetDataCalls, initAfter, initAfterCreation, initDataChoice, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeDerivedDataChoices, makeSaveLocalActions, newFileFromPolling, newFilesFromPolling, notifyDataChange, propertiesChanged, putCache, putCache, reloadData, reloadData, reloadProperties, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, saveDataToLocalDisk, selectTimesFromList, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDefaultSave, setDescription, setDescriptor, setDirectory, setEverChangedName, setInError, setInError, setInError, setName, setNewFiles, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, updateState, writeFieldMaskFile, writeFieldMaskFile
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUniqueId
private static final org.slf4j.Logger logger
protected MultiDimensionReader reader
protected MultiDimensionAdapter[] adapters
protected Map[] defaultSubsets
private Map<String,MultiDimensionAdapter> adapterMap
protected Hashtable[] propsArray
protected List[] categoriesArray
protected SpectrumAdapter spectrumAdapter
private static final String DATA_DESCRIPTION
private Map<String,double[]> defaultSubset
public TrackAdapter track_adapter
private MultiSpectralData multiSpectData
private List categories
private boolean hasImagePreview
private boolean hasTrackPreview
private TrackSelection trackSelection
public MultiDimensionDataSource()
public MultiDimensionDataSource(DataSourceDescriptor descriptor, String fileName, Hashtable properties) throws VisADException
descriptor
- descriptor for this DataSource
fileName
- name of the hdf file to readproperties
- hashtable of propertiesVisADException
- problem creating datapublic MultiDimensionDataSource(DataSourceDescriptor descriptor, List newSources, Hashtable properties) throws VisADException
descriptor
- descriptor for this DataSource
newSources
- List of filenamesproperties
- hashtable of propertiesVisADException
- problem creating datapublic void initAfterUnpersistence()
initAfterUnpersistence
in interface DataSource
initAfterUnpersistence
in class DataSourceImpl
public void doMakeDataChoices()
DataChoices
for this DataSource
.doMakeDataChoices
in class DataSourceImpl
private DataChoice doMakeDataChoice(int idx, String var) throws Exception
Exception
public boolean equals(Object o)
HDFHydraDataSource
is equal to the object
in question.equals
in class DataSourceImpl
o
- object in questionpublic MultiSpectralData getMultiSpectralData()
public String getDatasetName()
public void setDatasetName(String name)
public Map<String,double[]> getSubsetFromLonLatRect(MultiDimensionSubset select, GeoSelection geoSelection)
public Data getData(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException
getData
in interface DataSource
getData
in class DataSourceImpl
VisADException
RemoteException
protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException
HydraDataSource
getDataInner
in class HydraDataSource
dataChoice
- DataChoice for selectioncategory
- DataCategory for the DataChoice (not used)dataSelection
- subsetting criteriarequestProperties
- extra request propertiesVisADException
- couldn't create the dataRemoteException
- couldn't create a remote data objectprotected Data applyProperties(Data data, Hashtable requestProperties, Map<String,double[]> subset) throws VisADException, RemoteException, Exception
VisADException
RemoteException
Exception
protected void initDataSelectionComponents(List<DataSelectionComponent> components, DataChoice dataChoice)
initDataSelectionComponents
in class DataSourceImpl
private String getTrackDimensionName(String variableName)
private String getVerticalDimensionName(String variableName)
private String getVariableDimensionName(String variableName, int dimension)
private boolean hasVariable(String variableName)
private ArrayAdapter createTrackVertArrayAdapter(String variableName)