|
||||||||||
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.MultiSpectralDataSource
public class MultiSpectralDataSource
A data source for Multi Dimension Data
Field Summary | |
---|---|
private HashMap<String,MultiSpectralData> |
adapterMap
|
protected MultiDimensionAdapter[] |
adapters
|
private List |
categories
|
private ComboDataChoice |
comboChoice
|
private static int |
count
|
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
|
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 | |
---|---|
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. |
|
MultiSpectralDataSource(String fileName)
|
Method Summary | |
---|---|
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)
|
Data |
getData(String name,
HashMap subset)
public HashMap getSubsetFromLonLatRect(MultiDimensionSubset select, GeoSelection geoSelection) { GeoLocationInfo ginfo = geoSelection.getBoundingBox(); return adapters[0].getSubsetFromLonLatRect(select.getSubset(), ginfo.getMinLat(), ginfo.getMaxLat(), ginfo.getMinLon(), ginfo.getMaxLon()); } |
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. |
static MapProjection |
getDataProjection(FlatField fltField)
|
MapProjection |
getDataProjection(HashMap subset)
|
String |
getDatasetName()
|
MultiSpectralData |
getMultiSpectralData()
|
MultiSpectralData |
getMultiSpectralData(DataChoice choice)
|
MultiSpectralData |
getMultiSpectralData(int idx)
|
MultiSpectralData |
getMultiSpectralData(String name)
|
static MapProjection |
getSwathProjection(FlatField image,
float[][] corners)
|
void |
initAfterUnpersistence()
|
protected void |
initDataSelectionComponents(List<DataSelectionComponent> components,
DataChoice dataChoice)
|
static Linear2DSet |
makeGrid(MapProjection mp,
double res)
|
static Linear2DSet |
makeGrid(MapProjection mp,
float[][] corners,
float res)
|
void |
setDatasetName(String name)
|
void |
setup()
|
static FlatField |
swathToGrid(Linear2DSet grid,
FlatField[] swaths,
double mode)
|
static FlatField |
swathToGrid(Linear2DSet grid,
FlatField swath,
double mode)
|
static FlatField |
swathToGridOld(Linear2DSet grid,
FlatField swath)
|
static FlatField |
swathToGridOld(Linear2DSet grid,
FlatField[] swaths,
double mode)
|
static FlatField |
swathToGridOld(Linear2DSet grid,
FlatField swath,
double mode)
|
static boolean |
validLonLat(float[][] lonlat)
|
Methods inherited from class edu.wisc.ssec.mcidasv.data.HydraDataSource |
---|
canSaveDataToLocalDisk, 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 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
private static int count
Constructor Detail |
---|
public MultiSpectralDataSource()
public MultiSpectralDataSource(String fileName) throws VisADException
VisADException
public MultiSpectralDataSource(DataSourceDescriptor descriptor, String fileName, Hashtable properties) throws VisADException
descriptor
- descriptor for this DataSource
fileName
- name of the hdf file to readproperties
- hashtable of properties
VisADException
- problem creating datapublic MultiSpectralDataSource(DataSourceDescriptor descriptor, List newSources, Hashtable properties) throws VisADException
descriptor
- descriptor for this DataSource
sources
- List of filenamesproperties
- hashtable of properties
VisADException
- problem creating dataMethod Detail |
---|
public void setup() throws Exception
Exception
public void initAfterUnpersistence()
initAfterUnpersistence
in interface DataSource
initAfterUnpersistence
in class DataSourceImpl
public void doMakeDataChoices()
DataChoice
-s for this
DataSource
.
doMakeDataChoices
in class DataSourceImpl
public void addChoice(String name, Data data)
private DataChoice doMakeDataChoice(int idx, MultiSpectralData adapter) throws Exception
Exception
public boolean equals(Object o)
HDFHydraDataSource
is equal to the object
in question.
equals
in class DataSourceImpl
o
- object in question
public MultiSpectralData getMultiSpectralData()
public MultiSpectralData getMultiSpectralData(DataChoice choice)
public MultiSpectralData getMultiSpectralData(String name)
public MultiSpectralData getMultiSpectralData(int idx)
public String getDatasetName()
public void setDatasetName(String name)
public ComboDataChoice getComboDataChoice()
public List getDataPaths()
getDataPaths
in interface DataSource
getDataPaths
in class DataSourceImpl
public Data getData(String name, HashMap subset) throws VisADException, RemoteException
VisADException
RemoteException
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 properties
VisADException
- couldn't create the data
RemoteException
- couldn't create a remote data objectpublic MapProjection getDataProjection(HashMap subset)
protected Data applyProperties(Data data, Hashtable requestProperties, HashMap subset) throws VisADException, RemoteException
VisADException
RemoteException
protected void initDataSelectionComponents(List<DataSelectionComponent> components, DataChoice dataChoice)
initDataSelectionComponents
in class DataSourceImpl
public static MapProjection getDataProjection(FlatField fltField) throws Exception
Exception
public static MapProjection getSwathProjection(FlatField image, float[][] corners) throws VisADException, RemoteException
VisADException
RemoteException
public static Linear2DSet makeGrid(MapProjection mp, double res) throws Exception
Exception
public static Linear2DSet makeGrid(MapProjection mp, float[][] corners, float res) throws Exception
Exception
public static FlatField swathToGridOld(Linear2DSet grid, FlatField swath) throws Exception
Exception
public static FlatField swathToGridOld(Linear2DSet grid, FlatField[] swaths, double mode) throws Exception
Exception
public static FlatField swathToGrid(Linear2DSet grid, FlatField[] swaths, double mode) throws Exception
Exception
public static FlatField swathToGridOld(Linear2DSet grid, FlatField swath, double mode) throws Exception
Exception
public static FlatField swathToGrid(Linear2DSet grid, FlatField swath, double mode) throws Exception
Exception
public static boolean validLonLat(float[][] lonlat)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |