public abstract class RadarDataSource extends FilesDataSource implements RadarConstants
RadarAdapter
-s to adapte each file.Modifier and Type | Field and Description |
---|---|
static DataCategory |
CATEGORY_CAPPI
Radar data appropriate for CAPPIE
|
static DataCategory |
CATEGORY_ISOSURFACE
Radar data appropriate for radar isosurface
|
static DataCategory |
CATEGORY_ISOSURFACE_TIME
Radar data appropriate for radar isosurface
|
static DataCategory |
CATEGORY_RASTER_2D
The 2D radar sweep category
|
static DataCategory |
CATEGORY_RASTER_2D_TIME
The 2D radar sweep category with time
|
static DataCategory |
CATEGORY_RHI
Radar data appropriate for RHI
|
static DataCategory |
CATEGORY_RHISWEEP
RHI sweep category
|
static DataCategory |
CATEGORY_SWEEP_2D
The 2D radar sweep category
|
static DataCategory |
CATEGORY_SWEEP_2D_TIME
The 2D radar sweep category
|
static DataCategory |
CATEGORY_SWEEP_3D
2d sweep category
|
static DataCategory |
CATEGORY_SWEEP_3D_TIME
3d sweep category
|
static DataCategory |
CATEGORY_TH
The radar time height category
|
static DataCategory |
CATEGORY_VCS
Radar data appropriate for radar vertical cross section
|
static DataCategory |
CATEGORY_VOLUME
Radar data appropriate for radar volume
|
static DataCategory |
CATEGORY_VWP
The radar vertical wind profiler category
|
java.lang.Object |
TimeDriver
_more_
|
boolean |
useDriverTime
_more_
|
adapters, oldSourceFromBundles, sources
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES
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
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 |
---|
RadarDataSource()
Construct a radar data source.
|
RadarDataSource(DataSourceDescriptor descriptor,
java.util.List sources,
java.lang.String description,
java.util.Hashtable properties)
Construct a new radar data source.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canSaveDataToLocalDisk()
Can this data source save its dat to local disk
|
void |
clearCachedData()
This is called when the CacheManager detects the need ot clear memory.
|
protected java.util.List |
doMakeDateTimes()
Create the list of times associated with this DataSource.
|
void |
doRemove()
Gets called by the
DataManager when this DataSource has
been removed. |
protected java.util.List<RadarAdapter> |
getAdapters()
Create, if needed, and return the list of adapters.
|
protected visad.Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection subset,
java.util.Hashtable requestProperties)
Get the data for the given DataChoice and selection criteria.
|
protected java.util.List<RadarAdapter> |
getRadarAdapters()
Get the list of adapters.
|
void |
initAfterUnpersistence()
handle legacy bundles
|
protected boolean |
isRealTime()
Are we doing real time
|
protected abstract RadarAdapter |
makeRadarAdapter(java.lang.String source)
Make a RadarAdapter from the source
|
protected java.lang.String |
processDataFilename(java.lang.String filename,
int index)
Transmogrify the filename
|
equals, getDataFileExtension, getDataPaths, getFilePath, getFullDescription, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterCreation, initWithPollingInfo, isFileBased, newFilesFromPolling, propertiesChanged, reloadData, reloadData, saveDataToLocalDisk, setNewFiles, setSource, setSources, sourcesChanged, updateState
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, writeFieldMaskFile
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUniqueId
public boolean useDriverTime
public java.lang.Object TimeDriver
public static final DataCategory CATEGORY_RHI
public static final DataCategory CATEGORY_RHISWEEP
public static final DataCategory CATEGORY_CAPPI
public static final DataCategory CATEGORY_VOLUME
public static final DataCategory CATEGORY_VCS
public static final DataCategory CATEGORY_ISOSURFACE
public static final DataCategory CATEGORY_ISOSURFACE_TIME
public static final DataCategory CATEGORY_SWEEP_3D
public static final DataCategory CATEGORY_SWEEP_3D_TIME
public static final DataCategory CATEGORY_SWEEP_2D
public static final DataCategory CATEGORY_SWEEP_2D_TIME
public static final DataCategory CATEGORY_TH
public static final DataCategory CATEGORY_VWP
public static final DataCategory CATEGORY_RASTER_2D
public static final DataCategory CATEGORY_RASTER_2D_TIME
public RadarDataSource()
public RadarDataSource(DataSourceDescriptor descriptor, java.util.List sources, java.lang.String description, java.util.Hashtable properties) throws visad.VisADException
descriptor
- descriptor for this datasourcesources
- List of sources of data (filenames, URLs)description
- Description of the filesproperties
- hashtable of properties. Includes radar locationvisad.VisADException
- couldn't create the datapublic boolean canSaveDataToLocalDisk()
canSaveDataToLocalDisk
in interface DataSource
canSaveDataToLocalDisk
in class DataSourceImpl
protected java.lang.String processDataFilename(java.lang.String filename, int index)
processDataFilename
in class FilesDataSource
filename
- filenameindex
- which onepublic void initAfterUnpersistence()
initAfterUnpersistence
in interface DataSource
initAfterUnpersistence
in class FilesDataSource
protected abstract RadarAdapter makeRadarAdapter(java.lang.String source) throws java.lang.Exception
source
- source (file or URL) of datajava.lang.Exception
- problem creating the adapter.public void clearCachedData()
clearCachedData
in interface DataSource
clearCachedData
in class DataSourceImpl
protected java.util.List<RadarAdapter> getAdapters()
protected java.util.List doMakeDateTimes()
doMakeDateTimes
in class DataSourceImpl
protected boolean isRealTime()
protected visad.Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection subset, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
getDataInner
in class DataSourceImpl
dataChoice
- DataChoice for selectioncategory
- DataCategory for the DataChoice (not used)subset
- subsetting criteriarequestProperties
- extra request propertiesjava.rmi.RemoteException
- couldn't create a remote data objectvisad.VisADException
- couldn't create the dataprotected java.util.List<RadarAdapter> getRadarAdapters()
public void doRemove()
DataManager
when this DataSource has
been removed.doRemove
in interface DataSource
doRemove
in class FilesDataSource