Package ucar.unidata.data
Class AddeUtil
java.lang.Object
ucar.unidata.data.AddeUtil
A class for holding some Adde related constants and static methods
- Version:
- $Revision: 1.5 $
- Author:
- IDV Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
Property for the absolute timesstatic final String
The latlon bounding box time indicatorstatic final String
The level indicatorstatic final String
Property for miscellaneous keywordsstatic String
Property for the number of relative timesstatic final String
The relative time indicatorstatic String
Property for the time incrementstatic final String
The relative time range indicatorstatic final String
The time driver time indicator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateTimeUrls
(DataSourceImpl datasource, String url, DataSelection subset) Generate a list of URLs, expanding any time macrosstatic void
Main method for testingstatic String[]
makeRelativeTimes
(int[] timeIndices, float timeInc) Make the relative timesstatic String[]
makeRelativeTimesGLM
(int[] timeIndices, float timeInc) Make the relative times
-
Field Details
-
RELATIVE_TIME
The relative time indicator- See Also:
-
TIME_DRIVER_TIMES
The time driver time indicator- See Also:
-
RELATIVE_TIME_RANGE
The relative time range indicator- See Also:
-
LATLON_BOX
The latlon bounding box time indicator- See Also:
-
LEVEL
The level indicator- See Also:
-
NUM_RELATIVE_TIMES
Property for the number of relative times -
RELATIVE_TIME_INCREMENT
Property for the time increment -
ABSOLUTE_TIMES
Property for the absolute times -
MISC_KEYWORDS
Property for miscellaneous keywords- See Also:
-
-
Constructor Details
-
AddeUtil
public AddeUtil()
-
-
Method Details
-
generateTimeUrls
public static List<String> generateTimeUrls(DataSourceImpl datasource, String url, DataSelection subset) Generate a list of URLs, expanding any time macros- Parameters:
datasource
- DataSource that holds relevant propertiesurl
- original source URLsubset
- the data selection with time subset info- Returns:
- List of expanded time urls
-
makeRelativeTimes
Make the relative times- Parameters:
timeIndices
- array of time indicestimeInc
- time increment (hours)- Returns:
- ADDE time select clause
-
makeRelativeTimesGLM
Make the relative times- Parameters:
timeIndices
- array of time indicestimeInc
- time increment (hours)- Returns:
- ADDE time select clause
-
main
Main method for testing- Parameters:
args
- not used
-