public class RadarMethods extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
RadarMethods.CompareKeyDescend |
| Modifier and Type | Field and Description |
|---|---|
static List<Station> |
nexradList |
static HashMap<String,Station> |
nexradMap |
static String |
nexradStations |
static ArrayList<String> |
nexradVars |
static List<Station> |
terminalList |
static HashMap<String,Station> |
terminalMap |
static String |
terminalStations |
static ArrayList<String> |
terminalVars |
| Constructor and Description |
|---|
RadarMethods() |
RadarMethods(String contentPath,
org.slf4j.Logger log) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getPath() |
String |
getStartDateTime(String path) |
Station |
getStation(String station,
RadarServer.RadarType radarType)
returns station or null
|
String[] |
getStations(RadarServer.RadarType radarType)
returns stations or null
|
void |
HTMLdataset(String product,
String rPath,
PrintWriter pw,
String serviceBase) |
boolean |
isStation(String station,
RadarServer.RadarType radarType)
returns true if a station
|
boolean |
isStationListEmpty(List<String> stations,
RadarServer.RadarType radarType)
Determine if any of the given station names are actually in the dataset.
|
boolean |
isVar(String var,
RadarServer.RadarType radarType)
returns true if a variable
|
static void |
main(String[] args) |
org.jdom2.Document |
makeStationDocument(org.jdom2.Document doc,
org.jdom2.Element rootElem,
String[] stations,
RadarServer.RadarType radarType)
Create an XML station document
|
void |
printStations(String[] stations,
PrintWriter pw,
RadarServer.RadarType radarType)
print station in a XML format from this info
|
void |
radarQuery(RadarServer.RadarType radarType,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
PrintWriter pw) |
String[] |
stationsDS(RadarServer.RadarType radarType,
String path) |
org.jdom2.Document |
stationsXML(RadarServer.RadarType radarType,
org.jdom2.Document doc,
org.jdom2.Element rootElem,
String path) |
void |
XMLdataset(String product,
String rPath,
PrintWriter pw) |
public static final String nexradStations
public static final String terminalStations
public RadarMethods()
public RadarMethods(String contentPath, org.slf4j.Logger log)
public org.jdom2.Document stationsXML(RadarServer.RadarType radarType, org.jdom2.Document doc, org.jdom2.Element rootElem, String path) throws Exception
Exceptionprotected String getPath()
public void radarQuery(RadarServer.RadarType radarType, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, PrintWriter pw) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionpublic void XMLdataset(String product, String rPath, PrintWriter pw) throws IOException
IOExceptionpublic void HTMLdataset(String product, String rPath, PrintWriter pw, String serviceBase) throws IOException
IOExceptionpublic org.jdom2.Document makeStationDocument(org.jdom2.Document doc,
org.jdom2.Element rootElem,
String[] stations,
RadarServer.RadarType radarType)
throws Exception
doc - rootElem - stations - Exceptionpublic String[] stationsDS(RadarServer.RadarType radarType, String path) throws Exception
Exceptionpublic void printStations(String[] stations, PrintWriter pw, RadarServer.RadarType radarType) throws Exception
stations - pw - Exceptionpublic boolean isStationListEmpty(List<String> stations, RadarServer.RadarType radarType)
stations - List of station namesIOException - if read errorpublic boolean isStation(String station, RadarServer.RadarType radarType)
station - radarType - public Station getStation(String station, RadarServer.RadarType radarType)
station - radarType - public String[] getStations(RadarServer.RadarType radarType)
radarType - public boolean isVar(String var, RadarServer.RadarType radarType)
var - radarType - public static void main(String[] args) throws IOException
IOExceptionCopyright © 1999–2014 UCAR/Unidata. All rights reserved.