public class NetcdfPointDataSource extends PointDataSource
PointDataSource.PlotModelSelectionComponent
Modifier and Type | Field and Description |
---|---|
protected ucar.nc2.ft.FeatureDatasetPoint |
fixedDataset
a fixed dataset
|
fieldsDescription, POINT_DATA, PROP_FIRSTGUESS, PROP_GRID_GAIN, PROP_GRID_NUMPASSES, PROP_GRID_PARAM, PROP_GRID_SEARCH_RADIUS, PROP_GRID_UNIT, PROP_GRID_X, PROP_GRID_Y, PROP_STATIONMODELNAME, PROP_STATIONMODELSCALE, STATION_DATA, STATION_PLOT
adapters, oldSourceFromBundles, 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 |
---|
NetcdfPointDataSource()
Default constructor
|
NetcdfPointDataSource(DataSourceDescriptor descriptor,
java.util.List sources,
java.util.Hashtable properties)
Create a new NetcdfPointDataSource
|
NetcdfPointDataSource(DataSourceDescriptor descriptor,
java.lang.String[] sources,
java.util.Hashtable properties)
Create a new NetcdfPointDataSource
|
NetcdfPointDataSource(DataSourceDescriptor descriptor,
java.lang.String source,
java.util.Hashtable properties)
Create a new NetcdfPointDataSource
|
NetcdfPointDataSource(ucar.nc2.ft.FeatureDatasetPoint fixedDataset,
DataSourceDescriptor descriptor,
java.util.Hashtable properties)
Create a new NetcdfPointDataSource
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDoGeoSelection()
Can this datasource do the geoselection subsetting and decimation
|
protected boolean |
canDoGeoSelectionStride()
Used for the geo subsetting property gui as to whether to
show the stride or not
|
boolean |
canSaveDataToLocalDisk()
Is this data source capable of saving its data to local disk
|
protected ucar.nc2.ft.FeatureDatasetPoint |
doMakeDataset(java.lang.String file)
Make the dataset
|
void |
doRemove()
Gets called by the
DataManager when this DataSource has
been removed. |
boolean |
equals(java.lang.Object o)
Check to see if this NetcdfPointDataSource is equal to the object
in question.
|
protected ucar.nc2.ft.FeatureDatasetPoint |
getDataset(java.lang.String file)
Return the FeatureDatasetPoint associated with this DataSource.
|
protected visad.FieldImpl |
getSample(DataChoice dataChoice)
Read a sample of the data.
|
int |
hashCode()
Get the hashcode for this object
|
void |
initAfterCreation()
Initialize after we have been created.
|
static void |
main(java.lang.String[] args)
test
|
protected visad.FieldImpl |
makeObs(DataChoice dataChoice,
DataSelection subset,
ucar.unidata.geoloc.LatLonRect bbox)
Make PointObs from the choice
|
protected visad.FieldImpl |
makeObs(DataChoice dataChoice,
DataSelection subset,
ucar.unidata.geoloc.LatLonRect bbox,
boolean sample)
make the obs
|
addPropertiesTabs, applyProperties, canAddCurrentName, canCreateGrid, canDoAllLevels, doMakeDataChoices, getBinRoundTo, getBinWidth, getDataInner, getDataName, getDefaultLevels, getDescriptionDataChoice, getFullDescription, getGridGain, getGridSearchRadius, getGridUnit, getGridX, getGridY, getMakeGridFields, getNumGridPasses, getPointCategories, getPropertiesComponents, getSource, init, initDataSelectionComponents, initGridParameters, makeDerivedDataChoices, makeFieldDescription, reloadData, setBinRoundTo, setBinWidth, setGridGain, setGridSearchRadius, setGridUnit, setGridX, setGridY, setMakeGridFields, setNumGridPasses, setRoundToFromComboBox, setSource, setWidthFromComboBox, shouldCache
getDataFileExtension, getDataPaths, getFilePath, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, saveDataToLocalDisk, setNewFiles, setSources, sourcesChanged, updateState
addActions, addDataChangeListener, addDataChoice, addReloadTab, applyFieldMask, beginWritingDataToLocalDisk, canCacheDataToDisk, canChangeData, canDoFieldMask, canDoGeoSelectionMap, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeDateTimes, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getAllTimesForTimeDriver, getCache, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDefaultSave, getDescription, getDescriptor, getErrorMessage, getEverChangedName, getExtraGeoSelectionComponent, getExtraTimesComponent, getFileFilterForPolling, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPassword, getPathsThatCanBeRelative, getPollingInfo, getProperties, 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, initDataChoice, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeSaveLocalActions, newFileFromPolling, notifyDataChange, putCache, putCache, 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, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, writeFieldMaskFile, writeFieldMaskFile
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUniqueId
public NetcdfPointDataSource() throws visad.VisADException
visad.VisADException
- problem creating the objectpublic NetcdfPointDataSource(ucar.nc2.ft.FeatureDatasetPoint fixedDataset, DataSourceDescriptor descriptor, java.util.Hashtable properties) throws visad.VisADException
fixedDataset
- the data sourcedescriptor
- data source descriptorproperties
- extra properties for initializationvisad.VisADException
- problem creating the datapublic NetcdfPointDataSource(DataSourceDescriptor descriptor, java.lang.String source, java.util.Hashtable properties) throws visad.VisADException
descriptor
- data source descriptorsource
- source of data (filename/URL)properties
- extra properties for initializationvisad.VisADException
- problem creating the datapublic NetcdfPointDataSource(DataSourceDescriptor descriptor, java.lang.String[] sources, java.util.Hashtable properties) throws visad.VisADException
descriptor
- data source descriptorsources
- sources of data (filename/URL)properties
- extra properties for initializationvisad.VisADException
- problem creating the datapublic NetcdfPointDataSource(DataSourceDescriptor descriptor, java.util.List sources, java.util.Hashtable properties) throws visad.VisADException
descriptor
- data source descriptorsources
- List source of data (filenames/URLs)properties
- extra properties for initializationvisad.VisADException
- problem creating the datapublic boolean canDoGeoSelection()
canDoGeoSelection
in interface DataSource
canDoGeoSelection
in class DataSourceImpl
protected boolean canDoGeoSelectionStride()
canDoGeoSelectionStride
in class DataSourceImpl
public boolean canSaveDataToLocalDisk()
canSaveDataToLocalDisk
in interface DataSource
canSaveDataToLocalDisk
in class DataSourceImpl
public boolean equals(java.lang.Object o)
equals
in class FilesDataSource
o
- object in questionpublic int hashCode()
hashCode
in class java.lang.Object
public void initAfterCreation()
initAfterCreation
in interface DataSource
initAfterCreation
in class FilesDataSource
protected ucar.nc2.ft.FeatureDatasetPoint getDataset(java.lang.String file)
file
- the file nameprotected ucar.nc2.ft.FeatureDatasetPoint doMakeDataset(java.lang.String file)
file
- the file nameprotected visad.FieldImpl getSample(DataChoice dataChoice) throws java.lang.Exception
getSample
in class PointDataSource
dataChoice
- The data choicejava.lang.Exception
- On badnessprotected visad.FieldImpl makeObs(DataChoice dataChoice, DataSelection subset, ucar.unidata.geoloc.LatLonRect bbox) throws java.lang.Exception
makeObs
in class PointDataSource
dataChoice
- choice for data (source of data)subset
- subsetting parametersbbox
- bounding box. may be nulljava.lang.Exception
- problem creating dataprotected visad.FieldImpl makeObs(DataChoice dataChoice, DataSelection subset, ucar.unidata.geoloc.LatLonRect bbox, boolean sample) throws java.lang.Exception
dataChoice
- the datachoicesubset
- teh data selectionbbox
- the bboxsample
- just a taste?java.lang.Exception
- on badnesspublic void doRemove()
DataManager
when this DataSource has
been removed.doRemove
in interface DataSource
doRemove
in class PointDataSource
public static void main(java.lang.String[] args)
args
- args