Package ucar.unidata.data.sounding
Class TrajectoryFeatureTypeDataSource
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.FilesDataSource
ucar.unidata.data.sounding.TrackDataSource
ucar.unidata.data.sounding.TrajectoryFeatureTypeDataSource
- All Implemented Interfaces:
Sharable,DataSource,DataSourceFactory,XmlPersistable
Created by IntelliJ IDEA.
User: yuanho
Date: Oct 5, 2009
Time: 2:47:02 PM
To change this template use File | Settings | File Templates.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringsonde locations deprecated use ID_SONDESTARTLOCATIONSstatic final Stringsounding trace idFields inherited from class ucar.unidata.data.sounding.TrackDataSource
ID_LASTOB, ID_POINTTRACE, ID_SOUNDINGOB, ID_SOUNDINGTRACE, ID_TIMETRACE, ID_WHOLETRACE, PROP_TRACKTYPE, soundingCats, traceCatsFields 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 ConstructorTrajectoryFeatureTypeDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties) Create a SondeDataSource from the specification given.TrajectoryFeatureTypeDataSource(DataSourceDescriptor descriptor, List sources, Hashtable properties) Create a SondeDataSource from the specification given. -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldImplaggregateTracks(List tracks, Object id0) Aggregate the tracksprotected TrackAdapterdoMakeAdapter(String file, Hashtable pointDataFilter, int stride, int lastNMinutes) Factory method to make the adapterprotected voidMake theDataChoices associated with this datasetprotected ListMake the list of times associated with this DataSource for DataSelection.protected DateTimeGet the base time for the sondesprotected DatagetDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) Get the VisAD Data object that corresponds to the dataChoice category and dataSelection criteria.protected DateTime[]Get the times in the tracksprotected voidinit sounding categoryvoidsetTraceAdapter(String traceAdapter) Methods inherited from class ucar.unidata.data.sounding.TrackDataSource
addActions, addPropertiesTabs, applyProperties, canDoView, canSaveDataToLocalDisk, doRemove, getAdapters, getChoiceId, getChoiceId0, getDataChoiceLabel, getFullDescription, getHaveAskedToSubset, getLastNMinutes, getLastPointOb, getMinMaxTime, getPointDataFilter, getPointObTrack, getPropertiesComponents, getRaobCategories, getSoundingCategories, getSoundingOb, getSoundingTrace, getStride, getTraceAdapter, getTraceCategories, getTrack, getTrackId, getTracks, initAfter, initAfterCreation, initTrack, main, mergeTracks, resetLastNMinutesFld, resetStrideFld, setHaveAskedToSubset, setLastNMinutes, setName, setPointDataFilter, setStride, setTraceAdapter, showSqlShellMethods inherited from class ucar.unidata.data.FilesDataSource
equals, getDataFileExtension, getDataPaths, getFilePath, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, reloadData, saveDataToLocalDisk, setNewFiles, setSource, setSources, sourcesChanged, updateStateMethods inherited from class ucar.unidata.data.DataSourceImpl
addDataChangeListener, addDataChoice, addReloadTab, applyFieldMask, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, 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, 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, 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, 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
-
ID_SONDELOCATIONS
sonde locations deprecated use ID_SONDESTARTLOCATIONS- See Also:
-
ID_SONDESTARTLOCATIONS
sounding trace id- See Also:
-
-
Constructor Details
-
TrajectoryFeatureTypeDataSource
public TrajectoryFeatureTypeDataSource()Default Constructor -
TrajectoryFeatureTypeDataSource
public TrajectoryFeatureTypeDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties) throws VisADException Create a SondeDataSource from the specification given.- Parameters:
descriptor- descriptor for the DataSourcesource- file location or URLproperties- extra properties- Throws:
VisADException- problem creating data
-
TrajectoryFeatureTypeDataSource
public TrajectoryFeatureTypeDataSource(DataSourceDescriptor descriptor, List sources, Hashtable properties) throws VisADException Create a SondeDataSource from the specification given.- Parameters:
descriptor- descriptor for the DataSourcesources- file location or URLproperties- extra properties- Throws:
VisADException- problem creating data
-
-
Method Details
-
initCategories
protected void initCategories()init sounding category- Overrides:
initCategoriesin classTrackDataSource
-
getBaseTime
Get the base time for the sondes- Overrides:
getBaseTimein classTrackDataSource- Returns:
- base time
-
getTimeList
Get the times in the tracks- Returns:
- times of the tracks
-
doMakeDateTimes
Make the list of times associated with this DataSource for DataSelection.- Overrides:
doMakeDateTimesin classTrackDataSource- Returns:
- DateTimes as a list.
-
aggregateTracks
Aggregate the tracks- Overrides:
aggregateTracksin classTrackDataSource- Parameters:
tracks- List of sonde tracksid0- _more_- Returns:
- FieldImpl of aggregated tracks
- Throws:
RemoteException- Java RMI ExceptionRemoteException- _more_VisADException- problem in VisAD
-
doMakeDataChoices
protected void doMakeDataChoices()Make theDataChoices associated with this dataset- Overrides:
doMakeDataChoicesin classTrackDataSource
-
doMakeAdapter
protected TrackAdapter doMakeAdapter(String file, Hashtable pointDataFilter, int stride, int lastNMinutes) throws Exception Factory method to make the adapter- Overrides:
doMakeAdapterin classTrackDataSource- Parameters:
file- file or urlpointDataFilter- When creating point data this holds the map of variables to usestride- stringlastNMinutes- clipping- Returns:
- The adapter
- Throws:
Exception- On badness
-
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:
getDataInnerin classTrackDataSource- Parameters:
dataChoice- choice for datacategory- specific category of data (not used currently)dataSelection- additional selection criteriarequestProperties- extra request properties- Returns:
- corresponding Data object
- Throws:
VisADException- unable to create Data objectRemoteException- (some kind of remote error.
-
setTraceAdapter
- Throws:
Exception
-