ucar.unidata.data.sounding
Class SondeDataSource

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.data.DataSourceImpl
          extended by ucar.unidata.data.FilesDataSource
              extended by ucar.unidata.data.sounding.TrackDataSource
                  extended by ucar.unidata.data.sounding.SondeDataSource
All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class SondeDataSource
extends TrackDataSource

A data source for balloon and aircraft tracks

Version:
$Revision: 1.25 $ $Date: 2007/04/16 20:34:57 $
Author:
IDV Development Team

Field Summary
static String ID_SONDELOCATIONS
          Deprecated. use ID_SONDESTARTLOCATIONS
static String ID_SONDESTARTLOCATIONS
          sounding trace id
 
Fields inherited from class ucar.unidata.data.sounding.TrackDataSource
ID_LASTOB, ID_POINTTRACE, ID_SOUNDINGOB, ID_SOUNDINGTRACE, ID_TIMETRACE, ID_WHOLETRACE, PROP_TRACKTYPE
 
Fields inherited from class ucar.unidata.data.FilesDataSource
adapters, oldSourceFromBundles, sources
 
Fields inherited from class ucar.unidata.data.DataSourceImpl
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES
 
Fields inherited from interface ucar.unidata.data.DataSource
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_TITLE
 
Constructor Summary
SondeDataSource()
          Default Constructor
SondeDataSource(DataSourceDescriptor descriptor, List sources, Hashtable properties)
          Create a SondeDataSource from the specification given.
SondeDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties)
          Create a SondeDataSource from the specification given.
 
Method Summary
protected  void doMakeDataChoices()
          Make the DataChoices associated with this dataset
protected  DateTime getBaseTime()
          Get the base time for the sondes
protected  Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties)
          Get the VisAD Data object that corresponds to the dataChoice category and dataSelection criteria.
protected  FieldImpl HIDEaggregateTracks(List tracks)
          Aggregate the tracks
 
Methods inherited from class ucar.unidata.data.sounding.TrackDataSource
addActions, addPropertiesTabs, aggregateTracks, applyProperties, canDoView, canSaveDataToLocalDisk, doMakeAdapter, doMakeDateTimes, doRemove, getAdapters, getChoiceId, getDataChoiceLabel, getFullDescription, getHaveAskedToSubset, getLastNMinutes, getLastPointOb, getMinMaxTime, getPointDataFilter, getPointObTrack, getPropertiesComponents, getRaobCategories, getSoundingCategories, getSoundingOb, getSoundingTrace, getStride, getTraceCategories, getTrack, getTrackId, getTracks, initAfter, initAfterCreation, initCategories, initTrack, main, mergeTracks, resetLastNMinutesFld, resetStrideFld, setHaveAskedToSubset, setLastNMinutes, setName, setPointDataFilter, setStride, showSqlShell
 
Methods inherited from class ucar.unidata.data.FilesDataSource
equals, getDataFileExtension, getDataPaths, getFilePath, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, saveDataToLocalDisk, setNewFiles, setSource, setSources, sourcesChanged, updateState
 
Methods inherited from class ucar.unidata.data.DataSourceImpl
addDataChangeListener, addDataChoice, applyFieldMask, beginWritingDataToLocalDisk, canCacheDataToDisk, canChangeData, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDescription, getDescriptor, getErrorMessage, getExtraGeoSelectionComponent, getFileFilterForPolling, getid, 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, initDataChoice, initDataSelectionComponents, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeDerivedDataChoices, makeSaveLocalActions, newFileFromPolling, notifyDataChange, putCache, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDescription, setDescriptor, setDirectory, setInError, setInError, setInError, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, writeFieldMaskFile, writeFieldMaskFile
 
Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucar.unidata.data.DataSource
getUniqueId
 

Field Detail

ID_SONDELOCATIONS

public static final String ID_SONDELOCATIONS
Deprecated. use ID_SONDESTARTLOCATIONS
sonde locations

See Also:
Constant Field Values

ID_SONDESTARTLOCATIONS

public static final String ID_SONDESTARTLOCATIONS
sounding trace id

See Also:
Constant Field Values
Constructor Detail

SondeDataSource

public SondeDataSource()
Default Constructor


SondeDataSource

public SondeDataSource(DataSourceDescriptor descriptor,
                       String source,
                       Hashtable properties)
                throws VisADException
Create a SondeDataSource from the specification given.

Parameters:
descriptor - descriptor for the DataSource
source - file location or URL
properties - extra properties
Throws:
VisADException

SondeDataSource

public SondeDataSource(DataSourceDescriptor descriptor,
                       List sources,
                       Hashtable properties)
                throws VisADException
Create a SondeDataSource from the specification given.

Parameters:
descriptor - descriptor for the DataSource
sources - file location or URL
properties - extra properties
Throws:
VisADException
Method Detail

getBaseTime

protected DateTime getBaseTime()
Get the base time for the sondes

Overrides:
getBaseTime in class TrackDataSource
Returns:
base time

HIDEaggregateTracks

protected FieldImpl HIDEaggregateTracks(List tracks)
                                 throws VisADException,
                                        RemoteException
Aggregate the tracks

Parameters:
tracks - List of sonde tracks
Returns:
FieldImpl of aggregated tracks
Throws:
RemoteException - Java RMI Exception
VisADException - problem in VisAD

doMakeDataChoices

protected void doMakeDataChoices()
Make the DataChoices associated with this dataset

Overrides:
doMakeDataChoices in class TrackDataSource

getDataInner

protected Data getDataInner(DataChoice dataChoice,
                            DataCategory category,
                            DataSelection dataSelection,
                            Hashtable requestProperties)
                     throws VisADException,
                            RemoteException
Get the VisAD Data object that corresponds to the dataChoice category and dataSelection criteria.

Overrides:
getDataInner in class TrackDataSource
Parameters:
dataChoice - choice for data
category - specific category of data (not used currently)
dataSelection - additional selection criteria
requestProperties - extra request properties
Returns:
corresponding Data object
Throws:
VisADException - unable to create Data object
RemoteException - (some kind of remote error.