Package ucar.unidata.data.radar
Class RadarDataSource
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.FilesDataSource
ucar.unidata.data.radar.RadarDataSource
- All Implemented Interfaces:
Sharable,DataSource,DataSourceFactory,RadarConstants,XmlPersistable
- Direct Known Subclasses:
CDMRadarDataSource,DoradeDataSource,Level2RadarDataSource,NetcdfRadarDataSource
A data source for Radar data files. This class holds a List of
data sources and a set of
RadarAdapter-s to adapte each file.- Version:
- $Revision: 1.38 $ $Date: 2007/07/26 19:45:01 $
- Author:
- Unidata Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataCategoryRadar data appropriate for CAPPIEstatic final DataCategoryRadar data appropriate for radar isosurfacestatic final DataCategoryRadar data appropriate for radar isosurfacestatic final DataCategoryThe 2D radar sweep categorystatic final DataCategoryThe 2D radar sweep category with timestatic final DataCategoryRadar data appropriate for RHIstatic final DataCategoryRHI sweep categorystatic final DataCategoryThe 2D radar sweep categorystatic final DataCategoryThe 2D radar sweep categorystatic final DataCategory2d sweep categorystatic final DataCategory3d sweep categorystatic final DataCategoryThe radar time height categorystatic final DataCategoryRadar data appropriate for radar vertical cross sectionstatic final DataCategoryRadar data appropriate for radar volumestatic final DataCategoryThe radar vertical wind profiler category_more_boolean_more_Fields 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_TITLEFields inherited from interface ucar.unidata.data.radar.RadarConstants
AZIMUTH, AZIMUTH_ANGLE, ELEVATION_ANGLE, PROP_2DOR3D, PROP_ANGLE, PROP_ANGLES, PROP_AZIMUTH, PROP_AZIMUTHS, PROP_CAPPI_LEVEL, PROP_CAPPI_LEVELS, PROP_TIMEHEIGHT, PROP_VCS, PROP_VCS_END, PROP_VCS_START, PROP_VOLUMEORSWEEP, PROP_VWP, RADAR_MOST_RECENT, RADIAL_VELOCITY_NAME, RANGE, REFLECTIVITY, REFLECTIVITY_NAME, SPECTRUM_WIDTH, SPECTRUM_WIDTH_NAME, STATION_LOCATION, VALUE_2D, VALUE_3D, VALUE_SWEEP, VALUE_VOLUME, VELOCITY -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a radar data source.RadarDataSource(DataSourceDescriptor descriptor, List sources, String description, Hashtable properties) Construct a new radar data source. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan this data source save its dat to local diskvoidThis is called when the CacheManager detects the need ot clear memory.protected ListCreate the list of times associated with this DataSource.voiddoRemove()Gets called by theDataManagerwhen this DataSource has been removed.protected List<RadarAdapter> Create, if needed, and return the list of adapters.protected DatagetDataInner(DataChoice dataChoice, DataCategory category, DataSelection subset, Hashtable requestProperties) Get the data for the given DataChoice and selection criteria.protected List<RadarAdapter> Get the list of adapters.voidhandle legacy bundlesprotected booleanAre we doing real timeprotected abstract RadarAdaptermakeRadarAdapter(String source) Make a RadarAdapter from the sourceprotected StringprocessDataFilename(String filename, int index) Transmogrify the filenameMethods inherited from class ucar.unidata.data.FilesDataSource
equals, getDataFileExtension, getDataPaths, getFilePath, getFullDescription, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterCreation, initWithPollingInfo, isFileBased, newFilesFromPolling, propertiesChanged, reloadData, reloadData, saveDataToLocalDisk, setNewFiles, setSource, setSources, sourcesChanged, updateStateMethods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeDataChoices, 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
-
Field Details
-
useDriverTime
public boolean useDriverTime_more_ -
TimeDriver
_more_ -
CATEGORY_RHI
Radar data appropriate for RHI -
CATEGORY_RHISWEEP
RHI sweep category -
CATEGORY_CAPPI
Radar data appropriate for CAPPIE -
CATEGORY_VOLUME
Radar data appropriate for radar volume -
CATEGORY_VCS
Radar data appropriate for radar vertical cross section -
CATEGORY_ISOSURFACE
Radar data appropriate for radar isosurface -
CATEGORY_ISOSURFACE_TIME
Radar data appropriate for radar isosurface -
CATEGORY_SWEEP_3D
2d sweep category -
CATEGORY_SWEEP_3D_TIME
3d sweep category -
CATEGORY_SWEEP_2D
The 2D radar sweep category -
CATEGORY_SWEEP_2D_TIME
The 2D radar sweep category -
CATEGORY_TH
The radar time height category -
CATEGORY_VWP
The radar vertical wind profiler category -
CATEGORY_RASTER_2D
The 2D radar sweep category -
CATEGORY_RASTER_2D_TIME
The 2D radar sweep category with time
-
-
Constructor Details
-
RadarDataSource
public RadarDataSource()Construct a radar data source. -
RadarDataSource
public RadarDataSource(DataSourceDescriptor descriptor, List sources, String description, Hashtable properties) throws VisADException Construct a new radar data source.- Parameters:
descriptor- descriptor for this datasourcesources- List of sources of data (filenames, URLs)description- Description of the filesproperties- hashtable of properties. Includes radar location- Throws:
VisADException- couldn't create the data
-
-
Method Details
-
canSaveDataToLocalDisk
public boolean canSaveDataToLocalDisk()Can this data source save its dat to local disk- Specified by:
canSaveDataToLocalDiskin interfaceDataSource- Overrides:
canSaveDataToLocalDiskin classDataSourceImpl- Returns:
- can save to local disk
-
processDataFilename
Transmogrify the filename- Overrides:
processDataFilenamein classFilesDataSource- Parameters:
filename- filenameindex- which one- Returns:
- new file name
-
initAfterUnpersistence
public void initAfterUnpersistence()handle legacy bundles- Specified by:
initAfterUnpersistencein interfaceDataSource- Overrides:
initAfterUnpersistencein classFilesDataSource
-
makeRadarAdapter
Make a RadarAdapter from the source- Parameters:
source- source (file or URL) of data- Returns:
- corresponding RadarAdapter
- Throws:
Exception- problem creating the adapter.
-
clearCachedData
public void clearCachedData()This is called when the CacheManager detects the need ot clear memory. It is intended to be overwritten by derived classes that are holding cached data that is not in the normal putCache facilities provided by this class since that data is actually managed by the CacheManager- Specified by:
clearCachedDatain interfaceDataSource- Overrides:
clearCachedDatain classDataSourceImpl
-
getAdapters
Create, if needed, and return the list of adapters. Will return null if there are no valid adapters.- Returns:
- List of adapters or null
-
doMakeDateTimes
Create the list of times associated with this DataSource.- Overrides:
doMakeDateTimesin classDataSourceImpl- Returns:
- list of times.
-
isRealTime
protected boolean isRealTime()Are we doing real time- Returns:
- is real time
-
getDataInner
protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection subset, Hashtable requestProperties) throws VisADException, RemoteException Get the data for the given DataChoice and selection criteria.- Overrides:
getDataInnerin classDataSourceImpl- Parameters:
dataChoice- DataChoice for selectioncategory- DataCategory for the DataChoice (not used)subset- subsetting criteriarequestProperties- extra request properties- Returns:
- the Data object for the request
- Throws:
RemoteException- couldn't create a remote data objectVisADException- couldn't create the data
-
getRadarAdapters
Get the list of adapters.- Returns:
- list of adapters.
-
doRemove
public void doRemove()Gets called by theDataManagerwhen this DataSource has been removed.- Specified by:
doRemovein interfaceDataSource- Overrides:
doRemovein classFilesDataSource
-