public class RadarDayCollection extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
protected class |
RadarDayCollection.CompareKeyDescend |
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
p_yyyymmdd_hhmm |
| Constructor and Description |
|---|
RadarDayCollection()
constructors
|
RadarDayCollection(String dir,
boolean type,
String yyyymmdd,
String product) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getStations()
get the stations
|
ArrayList<String> |
getTimes(String station)
list of hhmm for this station
|
static void |
main(String[] args) |
boolean |
populate(String dir,
boolean type,
String yyyymmdd,
String product)
reads the data filename information
|
RadarDayCollection |
read(String sfile)
read / return object
|
String |
write()
write out this object
|
public static final Pattern p_yyyymmdd_hhmm
public boolean populate(String dir, boolean type, String yyyymmdd, String product) throws IOException
dir - base directory of where to look for informationtype - directory typeyyyymmdd - of all stations in this directoryproduct - if level3 else null for level2IOException - bad readpublic final ArrayList<String> getTimes(String station)
station - station timespublic String write()
public RadarDayCollection read(String sfile)
sfile - Serialized filepublic static void main(String[] args) throws IOException
IOExceptionCopyright © 1999–2013 UCAR/Unidata. All rights reserved.