public class MultiSpectralDataSource extends HydraDataSource
| Modifier and Type | Field and Description |
|---|---|
private HashMap<String,MultiSpectralData> |
adapterMap |
protected MultiDimensionAdapter[] |
adapters |
private List |
categories |
private ComboDataChoice |
comboChoice |
private static String |
DATA_DESCRIPTION |
private HashMap |
defaultSubset |
private boolean |
doAggregation |
protected String |
filename
Sources file
|
private boolean |
hasChannelSelect |
private boolean |
hasImagePreview |
private static org.slf4j.Logger |
logger |
private MultiSpectralData |
multiSpectData |
private ArrayList<MultiSpectralData> |
multiSpectData_s |
static String |
paramKey |
private FlatField |
previewImage |
private PreviewSelection |
previewSelection |
protected MultiDimensionReader |
reader |
private SpectrumAdapter |
spectrumAdapter |
private SwathAdapter |
swathAdapter |
oldSourceFromBundles, request, sourceschangeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YESDATAPATH_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 |
|---|
MultiSpectralDataSource()
Zero-argument constructor for construction via unpersistence.
|
MultiSpectralDataSource(DataSourceDescriptor descriptor,
List newSources,
Hashtable properties)
Construct a new HYDRA hdf data source.
|
MultiSpectralDataSource(DataSourceDescriptor descriptor,
String fileName,
Hashtable properties)
Construct a new HYDRA hdf data source.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChoice(String name,
Data data) |
protected Data |
applyProperties(Data data,
Hashtable requestProperties,
HashMap subset) |
private DataChoice |
doMakeDataChoice(int idx,
MultiSpectralData adapter) |
void |
doMakeDataChoices()
Make and insert the
DataChoice-s for this
DataSource. |
boolean |
equals(Object o)
Check to see if this
HDFHydraDataSource is equal to the object
in question. |
ComboDataChoice |
getComboDataChoice() |
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.
|
List |
getDataPaths()
Called by the IDV's persistence manager in an effort to collect all of
the files that should be included in a zipped bundle.
|
MapProjection |
getDataProjection(HashMap subset) |
String |
getDatasetName() |
MultiSpectralData |
getMultiSpectralData() |
MultiSpectralData |
getMultiSpectralData(DataChoice choice) |
HashMap |
getSubsetFromLonLatRect(MultiDimensionSubset select,
GeoSelection geoSelection) |
void |
initAfterUnpersistence() |
protected void |
initDataSelectionComponents(List<DataSelectionComponent> components,
DataChoice dataChoice) |
void |
setDatasetName(String name) |
void |
setup() |
canSaveDataToLocalDisk, clearCachedData, doMakeDateTimes, getAdapters, isFileBasedaddActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, 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, getCache, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, 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, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, 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, writeFieldMaskFileapplySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUniqueIdprivate static final org.slf4j.Logger logger
protected MultiDimensionReader reader
protected MultiDimensionAdapter[] adapters
private static final String DATA_DESCRIPTION
private HashMap defaultSubset
private SwathAdapter swathAdapter
private SpectrumAdapter spectrumAdapter
private MultiSpectralData multiSpectData
private ArrayList<MultiSpectralData> multiSpectData_s
private HashMap<String,MultiSpectralData> adapterMap
private List categories
private boolean hasImagePreview
private boolean hasChannelSelect
private boolean doAggregation
private ComboDataChoice comboChoice
private PreviewSelection previewSelection
private FlatField previewImage
public static final String paramKey
public MultiSpectralDataSource()
public MultiSpectralDataSource(DataSourceDescriptor descriptor, String fileName, Hashtable properties) throws VisADException
descriptor - descriptor for this DataSourcefileName - name of the hdf file to readproperties - hashtable of propertiesVisADException - problem creating datapublic MultiSpectralDataSource(DataSourceDescriptor descriptor, List newSources, Hashtable properties) throws VisADException
descriptor - descriptor for this DataSourcesources - List of filenamesproperties - hashtable of propertiesVisADException - problem creating datapublic void initAfterUnpersistence()
initAfterUnpersistence in interface DataSourceinitAfterUnpersistence in class DataSourceImplpublic void doMakeDataChoices()
DataChoice-s for this
DataSource.doMakeDataChoices in class DataSourceImplprivate DataChoice doMakeDataChoice(int idx, MultiSpectralData adapter) throws Exception
Exceptionpublic boolean equals(Object o)
HDFHydraDataSource is equal to the object
in question.equals in class DataSourceImplo - object in questionpublic MultiSpectralData getMultiSpectralData()
public MultiSpectralData getMultiSpectralData(DataChoice choice)
public String getDatasetName()
public void setDatasetName(String name)
public ComboDataChoice getComboDataChoice()
public List getDataPaths()
getDataPaths in interface DataSourcegetDataPaths in class DataSourceImplpublic HashMap getSubsetFromLonLatRect(MultiDimensionSubset select, GeoSelection geoSelection)
public Data getData(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException
getData in interface DataSourcegetData in class DataSourceImplVisADExceptionRemoteExceptionprotected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException
HydraDataSourcegetDataInner in class HydraDataSourcedataChoice - 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 objectpublic MapProjection getDataProjection(HashMap subset)
protected Data applyProperties(Data data, Hashtable requestProperties, HashMap subset) throws VisADException, RemoteException
VisADExceptionRemoteExceptionprotected void initDataSelectionComponents(List<DataSelectionComponent> components, DataChoice dataChoice)
initDataSelectionComponents in class DataSourceImpl