Package ucar.unidata.data.point
Class AddePointDataSource
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.FilesDataSource
ucar.unidata.data.point.PointDataSource
ucar.unidata.data.point.AddePointDataSource
- All Implemented Interfaces:
Sharable,DataSource,DataSourceFactory,XmlPersistable
A data source for ADDE point data
- Author:
- IDV Development Team
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.unidata.data.point.PointDataSource
PointDataSource.PlotModelSelectionComponent -
Field Summary
Fields inherited from class ucar.unidata.data.point.PointDataSource
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_PLOTFields 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
ConstructorsConstructorDescriptionDefault contstructor.AddePointDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties) Create a newAddePointDataSourcefrom the parameters supplied. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanCreateGrid(RealType type) Is it ok to create a grid field for the parameter with the given real typebooleanCan this datasource do the geoselection subsetting and decimationprotected booleanUsed for the geo subsetting property gui as to whether to show the map selection or notprotected booleanUsed for the geo subsetting property gui as to whether to show the stride or notbooleanIs this data source capable of saving its data to local diskprotected ListGet the list of times for this datasourcebooleanCheck to see if this AddePointDataSource is equal to the object in question.getAllLevels(DataChoice dataChoice, DataSelection dataSelection) Get the list of all levels available from this DataSourceGet the name of this data.protected ListGet a list of selected levels.protected FieldImplgetSample(DataChoice dataChoice) Get a sample observationinthashCode()HashCode implementation.static voidmainprotected FieldImplmakeObs(DataChoice dataChoice, DataSelection subset, ucar.unidata.geoloc.LatLonRect bbox) Get the data from the ADDE URL and make the FieldImpl of PointObs from it.protected FieldImplmakeObs(DataChoice dataChoice, DataSelection subset, ucar.unidata.geoloc.LatLonRect bbox, boolean sampleIt) protected ListsaveDataToLocalDisk(String prefix, Object loadId, boolean changeLinks) Save data to local diskvoidSet the ADDE URL used for this object.Methods inherited from class ucar.unidata.data.point.PointDataSource
addPropertiesTabs, applyProperties, canAddCurrentName, canDoAllLevels, doMakeDataChoices, doRemove, getBinRoundTo, getBinWidth, getDataInner, 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, shouldCacheMethods inherited from class ucar.unidata.data.FilesDataSource
getDataFileExtension, getDataPaths, getFilePath, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterCreation, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, setNewFiles, setSources, sourcesChanged, updateStateMethods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addReloadTab, applyFieldMask, beginWritingDataToLocalDisk, canCacheDataToDisk, canChangeData, canDoFieldMask, canPoll, 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, 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, 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, notify, notifyAll, wait, wait, waitMethods inherited from interface ucar.unidata.data.DataSource
getUniqueId
-
Constructor Details
-
AddePointDataSource
Default contstructor.- Throws:
VisADException
-
AddePointDataSource
public AddePointDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties) throws VisADException Create a newAddePointDataSourcefrom the parameters supplied.- Parameters:
descriptor-DataSourceDescriptorfor this.source- Source URLproperties-Hashtableof properties for the source.- Throws:
VisADException- couldn't create the VisAD data
-
-
Method Details
-
canCreateGrid
Is it ok to create a grid field for the parameter with the given real type- Overrides:
canCreateGridin classPointDataSource- Parameters:
type- the type- Returns:
- ok to create grid
-
getDataName
Get the name of this data. Override superclass method.- Overrides:
getDataNamein classPointDataSource- Returns:
- name of data
-
canSaveDataToLocalDisk
public boolean canSaveDataToLocalDisk()Is this data source capable of saving its data to local disk- Specified by:
canSaveDataToLocalDiskin interfaceDataSource- Overrides:
canSaveDataToLocalDiskin classDataSourceImpl- Returns:
- Can save to local disk
-
saveDataToLocalDisk
protected List saveDataToLocalDisk(String prefix, Object loadId, boolean changeLinks) throws Exception Save data to local disk- Overrides:
saveDataToLocalDiskin classFilesDataSource- Parameters:
prefix- Fir dir and prefixloadId- For JobManagerchangeLinks- Change internal file references- Returns:
- The files we made
- Throws:
Exception- On badness
-
getSample
Get a sample observation- Overrides:
getSamplein classPointDataSource- Parameters:
dataChoice- choice- Returns:
- the sample
- Throws:
Exception- problem getting the sample
-
makeObs
protected FieldImpl makeObs(DataChoice dataChoice, DataSelection subset, ucar.unidata.geoloc.LatLonRect bbox) throws Exception Get the data from the ADDE URL and make the FieldImpl of PointObs from it.- Specified by:
makeObsin classPointDataSource- Parameters:
dataChoice- data choicesubset- subsetting selectionbbox- bounding box. may be null- Returns:
- data corresponding to the choice and subset
- Throws:
Exception- problem creating the data
-
makeObs
protected FieldImpl makeObs(DataChoice dataChoice, DataSelection subset, ucar.unidata.geoloc.LatLonRect bbox, boolean sampleIt) throws Exception - Parameters:
dataChoice- data choicesubset- subsetting selectionbbox- bounding box. may be nullsampleIt- flag to just get a sample ob- Returns:
- the data
- Throws:
Exception- problem reading data
-
canDoGeoSelection
public boolean canDoGeoSelection()Can this datasource do the geoselection subsetting and decimation- Specified by:
canDoGeoSelectionin interfaceDataSource- Overrides:
canDoGeoSelectionin classDataSourceImpl- Returns:
- can do geo subsetting
-
canDoGeoSelectionStride
protected boolean canDoGeoSelectionStride()Used for the geo subsetting property gui as to whether to show the stride or not- Overrides:
canDoGeoSelectionStridein classDataSourceImpl- Returns:
- default is true
-
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
-
equals
Check to see if this AddePointDataSource is equal to the object in question.- Overrides:
equalsin classFilesDataSource- Parameters:
o- object in question- Returns:
- true if they are the same or equivalent objects
-
hashCode
public int hashCode()HashCode implementation. -
setUrl
Set the ADDE URL used for this object.- Parameters:
url- ADDE URL deprecated Use setSource() instead.
-
mainxxx
main- Parameters:
args- args- Throws:
Exception- On badness
-
getAllLevels
Get the list of all levels available from this DataSource- Specified by:
getAllLevelsin interfaceDataSource- Overrides:
getAllLevelsin classDataSourceImpl- Parameters:
dataChoice- The data choice we are getting levels fordataSelection- data selection- Returns:
- List of all available levels
-
getDefaultLevels
Get a list of selected levels. Subclasses should override if they have levels.- Overrides:
getDefaultLevelsin classPointDataSource- Returns:
- list of levels (may be empty)
-
doMakeDateTimes
Get the list of times for this datasource- Overrides:
doMakeDateTimesin classDataSourceImpl- Returns:
- empty list from this class
-