public class AddeTextReader extends Object
For File Reading:
URLs must all have the following format
adde://host/text?file=filename.ext
there can be any valid combination of the following supported keywords:
file - name of text file on ADDE server
the following keywords are required:
file
an example URL might look like:
adde://viper/text?file=filename.ext
For Weather Text Reading:
URLs must all have the following format
adde://host/wxtext?group=group&key1=value1&key2=val2....&keyn=valn
there can be any valid combination of the following supported keywords:
group=<group> weather text group (default= RTWXTEXT)
prod=<product> predefind product name
apro=<val1 .. valn> AFOS/AWIPS product headers to match (don't
use with wmo keyword
astn=<val1 .. valn> AFOS/AWIPS stations to match
wmo= <val1 .. valn> WMO product headers to match (don't
use with apro keyword
wstn=<val1 .. valn> WMO stations to match
day=<start end> range of days to search
dtime=<numhours> maximum number of hours to search back (def=96)
match=<match strings> list of character match strings to find from text
num=<num> number of matches to find (def=1)
the following keywords are required:
day (bug causes it not to default to current day)
one of the selection criteria
an example URL might look like:
adde://adde.ucar.edu/wxtext?group=rtwxtext&prod=zone_fcst&astn=bou
For Observational Text Reading:
URLs must all have the following format
adde://host/obtext?group=group&descr=descr&key1=value1....&keyn=valn
there can be any valid combination of the following supported keywords:
group=<group> weather text group (default= RTWXTEXT)
descr=<descriptor> weather text subgroup (default=SFCHOURLY)
id=<id1 id2 ... idn> list of station ids
co=<co1 co2 ... con> list of countries
reg=<reg1 reg2..regn> list of regions
newest=<day hour> most recent time to allow in request
(def=current time)
oldest=<day hour> oldest observation time to allow in request
type=<type> numeric value for the type of ob
nhours=<numhours> maximum number of hours to search
num=<num> number of matches to find (def=1)
the following keywords are required:
group
descr
id, co, or reg
an example URL might look like:
adde://adde.ucar.edu/obtext?group=rtwxtext&descr=sfchourly&id=kden&num=2
| Constructor and Description |
|---|
AddeTextReader(String request)
Creates an AddeTextReader object that allows reading an ADDE
text file or weather text
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
getLinesOfText() |
int |
getNumLines()
Return the number of lines of text that were read.
|
String |
getStatus()
Get a string representation of the status code
|
int |
getStatusCode()
Return the status code of the read
|
String |
getText()
Return the text read from the server.
|
List<WxTextProduct> |
getWxTextProducts() |
static void |
main(String[] args)
test by running 'java edu.wisc.ssec.mcidas.adde.AddeTextReader'
|
public AddeTextReader(String request)
request - ADDE URL to read from. See class javadoc.public String getStatus()
public int getStatusCode()
public int getNumLines()
public String getText()
public Vector getLinesOfText()
public List<WxTextProduct> getWxTextProducts()
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.