public class RadarServerUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
epic |
static Pattern |
p_yymmdd_hhmm |
static Pattern |
p_yyyymmdd_hhmm |
| Constructor and Description |
|---|
RadarServerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
convert4to3stations(List<String> stations) |
static String |
findClosestStation(double lat,
double lon,
List<Station> stations)
Find the station closest to the specified point.
|
static String |
getObTimeISO(String product) |
static Station |
getStation(String station,
DatasetRepository.RadarType radarType)
returns station or null
|
static List<String> |
getStationNames(LatLonRect boundingBox,
List<Station> stations)
Get the list of station names that are contained within the bounding box.
|
static List<String> |
getStationNames(List<Station> stations) |
static String |
hhmm(String dateTime) |
static boolean |
isStation(String station,
DatasetRepository.RadarType radarType)
returns true if a station
|
static boolean |
isStationListEmpty(List<String> stations,
DatasetRepository.RadarType radarType)
Determine if any of the given station names are actually in the dataset.
|
static boolean |
isValidDate(String dateReport,
String dateStart,
String dateEnd) |
static boolean |
isValidDay(String day,
String yyyymmddStart,
String yyyymmddEnd) |
public static final Pattern p_yymmdd_hhmm
public static final Pattern p_yyyymmdd_hhmm
public static final String epic
public static List<String> getStationNames(LatLonRect boundingBox, List<Station> stations)
boundingBox - lat/lon bounding boxIOException - if read errorpublic static String findClosestStation(double lat, double lon, List<Station> stations)
lat - latitude valuelon - longitude valueIOException - if read errorpublic static boolean isStationListEmpty(List<String> stations, DatasetRepository.RadarType radarType)
stations - List of station namesIOException - if read errorpublic static boolean isStation(String station, DatasetRepository.RadarType radarType)
station - radarType - public static Station getStation(String station, DatasetRepository.RadarType radarType)
station - radarType - Copyright © 1999–2013 UCAR/Unidata. All rights reserved.