|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
edu.wisc.ssec.mcidasv.data.HydraDataSource
edu.wisc.ssec.mcidasv.data.hydra.SuomiNPPDataSource
public class SuomiNPPDataSource
A data source for NPOESS Preparatory Project (Suomi NPP) data This will probably move, but we are placing it here for now since we are leveraging some existing code used for HYDRA.
| Fields inherited from class edu.wisc.ssec.mcidasv.data.HydraDataSource |
|---|
oldSourceFromBundles, request, sources |
| Fields inherited from class ucar.unidata.data.DataSourceImpl |
|---|
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES |
| Fields inherited from interface ucar.unidata.data.DataSource |
|---|
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 Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
protected Data |
applyProperties(Data data,
Hashtable requestProperties,
HashMap 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 DataChoice-s 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()
|
MultiSpectralData |
getMultiSpectralData()
|
MultiSpectralData |
getMultiSpectralData(DataChoice choice)
|
List<String> |
getOldSources()
|
HashMap<String,QualityFlag> |
getQfMap()
|
HashMap |
getSubsetFromLonLatRect(MultiDimensionSubset select,
GeoSelection geoSelection)
|
void |
initAfterUnpersistence()
|
protected void |
initDataSelectionComponents(List<DataSelectionComponent> components,
DataChoice dataChoice)
|
protected List |
saveDataToLocalDisk(String filePrefix,
Object loadId,
boolean changeLinks)
|
void |
setDatasetName(String name)
|
void |
setOldSources(List<String> oldSources)
|
void |
setup()
|
| Methods inherited from class edu.wisc.ssec.mcidasv.data.HydraDataSource |
|---|
clearCachedData, doMakeDateTimes, getAdapters, isFileBased |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.data.DataSource |
|---|
getUniqueId |
| Field Detail |
|---|
private static final org.slf4j.Logger logger
protected String filename
protected List<String> oldSources
protected List<String> geoSources
protected MultiDimensionReader nppAggReader
protected MultiDimensionAdapter[] adapters
private ArrayList<MultiSpectralData> msd_CrIS
private ArrayList<MultiSpectralData> multiSpectralData
private HashMap<String,MultiSpectralData> msdMap
private HashMap<String,QualityFlag> qfMap
private static final String DATA_DESCRIPTION
ucar.nc2.Attribute instrumentName
private String productName
boolean isEDR
private String crisFilter
private String ompsFilter
private HashMap defaultSubset
public TrackAdapter track_adapter
private List categories
private boolean hasChannelSelect
private boolean hasImagePreview
private boolean isCombinedProduct
private boolean nameHasBeenSet
private FlatField previewImage
private static final String SEPARATOR_CHAR
SimpleDateFormat sdf
SimpleDateFormat sdfOut
| Constructor Detail |
|---|
public SuomiNPPDataSource()
public SuomiNPPDataSource(String fileName)
throws VisADException
VisADException
public SuomiNPPDataSource(DataSourceDescriptor descriptor,
String fileName,
Hashtable properties)
throws VisADException
descriptor - descriptor for this DataSourcefileName - name of the hdf file to readproperties - hashtable of properties
VisADException - problem creating data
public SuomiNPPDataSource(DataSourceDescriptor descriptor,
List<String> newSources,
Hashtable properties)
throws VisADException
descriptor - descriptor for this DataSourcesources - List of filenamesproperties - hashtable of properties
VisADException - problem creating data| Method Detail |
|---|
public void setup()
throws VisADException
VisADExceptionpublic void initAfterUnpersistence()
initAfterUnpersistence in interface DataSourceinitAfterUnpersistence in class DataSourceImplpublic boolean canSaveDataToLocalDisk()
HydraDataSource
canSaveDataToLocalDisk in interface DataSourcecanSaveDataToLocalDisk in class HydraDataSource
protected List saveDataToLocalDisk(String filePrefix,
Object loadId,
boolean changeLinks)
throws Exception
saveDataToLocalDisk in class DataSourceImplExceptionpublic List<String> getOldSources()
public void setOldSources(List<String> oldSources)
public void doMakeDataChoices()
DataChoice-s 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
Exceptionpublic boolean equals(Object o)
SuomiNPPDataSource is equal to the object
in question.
equals in class DataSourceImplo - object in question
public MultiSpectralData getMultiSpectralData()
public MultiSpectralData getMultiSpectralData(DataChoice choice)
public String getDatasetName()
public HashMap<String,QualityFlag> getQfMap()
public void setDatasetName(String name)
public 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 DataSourceImplVisADException
RemoteException
protected Data getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
HydraDataSource
getDataInner in class HydraDataSourcedataChoice - DataChoice for selectioncategory - DataCategory for the DataChoice (not used)dataSelection - subsetting criteriarequestProperties - extra request properties
VisADException - couldn't create the data
RemoteException - couldn't create a remote data object
protected Data applyProperties(Data data,
Hashtable requestProperties,
HashMap subset,
int adapterIndex)
throws VisADException,
RemoteException
VisADException
RemoteException
protected void initDataSelectionComponents(List<DataSelectionComponent> components,
DataChoice dataChoice)
initDataSelectionComponents in class DataSourceImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||