public class SuomiNPPDataSource extends HydraDataSource
Modifier and Type | Field and Description |
---|---|
protected MultiDimensionAdapter[] |
adapters |
private List |
categories |
private String |
crisFilter |
private static String |
DATA_DESCRIPTION |
private Map<String,double[]> |
defaultSubset |
protected String |
filename
Sources file
|
(package private) Map<String,List<String>> |
filenameMap |
protected List<String> |
geoSources |
(package private) float[] |
i04LUT |
(package private) float[] |
i05LUT |
(package private) Attribute |
instrumentName |
private boolean |
isCombinedProduct |
private static org.slf4j.Logger |
logger |
private Map<String,float[]> |
lutMap |
(package private) float[] |
m12LUT |
(package private) float[] |
m13LUT |
(package private) float[] |
m14LUT |
(package private) float[] |
m15LUT |
(package private) float[] |
m16LUT |
private List<MultiSpectralData> |
msd_CrIS |
private Map<String,MultiSpectralData> |
msdMap |
private List<MultiSpectralData> |
multiSpectralData |
private boolean |
nameHasBeenSet |
protected MultiDimensionReader |
nppAggReader |
protected List<String> |
oldSources |
private String |
ompsFilter |
private String |
productName |
private Map<String,QualityFlag> |
qfMap |
(package private) SimpleDateFormat |
sdf |
(package private) SimpleDateFormat |
sdfNASA |
(package private) SimpleDateFormat |
sdfOut |
private static String |
SEPARATOR_CHAR |
(package private) Date |
theDate |
TrackAdapter |
track_adapter |
(package private) Map<String,String> |
unitsNASA |
(package private) String |
whichEDR |
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 |
---|
SuomiNPPDataSource()
Zero-argument constructor for construction via unpersistence.
|
SuomiNPPDataSource(DataSourceDescriptor descriptor,
List<String> newSources,
Hashtable properties)
Construct a new Suomi NPP HDF5 data source.
|
SuomiNPPDataSource(DataSourceDescriptor descriptor,
String fileName,
Hashtable properties)
Construct a new Suomi NPP HDF5 data source.
|
SuomiNPPDataSource(String fileName) |
Modifier and Type | Method and Description |
---|---|
protected Data |
applyProperties(Data data,
Hashtable requestProperties,
Map<String,double[]> subset,
int adapterIndex) |
boolean |
canSaveDataToLocalDisk()
Can this data source save its dat to local disk
|
private DataChoice |
doMakeDataChoice(int idx,
MultiSpectralData adapter) |
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
SuomiNPPDataSource 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() |
Map<String,List<String>> |
getFilenameMap() |
MultiSpectralData |
getMultiSpectralData() |
MultiSpectralData |
getMultiSpectralData(DataChoice choice) |
List<String> |
getOldSources() |
Map<String,QualityFlag> |
getQfMap() |
Map<String,double[]> |
getSubsetFromLonLatRect(MultiDimensionSubset select,
GeoSelection geoSelection) |
void |
initAfterUnpersistence() |
protected void |
initDataSelectionComponents(List<DataSelectionComponent> components,
DataChoice dataChoice) |
void |
initQfTranslations()
Add
Integer->String translations to IDV's
"translations" resource, so they will be made available to
the data probe of Image Display's. |
protected List |
saveDataToLocalDisk(String filePrefix,
Object loadId,
boolean changeLinks) |
void |
setDatasetName(String name) |
void |
setFilenameMap(Map<String,List<String>> filenameMap) |
void |
setOldSources(List<String> oldSources) |
void |
setup() |
private void |
versionCheck() |
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, 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 List<String> oldSources
protected List<String> geoSources
Map<String,List<String>> filenameMap
protected MultiDimensionReader nppAggReader
protected MultiDimensionAdapter[] adapters
private List<MultiSpectralData> msd_CrIS
private List<MultiSpectralData> multiSpectralData
private Map<String,MultiSpectralData> msdMap
private Map<String,QualityFlag> qfMap
private static final String DATA_DESCRIPTION
Attribute instrumentName
private String productName
private String crisFilter
private String ompsFilter
private Map<String,double[]> defaultSubset
public TrackAdapter track_adapter
private List categories
private boolean isCombinedProduct
private boolean nameHasBeenSet
private static final String SEPARATOR_CHAR
SimpleDateFormat sdfNASA
float[] m12LUT
float[] m13LUT
float[] m14LUT
float[] m15LUT
float[] m16LUT
float[] i04LUT
float[] i05LUT
SimpleDateFormat sdf
SimpleDateFormat sdfOut
public SuomiNPPDataSource()
public SuomiNPPDataSource(String fileName) throws VisADException
VisADException
public SuomiNPPDataSource(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 SuomiNPPDataSource(DataSourceDescriptor descriptor, List<String> newSources, Hashtable properties) throws VisADException
descriptor
- Descriptor for this DataSource
.newSources
- List of filenames.properties
- Hashtable of properties.VisADException
- problem creating dataprivate void versionCheck()
public void setup() throws VisADException
VisADException
public void initAfterUnpersistence()
initAfterUnpersistence
in interface DataSource
initAfterUnpersistence
in class DataSourceImpl
public boolean canSaveDataToLocalDisk()
HydraDataSource
canSaveDataToLocalDisk
in interface DataSource
canSaveDataToLocalDisk
in class HydraDataSource
protected List saveDataToLocalDisk(String filePrefix, Object loadId, boolean changeLinks) throws Exception
saveDataToLocalDisk
in class DataSourceImpl
Exception
public List<String> getOldSources()
public void setOldSources(List<String> oldSources)
public Map<String,List<String>> getFilenameMap()
public void setFilenameMap(Map<String,List<String>> filenameMap)
public void doMakeDataChoices()
DataChoices
for this
DataSource
.doMakeDataChoices
in class DataSourceImpl
private DataChoice doMakeDataChoice(int idx, String var) throws Exception
Exception
private DataChoice doMakeDataChoice(int idx, MultiSpectralData adapter) throws Exception
Exception
public boolean equals(Object o)
SuomiNPPDataSource
is equal to the object
in question.equals
in class DataSourceImpl
o
- object in questionpublic MultiSpectralData getMultiSpectralData()
public MultiSpectralData getMultiSpectralData(DataChoice choice)
public String getDatasetName()
public Map<String,QualityFlag> getQfMap()
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, int adapterIndex) throws VisADException, RemoteException
VisADException
RemoteException
protected void initDataSelectionComponents(List<DataSelectionComponent> components, DataChoice dataChoice)
initDataSelectionComponents
in class DataSourceImpl
public void initQfTranslations()
Integer->String
translations to IDV's
"translations" resource, so they will be made available to
the data probe of Image Display's.