public class SuomiNPPDataSource extends HydraDataSource
Modifier and Type | Field and Description |
---|---|
protected MultiDimensionAdapter[] |
adapters |
private java.util.List<ucar.unidata.data.DataCategory> |
categories |
private java.lang.String |
crisFilter |
private static java.lang.String |
DATA_DESCRIPTION |
private java.util.Map<java.lang.String,double[]> |
defaultSubset |
private boolean |
derivedInit |
private java.util.Map<java.lang.String,double[]> |
derivedSubset |
protected java.lang.String |
filename
Sources file
|
(package private) java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
filenameMap |
protected java.util.List<java.lang.String> |
geoSources |
(package private) float[] |
i04LUT |
(package private) float[] |
i05LUT |
(package private) ucar.nc2.Attribute |
instrumentName |
private boolean |
isCombinedProduct |
private boolean |
isDerived |
private boolean |
isEnterprise |
private boolean |
isNOAA |
private static org.slf4j.Logger |
logger |
private java.util.Map<java.lang.String,float[]> |
lutMap |
(package private) float[] |
m12LUT |
(package private) float[] |
m13LUT |
(package private) float[] |
m14LUT |
(package private) float[] |
m15LUT |
(package private) float[] |
m16LUT |
private java.util.List<MultiSpectralData> |
msd_CrIS |
private java.util.Map<java.lang.String,MultiSpectralData> |
msdMap |
private java.util.List<MultiSpectralData> |
multiSpectralData |
private boolean |
nameHasBeenSet |
protected MultiDimensionReader |
nppAggReader |
protected java.util.List<java.lang.String> |
oldSources |
private java.lang.String |
productName |
private java.util.Map<java.lang.String,QualityFlag> |
qfMap |
(package private) java.text.SimpleDateFormat |
sdf |
(package private) java.text.SimpleDateFormat |
sdfEnterprise |
(package private) java.text.SimpleDateFormat |
sdfNASA |
(package private) java.text.SimpleDateFormat |
sdfOut |
private static java.lang.String |
SEPARATOR_CHAR |
(package private) java.util.Map<java.lang.String,double[]> |
subset |
(package private) java.util.Date |
theDate |
TrackAdapter |
track_adapter |
(package private) java.util.Map<java.lang.String,java.lang.String> |
unitsEnterprise |
(package private) java.util.Map<java.lang.String,java.lang.String> |
unitsNASA |
(package private) java.lang.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_TIMESTRIDE, PROP_TITLE
Constructor and Description |
---|
SuomiNPPDataSource()
Zero-argument constructor for construction via unpersistence.
|
SuomiNPPDataSource(ucar.unidata.data.DataSourceDescriptor descriptor,
java.util.List<java.lang.String> newSources,
java.util.Hashtable properties)
Construct a new Suomi NPP HDF5 data source.
|
SuomiNPPDataSource(ucar.unidata.data.DataSourceDescriptor descriptor,
java.lang.String fileName,
java.util.Hashtable properties)
Construct a new Suomi NPP HDF5 data source.
|
SuomiNPPDataSource(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
protected visad.Data |
applyProperties(visad.Data data,
java.util.Hashtable requestProperties,
java.util.Map<java.lang.String,double[]> subset,
int adapterIndex) |
boolean |
canSaveDataToLocalDisk()
Can this data source save its dat to local disk
|
private ucar.unidata.data.DataChoice |
doMakeDataChoice(int idx,
MultiSpectralData adapter) |
private ucar.unidata.data.DataChoice |
doMakeDataChoice(int idx,
java.lang.String var,
java.lang.String description) |
void |
doMakeDataChoices()
Make and insert the
DataChoices for this
DataSource . |
boolean |
equals(java.lang.Object o)
Check to see if this
SuomiNPPDataSource is equal to the object
in question. |
visad.Data |
getData(ucar.unidata.data.DataChoice dataChoice,
ucar.unidata.data.DataCategory category,
ucar.unidata.data.DataSelection dataSelection,
java.util.Hashtable requestProperties)
Get the data applicable to the DataChoice and selection criteria.
|
protected visad.Data |
getDataInner(ucar.unidata.data.DataChoice dataChoice,
ucar.unidata.data.DataCategory category,
ucar.unidata.data.DataSelection dataSelection,
java.util.Hashtable requestProperties)
Get the data for the given DataChoice and selection criteria.
|
java.lang.String |
getDatasetName() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getFilenameMap() |
MultiSpectralData |
getMultiSpectralData() |
MultiSpectralData |
getMultiSpectralData(ucar.unidata.data.DataChoice choice) |
java.util.List<java.lang.String> |
getOldSources() |
java.util.Map<java.lang.String,QualityFlag> |
getQfMap() |
java.util.Map<java.lang.String,double[]> |
getSubsetFromLonLatRect(MultiDimensionSubset select,
ucar.unidata.data.GeoSelection geoSelection) |
void |
initAfterUnpersistence()
Implement the XmlPersistable interface method that is called after
this object has been fully created and initialized after being
unpersisted by the XmlEncoder.
|
void |
initDataChoice(ucar.unidata.data.DataChoice dataChoice)
Sets the global id of the given dataChoice to be a per process
unique string value.
|
protected void |
initDataSelectionComponents(java.util.List<ucar.unidata.data.DataSelectionComponent> components,
ucar.unidata.data.DataChoice dataChoice)
Add any data selection components
|
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. |
boolean |
isNOAA()
Determine if this data source originated from a
"NOAA file".
|
protected java.util.List |
saveDataToLocalDisk(java.lang.String filePrefix,
java.lang.Object loadId,
boolean changeLinks)
Save the data source files to local disk
|
void |
setDatasetName(java.lang.String name) |
void |
setFilenameMap(java.util.Map<java.lang.String,java.util.List<java.lang.String>> filenameMap) |
void |
setOldSources(java.util.List<java.lang.String> oldSources) |
void |
setup() |
addPropertiesTabs, clearCachedData, doMakeDateTimes, getAdapters, isFileBased
addActions, addDataChangeListener, addDataChoice, 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, 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
private static final org.slf4j.Logger logger
protected java.lang.String filename
protected java.util.List<java.lang.String> oldSources
protected java.util.List<java.lang.String> geoSources
java.util.Map<java.lang.String,java.util.List<java.lang.String>> filenameMap
protected MultiDimensionReader nppAggReader
protected MultiDimensionAdapter[] adapters
private java.util.List<MultiSpectralData> msd_CrIS
private java.util.List<MultiSpectralData> multiSpectralData
private java.util.Map<java.lang.String,MultiSpectralData> msdMap
private java.util.Map<java.lang.String,QualityFlag> qfMap
private java.util.Map<java.lang.String,float[]> lutMap
private static final java.lang.String DATA_DESCRIPTION
ucar.nc2.Attribute instrumentName
private java.lang.String productName
java.lang.String whichEDR
private java.lang.String crisFilter
private java.util.Map<java.lang.String,double[]> defaultSubset
public TrackAdapter track_adapter
private java.util.List<ucar.unidata.data.DataCategory> categories
private boolean isCombinedProduct
private boolean isDerived
private boolean nameHasBeenSet
private boolean isNOAA
private boolean isEnterprise
private static final java.lang.String SEPARATOR_CHAR
java.text.SimpleDateFormat sdfNASA
java.text.SimpleDateFormat sdfEnterprise
float[] m12LUT
float[] m13LUT
float[] m14LUT
float[] m15LUT
float[] m16LUT
float[] i04LUT
float[] i05LUT
java.util.Map<java.lang.String,java.lang.String> unitsNASA
java.util.Map<java.lang.String,java.lang.String> unitsEnterprise
java.text.SimpleDateFormat sdf
java.text.SimpleDateFormat sdfOut
java.util.Date theDate
java.util.Map<java.lang.String,double[]> subset
private java.util.Map<java.lang.String,double[]> derivedSubset
private boolean derivedInit
public SuomiNPPDataSource()
public SuomiNPPDataSource(java.lang.String fileName) throws visad.VisADException
visad.VisADException
public SuomiNPPDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, java.lang.String fileName, java.util.Hashtable properties) throws visad.VisADException
descriptor
- descriptor for this DataSource
fileName
- name of the hdf file to readproperties
- hashtable of propertiesvisad.VisADException
- problem creating datapublic SuomiNPPDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, java.util.List<java.lang.String> newSources, java.util.Hashtable properties) throws visad.VisADException
descriptor
- Descriptor for this DataSource
.newSources
- List of filenames.properties
- Hashtable of properties.visad.VisADException
- problem creating datapublic void setup() throws visad.VisADException
visad.VisADException
public void initDataChoice(ucar.unidata.data.DataChoice dataChoice)
ucar.unidata.data.DataSourceImpl
initDataChoice
in class ucar.unidata.data.DataSourceImpl
dataChoice
- dataChoice to initializepublic void initAfterUnpersistence()
ucar.unidata.data.DataSourceImpl
initAfterUnpersistence
in interface ucar.unidata.data.DataSource
initAfterUnpersistence
in class ucar.unidata.data.DataSourceImpl
public boolean canSaveDataToLocalDisk()
HydraDataSource
canSaveDataToLocalDisk
in interface ucar.unidata.data.DataSource
canSaveDataToLocalDisk
in class HydraDataSource
protected java.util.List saveDataToLocalDisk(java.lang.String filePrefix, java.lang.Object loadId, boolean changeLinks) throws java.lang.Exception
ucar.unidata.data.DataSourceImpl
saveDataToLocalDisk
in class ucar.unidata.data.DataSourceImpl
filePrefix
- This is the directory path to write the files to with the unique file identifier
append to itloadId
- For stopping the load through the JobManagerchangeLinks
- Should this data source also change its internal data referencesjava.lang.Exception
- On badnesspublic java.util.List<java.lang.String> getOldSources()
public void setOldSources(java.util.List<java.lang.String> oldSources)
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getFilenameMap()
public void setFilenameMap(java.util.Map<java.lang.String,java.util.List<java.lang.String>> filenameMap)
public void doMakeDataChoices()
DataChoices
for this
DataSource
.doMakeDataChoices
in class ucar.unidata.data.DataSourceImpl
private ucar.unidata.data.DataChoice doMakeDataChoice(int idx, java.lang.String var, java.lang.String description) throws java.lang.Exception
java.lang.Exception
private ucar.unidata.data.DataChoice doMakeDataChoice(int idx, MultiSpectralData adapter) throws java.lang.Exception
java.lang.Exception
public boolean equals(java.lang.Object o)
SuomiNPPDataSource
is equal to the object
in question.equals
in class ucar.unidata.data.DataSourceImpl
o
- object in questionpublic MultiSpectralData getMultiSpectralData()
public MultiSpectralData getMultiSpectralData(ucar.unidata.data.DataChoice choice)
public java.lang.String getDatasetName()
public java.util.Map<java.lang.String,QualityFlag> getQfMap()
public void setDatasetName(java.lang.String name)
public boolean isNOAA()
true
if file came from NOAA, false
otherwise.public java.util.Map<java.lang.String,double[]> getSubsetFromLonLatRect(MultiDimensionSubset select, ucar.unidata.data.GeoSelection geoSelection)
public visad.Data getData(ucar.unidata.data.DataChoice dataChoice, ucar.unidata.data.DataCategory category, ucar.unidata.data.DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
ucar.unidata.data.DataSourceImpl
getData
in interface ucar.unidata.data.DataSource
getData
in class ucar.unidata.data.DataSourceImpl
dataChoice
- choice that defines the datacategory
- the data categorydataSelection
- DataSelection for subsettingrequestProperties
- extra request propertiesvisad.VisADException
- VisAD problemjava.rmi.RemoteException
- Java RMI problemprotected visad.Data getDataInner(ucar.unidata.data.DataChoice dataChoice, ucar.unidata.data.DataCategory category, ucar.unidata.data.DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
HydraDataSource
getDataInner
in class HydraDataSource
dataChoice
- DataChoice for selectioncategory
- DataCategory for the DataChoice (not used)dataSelection
- subsetting criteriarequestProperties
- extra request propertiesvisad.VisADException
- couldn't create the datajava.rmi.RemoteException
- couldn't create a remote data objectprotected visad.Data applyProperties(visad.Data data, java.util.Hashtable requestProperties, java.util.Map<java.lang.String,double[]> subset, int adapterIndex) throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
java.rmi.RemoteException
protected void initDataSelectionComponents(java.util.List<ucar.unidata.data.DataSelectionComponent> components, ucar.unidata.data.DataChoice dataChoice)
ucar.unidata.data.DataSourceImpl
initDataSelectionComponents
in class ucar.unidata.data.DataSourceImpl
components
- list of componentsdataChoice
- the data choicepublic void initQfTranslations()
Integer->String
translations to IDV's
"translations" resource, so they will be made available to
the data probe of Image Display's.