public class CDMRadarDataSource extends RadarDataSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LevelII |
static java.lang.String |
PROP_RADARQUERY
This holds the RadarQuery in the properties
|
CATEGORY_CAPPI, CATEGORY_ISOSURFACE, CATEGORY_ISOSURFACE_TIME, CATEGORY_RASTER_2D, CATEGORY_RASTER_2D_TIME, CATEGORY_RHI, CATEGORY_RHISWEEP, CATEGORY_SWEEP_2D, CATEGORY_SWEEP_2D_TIME, CATEGORY_SWEEP_3D, CATEGORY_SWEEP_3D_TIME, CATEGORY_TH, CATEGORY_VCS, CATEGORY_VOLUME, CATEGORY_VWP, TimeDriver, useDriverTime
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 |
---|
CDMRadarDataSource()
Zero-argument constructor for construction via unpersistence.
|
CDMRadarDataSource(DataSourceDescriptor descriptor,
java.util.List sources,
java.util.Hashtable properties)
Construct a new CDM data source.
|
CDMRadarDataSource(DataSourceDescriptor descriptor,
RadarQuery radarQuery,
java.util.Hashtable properties)
Construct a new CDM data source.
|
CDMRadarDataSource(DataSourceDescriptor descriptor,
java.lang.String[] sources,
java.util.Hashtable properties)
Construct a new CDM data source.
|
CDMRadarDataSource(DataSourceDescriptor descriptor,
java.lang.String fileName,
java.util.Hashtable properties)
Construct a new CDM data source.
|
Modifier and Type | Method and Description |
---|---|
boolean |
applyProperties()
Apply properties components
|
boolean |
canCacheDataToDisk()
Can this data source cache its
|
void |
doMakeDataChoices()
Make and insert the
DataChoice -s for this
DataSource . |
boolean |
equals(java.lang.Object o)
Check to see if this
DoradeDataSource is equal to the object
in question. |
java.util.List |
getAllLevels(DataChoice dataChoice,
DataSelection dataSelection)
Get the list of all levels available from this DataSource
|
java.util.List<visad.DateTime> |
getAllTimesForTimeDriver(DataChoice dataChoice,
DataSelection selection,
java.util.List<visad.DateTime> timeDriverTimes)
Get all times for the time driver
|
void |
getPropertiesComponents(java.util.List comps)
Add the gui components into the list for the properties dialog
|
NamedStationTable |
getStations()
Read in the nexrad stations from the
idv/resources/nexradstns.xml resource
|
int |
hashCode()
Get the hash code for this object.
|
void |
initAfterUnpersistence()
handle legacy bundles
|
protected boolean |
isRealTime()
Are we doing real time and relative time
|
static void |
main(java.lang.String[] args)
Test program
|
protected RadarAdapter |
makeRadarAdapter(java.lang.String source)
Make the RadarAdapter for this class
|
void |
reloadData()
Clear out and reinitialize the date
|
void |
reloadData(java.lang.Object object,
java.util.Hashtable properties)
Reload the data
|
protected boolean |
shouldCache(visad.Data data)
Overwrite base class method so we don't cache to memory
|
canSaveDataToLocalDisk, clearCachedData, doMakeDateTimes, doRemove, getAdapters, getDataInner, getRadarAdapters, processDataFilename
getDataFileExtension, getDataPaths, getFilePath, getFullDescription, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterCreation, initWithPollingInfo, isFileBased, newFilesFromPolling, propertiesChanged, saveDataToLocalDisk, setNewFiles, setSource, setSources, sourcesChanged, updateState
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, beginWritingDataToLocalDisk, canAddCurrentName, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, 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, 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, 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 static final java.lang.String PROP_RADARQUERY
public static final java.lang.String LevelII
public CDMRadarDataSource()
public CDMRadarDataSource(DataSourceDescriptor descriptor, java.util.List sources, java.util.Hashtable properties) throws visad.VisADException
descriptor
- descriptor for this DataSource
sources
- List of filenamesproperties
- hashtable of propertiesvisad.VisADException
- problem creating datapublic CDMRadarDataSource(DataSourceDescriptor descriptor, java.lang.String[] sources, java.util.Hashtable properties) throws visad.VisADException
descriptor
- descriptor for this datasourcesources
- files to readproperties
- hashtable of properties. Includes radar locationvisad.VisADException
- couldn't create the datapublic CDMRadarDataSource(DataSourceDescriptor descriptor, java.lang.String fileName, java.util.Hashtable properties) throws visad.VisADException
descriptor
- descriptor for this DataSource
fileName
- name of the DORADE file to readproperties
- hashtable of propertiesvisad.VisADException
- problem creating datapublic CDMRadarDataSource(DataSourceDescriptor descriptor, RadarQuery radarQuery, java.util.Hashtable properties) throws visad.VisADException
descriptor
- descriptor for this DataSource
radarQuery
- Holds the query infoproperties
- hashtable of propertiesvisad.VisADException
- problem creating dataprotected boolean shouldCache(visad.Data data)
shouldCache
in class DataSourceImpl
data
- The data to cachepublic void reloadData(java.lang.Object object, java.util.Hashtable properties)
reloadData
in interface DataSource
reloadData
in class FilesDataSource
object
- the objectproperties
- the propertiespublic void initAfterUnpersistence()
initAfterUnpersistence
in interface DataSource
initAfterUnpersistence
in class RadarDataSource
public void reloadData()
reloadData
in interface DataSource
reloadData
in class FilesDataSource
protected boolean isRealTime()
isRealTime
in class RadarDataSource
public java.util.List<visad.DateTime> getAllTimesForTimeDriver(DataChoice dataChoice, DataSelection selection, java.util.List<visad.DateTime> timeDriverTimes)
getAllTimesForTimeDriver
in class DataSourceImpl
dataChoice
- the DataChoiceselection
- the DataSelectiontimeDriverTimes
- the time driver timespublic void doMakeDataChoices()
DataChoice
-s for this
DataSource
.doMakeDataChoices
in class DataSourceImpl
public boolean equals(java.lang.Object o)
DoradeDataSource
is equal to the object
in question.equals
in class FilesDataSource
o
- object in questionpublic int hashCode()
hashCode
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- file nameprotected RadarAdapter makeRadarAdapter(java.lang.String source) throws java.lang.Exception
makeRadarAdapter
in class RadarDataSource
source
- source of the datajava.lang.Exception
- problem opening the file or creating the datapublic void getPropertiesComponents(java.util.List comps)
getPropertiesComponents
in class DataSourceImpl
comps
- List of componentspublic boolean applyProperties()
applyProperties
in class DataSourceImpl
public boolean canCacheDataToDisk()
canCacheDataToDisk
in class DataSourceImpl
public NamedStationTable getStations()
NamedStation
-spublic java.util.List getAllLevels(DataChoice dataChoice, DataSelection dataSelection)
getAllLevels
in interface DataSource
getAllLevels
in class DataSourceImpl
dataChoice
- The data choice we are getting levels fordataSelection
- data selection