public class STIStormDataSource extends 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_STORMCATEGORYchangeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YESDATAPATH_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 and Description |
|---|
STIStormDataSource()
constructor of sti storm data source
|
STIStormDataSource(DataSourceDescriptor descriptor,
String url,
Hashtable properties)
_more_
|
| Modifier and Type | Method and Description |
|---|---|
private void |
addDateSelection(DateTime sTime,
List whereList)
_more_
|
private void |
addProbabilityRadiusAttrs(List<Real> attrs,
float[] radiuses)
_more_
|
private Statement |
evaluate(String sql)
_more_
|
private List<StormInfo> |
getAllStormInfos()
_more_
|
private String |
getColHour()
_more_
|
private String |
getColYear()
_more_
|
Connection |
getConnection()
_more_
|
private DateTime |
getDateTime(int year,
int month,
int day,
int hour)
_more_
|
String |
getDbUrl()
Get the DbUrl property.
|
Way |
getDefaultObservationWay()
_more_
|
private StormTrack |
getForecastTrack(StormInfo stormInfo,
DateTime sTime,
Way forecastWay)
_more_
|
private List<StormTrack> |
getForecastTracks(StormInfo stormInfo,
Way forecastWay)
_more_
|
protected List<DateTime> |
getForecastTrackStartDates(StormInfo stormInfo,
Way way)
_more_
|
protected List<Way> |
getForecastWays(StormInfo stormInfo)
_more_
|
String |
getId()
_more_
|
boolean |
getIsObservationWayChangeable()
_more_
|
double |
getLatLonValue(double d)
_more_
|
protected StormTrack |
getObservationTrack(StormInfo stormInfo,
Way observationWay)
_more_
|
protected List<StormTrackPoint> |
getObservationTrack(StormInfo stormInfo,
Way wy,
DateTime before,
DateTime after,
List pts)
_more_
|
protected List<StormTrackPoint> |
getObservationTrackPoints(StormInfo stormInfo,
Way wy)
_more_
|
private float[] |
getProbabilityRadius(Way way,
int forecastHour)
_more_
|
protected DateTime |
getStartTime(List times)
_more_
|
List<StormInfo> |
getStormInfos()
_more_
|
protected DateTime |
getStormStartTime(String id)
_more_
|
StormTrackCollection |
getTrackCollectionInner(StormInfo stormInfo,
Hashtable<String,Boolean> waysToUse,
Way observationWay)
_more_
|
double |
getValue(double d,
String name)
If d is a missing value return NaN.
|
protected void |
getWayProbabilityRadius()
_more_
|
private boolean |
initConnection()
_more_
|
protected void |
initializeStormData()
_more_
|
protected void |
initParams()
_more_
|
boolean |
isEditable()
_more_
|
static void |
main(String[] args)
_more_
|
private void |
putProbabilityRadius(Way way,
int forecastHour,
float[] radiuses)
_more_
|
void |
setDbUrl(String value)
Set the DbUrl property.
|
private boolean |
useDerby()
_more_
|
addDistanceError, addWay, canAddCurrentName, difference, doMakeDataChoices, getCategory, getClosestPoint, getClosestPointRange, getDistance, getStormInfo, getTrackCollection, getWay, getWayName, getWays, getWaysName, getYear, initAfter, makeRealType, reloadDataaddActions, 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, getFullDescription, 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, writeFieldMaskFileapplySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUniqueIdprivate static final Way DEFAULT_OBSERVATION_WAY
private static final String DEFAULT_URL
private static final String DEFAULT_DERBY_URL
private static final String COL_DERBY_HOUR
private static final String COL_DERBY_YEAR
public static StormParam PARAM_MAXWINDSPEED
public static StormParam PARAM_RADIUSMODERATEGALE
public static StormParam PARAM_RADIUSWHOLEGALE
public static StormParam PARAM_PROBABILITY10RADIUS
public static StormParam PARAM_PROBABILITY20RADIUS
public static StormParam PARAM_PROBABILITY30RADIUS
public static StormParam PARAM_PROBABILITY40RADIUS
public static StormParam PARAM_PROBABILITY50RADIUS
public static StormParam PARAM_PROBABILITY60RADIUS
public static StormParam PARAM_PROBABILITY70RADIUS
public static StormParam PARAM_PROBABILITY80RADIUS
public static StormParam PARAM_PROBABILITY90RADIUS
public static StormParam PARAM_DISTANCE_ERROR
public static StormParam PARAM_PROBABILITY100RADIUS
public static StormParam PARAM_PROBABILITYRADIUS
public static StormParam PARAM_MOVEDIRECTION
public static StormParam PARAM_MOVESPEED
private static float MISSING
private static final String ZEROHOUR
private static final String TABLE_TRACK
private static final String COL_TYPHOON_YEAR
private static final String COL_TYPHOON_HOUR
private static final String COL_TYPHOON_STORMID
private static final String COL_TYPHOON_TIME
private static final String COL_TYPHOON_LATITUDE
private static final String COL_TYPHOON_LONGITUDE
private static final String COL_TYPHOON_MONTH
private static final String COL_TYPHOON_DAY
private static final String COL_TYPHOON_FHOUR
private static final String COL_TYPHOON_WAY
private static final String COL_TYPHOON_PRESSURE
private static final String COL_TYPHOON_WINDSPEED
private static final String COL_TYPHOON_RADIUSMG
private static final String COL_TYPHOON_RADIUSWG
private static final String COL_TYPHOON_MOVEDIR
private static final String COL_TYPHOON_MOVESPEED
private static final String TABLE_PROBILITY
private static final String COL_PROBILITY_WAYNAME
private static final String COL_PROBILITY_FHOUR
private static final String COL_PROBILITY_P10
private static final String COL_PROBILITY_P20
private static final String COL_PROBILITY_P30
private static final String COL_PROBILITY_P40
private static final String COL_PROBILITY_P50
private static final String COL_PROBILITY_P60
private static final String COL_PROBILITY_P70
private static final String COL_PROBILITY_P80
private static final String COL_PROBILITY_P90
private static final String COL_PROBILITY_P100
private static final String COL_DISTANCE_ERROR
private static final String COL_PROBILITY_REMARK
private Connection connection
private List<StormInfo> stormInfos
private HashMap<String,float[]> wayfhourToRadius
public STIStormDataSource() throws Exception
Exception - _more_public STIStormDataSource(DataSourceDescriptor descriptor, String url, Hashtable properties) throws Exception
descriptor - _more_url - _more_properties - _more_Exception - _more_private boolean useDerby()
public String getId()
getId in class StormDataSourceprivate String getColHour()
private String getColYear()
public boolean isEditable()
isEditable in class StormDataSourceprotected void initParams() throws VisADException
initParams in class StormDataSourceVisADException - _more_protected void initializeStormData()
initializeStormData in class StormDataSourcepublic List<StormInfo> getStormInfos()
getStormInfos in class StormDataSourcepublic StormTrackCollection getTrackCollectionInner(StormInfo stormInfo, Hashtable<String,Boolean> waysToUse, Way observationWay) throws Exception
getTrackCollectionInner in class StormDataSourcestormInfo - _more_waysToUse - _more_observationWay - _more_Exception - _more_private List<StormTrack> getForecastTracks(StormInfo stormInfo, Way forecastWay) throws Exception
stormInfo - _more_forecastWay - _more_Exception - _more_public double getValue(double d, String name)
d - is checked if not missing return same valuename - _more_public double getLatLonValue(double d)
d - _more_private StormTrack getForecastTrack(StormInfo stormInfo, DateTime sTime, Way forecastWay) throws Exception
stormInfo - _more_sTime - _more_forecastWay - _more_Exception - _more_private float[] getProbabilityRadius(Way way, int forecastHour)
way - _more_forecastHour - _more_private void putProbabilityRadius(Way way, int forecastHour, float[] radiuses)
way - _more_forecastHour - _more_radiuses - _more_private void addProbabilityRadiusAttrs(List<Real> attrs, float[] radiuses) throws Exception
attrs - _more_radiuses - _more_Exception - _more_private void addDateSelection(DateTime sTime, List whereList) throws VisADException
sTime - _more_whereList - _more_VisADException - _more_private DateTime getDateTime(int year, int month, int day, int hour) throws Exception
year - _more_month - _more_day - _more_hour - _more_Exception - _more_protected List<DateTime> getForecastTrackStartDates(StormInfo stormInfo, Way way) throws Exception
stormInfo - _more_way - _more_Exception - _more_protected void getWayProbabilityRadius() throws Exception
Exception - _more_protected StormTrack getObservationTrack(StormInfo stormInfo, Way observationWay) throws Exception
stormInfo - _more_observationWay - _more_Exception - _more_public boolean getIsObservationWayChangeable()
getIsObservationWayChangeable in class StormDataSourcepublic Way getDefaultObservationWay()
getDefaultObservationWay in class StormDataSourceprotected List<StormTrackPoint> getObservationTrackPoints(StormInfo stormInfo, Way wy) throws Exception
stormInfo - _more_wy - _more_Exception - _more_protected List<StormTrackPoint> getObservationTrack(StormInfo stormInfo, Way wy, DateTime before, DateTime after, List pts) throws Exception
stormInfo - _more_wy - _more_before - _more_after - _more_pts - _more_Exception - _more_protected DateTime getStartTime(List times)
times - _more_private List<StormInfo> getAllStormInfos() throws Exception
Exception - _more_protected DateTime getStormStartTime(String id) throws Exception
id - _more_Exception - _more_protected List<Way> getForecastWays(StormInfo stormInfo) throws Exception
stormInfo - _more_Exception - _more_private Statement evaluate(String sql) throws SQLException
sql - _more_SQLException - _more_public Connection getConnection()
private boolean initConnection() throws Exception
Exception - _more_public static void main(String[] args) throws Exception
args - _more_Exception - _more_public void setDbUrl(String value)
value - The new value for DbUrl