Package ucar.unidata.data.grid
Class Vis5DDataSource
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.FilesDataSource
ucar.unidata.data.grid.GridDataSource
ucar.unidata.data.grid.Vis5DDataSource
- All Implemented Interfaces:
Sharable,DataSource,DataSourceFactory,XmlPersistable
A data source for Vis5D data files. Handles grid and topography
files.
- Version:
- $Revision: 1.61 $
- Author:
- IDV Development Team
-
Field Summary
Fields inherited from class ucar.unidata.data.grid.GridDataSource
ATTR_EAST, ATTR_NORTH, ATTR_SOUTH, ATTR_WEST, ATTR_X, ATTR_Y, ATTR_Z, PROP_ENSEMBLEMEMBERSFields inherited from class ucar.unidata.data.FilesDataSource
adapters, oldSourceFromBundles, sourcesFields inherited from class ucar.unidata.data.DataSourceImpl
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YESFields 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_TIMESTRIDE, PROP_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionDummy constructor so this object can get unpersisted.Vis5DDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties) Create a Vis5DDataSource from the specification given. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWe can do geo selection in the properties guiprotected booleanUsed for the geo subsetting property gui as to whether to show the map selection or notprotected voidCreate theDataChoices for this data sourceprotected ListCreate the list of times associated with this datasourceprotected DatagetDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) Get the data described by the selection parametersgetField(DataChoice dc, DataSelection dataSelection) Get the grid described by the selection parametersstatic voidTest by running "java ucar.unidata.data.grid.Vis5DDataSource" voidSet the Source property.protected voidThe source has changedMethods inherited from class ucar.unidata.data.grid.GridDataSource
getEnsDCategory, getEnsembleSelection, getThreeDCategories, getThreeDEnsTimeSeriesCategories, getThreeDTimeSeriesCategories, getTwoDCategories, getTwoDEnsTimeSeriesCategories, getTwoDTimeSeriesCategories, initCategories, setEnsembleSelectionMethods inherited from class ucar.unidata.data.FilesDataSource
doRemove, equals, getDataFileExtension, getDataPaths, getFilePath, getFullDescription, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterCreation, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, reloadData, saveDataToLocalDisk, setNewFiles, setSources, updateStateMethods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelectionStride, canPoll, canSaveDataToLocalDisk, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, 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, 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, initDataChoice, initDataSelectionComponents, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeDerivedDataChoices, 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, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, writeFieldMaskFile, writeFieldMaskFileMethods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ucar.unidata.data.DataSource
getUniqueId
-
Constructor Details
-
Vis5DDataSource
public Vis5DDataSource()Dummy constructor so this object can get unpersisted. -
Vis5DDataSource
public Vis5DDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties) throws VisADException Create a Vis5DDataSource from the specification given.- Parameters:
descriptor- descriptor for the DataSourcesource- source of data (filename)properties- extra properties for initialization- Throws:
VisADException- couldn't create the data
-
-
Method Details
-
sourcesChanged
protected void sourcesChanged()The source has changed- Overrides:
sourcesChangedin classFilesDataSource
-
doMakeDataChoices
protected void doMakeDataChoices()Create theDataChoices for this data source- Overrides:
doMakeDataChoicesin classDataSourceImpl
-
getDataInner
protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException Get the data described by the selection parameters- Overrides:
getDataInnerin classDataSourceImpl- Parameters:
dataChoice- choice describing datacategory- the data categorydataSelection- subsetting specsrequestProperties- extra request properties- Returns:
- the data (a grid)
- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
doMakeDateTimes
Create the list of times associated with this datasource- Overrides:
doMakeDateTimesin classDataSourceImpl- Returns:
- list of times
-
getField
public FieldImpl getField(DataChoice dc, DataSelection dataSelection) throws VisADException, RemoteException Get the grid described by the selection parameters- Parameters:
dc- choice describing the datadataSelection- subsetting properties- Returns:
- grid (FieldImpl) of data
- Throws:
RemoteException- On badnessVisADException- On badness
-
canDoGeoSelection
public boolean canDoGeoSelection()We can do geo selection in the properties gui- Specified by:
canDoGeoSelectionin interfaceDataSource- Overrides:
canDoGeoSelectionin classDataSourceImpl- Returns:
- can do geo selection
-
canDoGeoSelectionMap
protected boolean canDoGeoSelectionMap()Used for the geo subsetting property gui as to whether to show the map selection or not- Overrides:
canDoGeoSelectionMapin classDataSourceImpl- Returns:
- default is true
-
setSource
Set the Source property.- Overrides:
setSourcein classFilesDataSource- Parameters:
value- The new value for Source
-
main
Test by running "java ucar.unidata.data.grid.Vis5DDataSource" - Parameters:
args- filename- Throws:
Exception- problem running this
-