edu.wisc.ssec.mcidasv.data.cyclone
Class AtcfStormDataSource

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.data.DataSourceImpl
          extended by edu.wisc.ssec.mcidasv.data.cyclone.StormDataSource
              extended by edu.wisc.ssec.mcidasv.data.cyclone.AtcfStormDataSource
All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class AtcfStormDataSource
extends StormDataSource


Field Summary
private  int BASEIDX
          _more_
private static String DEFAULT_PATH
          _more_
private  int IDX_BASIN
          _more_
private  int IDX_CY
          _more_
private  int IDX_DEPTH
          _more_
private  int IDX_DIR
          _more_
private  int IDX_EYE
          _more_
private  int IDX_GUSTS
          _more_
private  int IDX_INITIALS
          _more_
private  int IDX_LAT
          _more_
private  int IDX_LON
          _more_
private  int IDX_MAXSEAS
          _more_
private  int IDX_MRD
          _more_
private  int IDX_MSLP
          _more_
private  int IDX_RAD
          _more_
private  int IDX_RAD1
          _more_
private  int IDX_RAD2
          _more_
private  int IDX_RAD3
          _more_
private  int IDX_RAD4
          _more_
private  int IDX_RADP
          _more_
private  int IDX_RRP
          _more_
private  int IDX_SEAS
          _more_
private  int IDX_SEAS1
          _more_
private  int IDX_SEAS2
          _more_
private  int IDX_SEAS3
          _more_
private  int IDX_SEAS4
          _more_
private  int IDX_SEASCODE
          _more_
private  int IDX_SPEED
          _more_
private  int IDX_STORMNAME
          _more_
private  int IDX_SUBREGION
          _more_
private  int IDX_TAU
          _more_
private  int IDX_TECH
          _more_
private  int IDX_TECHNUM
          _more_
private  int IDX_TY
          _more_
private  int IDX_VMAX
          _more_
private  int IDX_WINDCODE
          _more_
private  int IDX_YYYYMMDDHH
          _more_
private  StormTrackCollection localTracks
          _more_
private  String path
          _more_
private static String PREFIX_ANALYSIS
          _more_
private static String PREFIX_BEST
          _more_
private  List<StormInfo> stormInfos
          _more_
private static String WAY_BEST
          _more_
private static String WAY_CARQ
          _more_
private static String WAY_WRNG
          _more_
 
Fields inherited from class edu.wisc.ssec.mcidasv.data.cyclone.StormDataSource
ATTR_CATEGORY, CATEGORY_DB, CATEGORY_DS, CATEGORY_ET, CATEGORY_EX, CATEGORY_HU, CATEGORY_IN, CATEGORY_LO, CATEGORY_NAMES, CATEGORY_SD, CATEGORY_SS, CATEGORY_ST, CATEGORY_TC, CATEGORY_TD, CATEGORY_TS, CATEGORY_TY, CATEGORY_VALUES, CATEGORY_WV, CATEGORY_XX, forecastParams, obsParams, PARAM_MAXWINDSPEED_KTS, PARAM_MINPRESSURE, PARAM_STORMCATEGORY
 
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
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_TITLE
 
Constructor Summary
AtcfStormDataSource()
          _more_
AtcfStormDataSource(DataSourceDescriptor descriptor, String url, Hashtable properties)
          _more_
 
Method Summary
private  double getDouble(String s)
          _more_
 String getFullDescription()
          _more_
private  String getFullPath(String suffix)
          _more_
 String getId()
          _more_
 String getPath()
          Get the Directory property.
 List<StormInfo> getStormInfos()
          _more_
 StormTrackCollection getTrackCollectionInner(StormInfo stormInfo, Hashtable<String,Boolean> waysToUse, Way observationWay)
          _more_
 String getWayName()
          _more_
protected  void initializeStormData()
          _more_
protected  void initParams()
          _more_
private  byte[] readFile(String file, boolean ignoreErrors)
          _more_
private  boolean readTracks(StormInfo stormInfo, StormTrackCollection tracks, String trackFile, Hashtable<String,Boolean> waysToUse, boolean throwError)
          _more_
 void setPath(String value)
          Set the Directory property.
 
Methods inherited from class edu.wisc.ssec.mcidasv.data.cyclone.StormDataSource
addDistanceError, addWay, canAddCurrentName, difference, doMakeDataChoices, getCategory, getClosestPoint, getClosestPointRange, getDefaultObservationWay, getDistance, getIsObservationWayChangeable, getStormInfo, getTrackCollection, getWay, getWays, getWaysName, getYear, initAfter, isEditable, makeRealType, reloadData
 
Methods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canSaveDataToLocalDisk, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeDateTimes, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, doRemove, endWritingDataToLocalDisk, equals, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getAllTimesForTimeDriver, getCache, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataInner, getDataIsEditable, getDataPaths, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDefaultSave, getDescription, getDescriptor, getErrorMessage, getEverChangedName, getExtraGeoSelectionComponent, getExtraTimesComponent, getFileFilterForPolling, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getLocationsForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPartialDescription, 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, initAfterCreation, initAfterUnpersistence, initDataChoice, initDataSelectionComponents, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeDerivedDataChoices, makeSaveLocalActions, newFileFromPolling, newFilesFromPolling, notifyDataChange, propertiesChanged, putCache, putCache, reloadData, reloadProperties, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, saveDataToLocalDisk, selectTimesFromList, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDefaultSave, setDescription, setDescriptor, setDirectory, setEverChangedName, setInError, setInError, setInError, setName, setNewFiles, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, updateState, writeFieldMaskFile, writeFieldMaskFile
 
Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, 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

BASEIDX

private int BASEIDX
_more_


IDX_BASIN

private int IDX_BASIN
_more_


IDX_CY

private int IDX_CY
_more_


IDX_YYYYMMDDHH

private int IDX_YYYYMMDDHH
_more_


IDX_TECHNUM

private int IDX_TECHNUM
_more_


IDX_TECH

private int IDX_TECH
_more_


IDX_TAU

private int IDX_TAU
_more_


IDX_LAT

private int IDX_LAT
_more_


IDX_LON

private int IDX_LON
_more_


IDX_VMAX

private int IDX_VMAX
_more_


IDX_MSLP

private int IDX_MSLP
_more_


IDX_TY

private int IDX_TY
_more_


IDX_RAD

private int IDX_RAD
_more_


IDX_WINDCODE

private int IDX_WINDCODE
_more_


IDX_RAD1

private int IDX_RAD1
_more_


IDX_RAD2

private int IDX_RAD2
_more_


IDX_RAD3

private int IDX_RAD3
_more_


IDX_RAD4

private int IDX_RAD4
_more_


IDX_RADP

private int IDX_RADP
_more_


IDX_RRP

private int IDX_RRP
_more_


IDX_MRD

private int IDX_MRD
_more_


IDX_GUSTS

private int IDX_GUSTS
_more_


IDX_EYE

private int IDX_EYE
_more_


IDX_SUBREGION

private int IDX_SUBREGION
_more_


IDX_MAXSEAS

private int IDX_MAXSEAS
_more_


IDX_INITIALS

private int IDX_INITIALS
_more_


IDX_DIR

private int IDX_DIR
_more_


IDX_SPEED

private int IDX_SPEED
_more_


IDX_STORMNAME

private int IDX_STORMNAME
_more_


IDX_DEPTH

private int IDX_DEPTH
_more_


IDX_SEAS

private int IDX_SEAS
_more_


IDX_SEASCODE

private int IDX_SEASCODE
_more_


IDX_SEAS1

private int IDX_SEAS1
_more_


IDX_SEAS2

private int IDX_SEAS2
_more_


IDX_SEAS3

private int IDX_SEAS3
_more_


IDX_SEAS4

private int IDX_SEAS4
_more_


PREFIX_ANALYSIS

private static final String PREFIX_ANALYSIS
_more_

See Also:
Constant Field Values

PREFIX_BEST

private static final String PREFIX_BEST
_more_

See Also:
Constant Field Values

WAY_BEST

private static final String WAY_BEST
_more_

See Also:
Constant Field Values

WAY_CARQ

private static final String WAY_CARQ
_more_

See Also:
Constant Field Values

WAY_WRNG

private static final String WAY_WRNG
_more_

See Also:
Constant Field Values

DEFAULT_PATH

private static String DEFAULT_PATH
_more_


path

private String path
_more_


stormInfos

private List<StormInfo> stormInfos
_more_


localTracks

private StormTrackCollection localTracks
_more_

Constructor Detail

AtcfStormDataSource

public AtcfStormDataSource()
                    throws Exception
_more_

Throws:
Exception - _more_

AtcfStormDataSource

public AtcfStormDataSource(DataSourceDescriptor descriptor,
                           String url,
                           Hashtable properties)
_more_

Parameters:
descriptor - _more_
url - _more_
properties - _more_
Method Detail

getFullDescription

public String getFullDescription()
_more_

Specified by:
getFullDescription in interface DataSource
Overrides:
getFullDescription in class DataSourceImpl
Returns:
_more_

getId

public String getId()
_more_

Specified by:
getId in class StormDataSource
Returns:
_more_

getFullPath

private String getFullPath(String suffix)
_more_

Parameters:
suffix - _more_
Returns:
_more_

initializeStormData

protected void initializeStormData()
_more_

Overrides:
initializeStormData in class StormDataSource

getStormInfos

public List<StormInfo> getStormInfos()
_more_

Specified by:
getStormInfos in class StormDataSource
Returns:
_more_

getDouble

private double getDouble(String s)
_more_

Parameters:
s - _more_
Returns:
_more_

initParams

protected void initParams()
                   throws VisADException
_more_

Overrides:
initParams in class StormDataSource
Throws:
VisADException - _more_

readTracks

private boolean readTracks(StormInfo stormInfo,
                           StormTrackCollection tracks,
                           String trackFile,
                           Hashtable<String,Boolean> waysToUse,
                           boolean throwError)
                    throws Exception
_more_

Parameters:
stormInfo - _more_
tracks - _more_
trackFile - _more_
waysToUse - _more_
throwError - _more_
Returns:
_more_
Throws:
Exception - _more_

getWayName

public String getWayName()
_more_

Overrides:
getWayName in class StormDataSource
Returns:
_more_

getTrackCollectionInner

public StormTrackCollection getTrackCollectionInner(StormInfo stormInfo,
                                                    Hashtable<String,Boolean> waysToUse,
                                                    Way observationWay)
                                             throws Exception
_more_

Specified by:
getTrackCollectionInner in class StormDataSource
Parameters:
stormInfo - _more_
waysToUse - _more_
observationWay - _more_
Returns:
_more_
Throws:
Exception - _more_

setPath

public void setPath(String value)
Set the Directory property.

Parameters:
value - The new value for Directory

getPath

public String getPath()
Get the Directory property.

Returns:
The Directory

readFile

private byte[] readFile(String file,
                        boolean ignoreErrors)
                 throws Exception
_more_

Parameters:
file - _more_
ignoreErrors - _more_
Returns:
_more_
Throws:
Exception - _more_