|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.iosp.gempak.GempakFileReader
ucar.nc2.iosp.gempak.AbstractGempakStationFileReader
public abstract class AbstractGempakStationFileReader
Class to hold common methods for reading surface and sounding files
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ucar.nc2.iosp.gempak.GempakFileReader |
---|
GempakFileReader.DMFileHeaderInfo, GempakFileReader.DMHeaders, GempakFileReader.DMKeys, GempakFileReader.DMLabel, GempakFileReader.DMParam, GempakFileReader.DMPart, GempakFileReader.Key, GempakFileReader.PackingInfo, GempakFileReader.RData |
Field Summary | |
---|---|
static String |
DATE
date key identifier |
protected String |
subType
The file subtype |
static String |
TIME
time key identifier |
Fields inherited from class ucar.nc2.iosp.gempak.GempakFileReader |
---|
dmLabel, fileHeaderInfo, fileSize, headers, keys, MTMACH, mvmst, needToSwap, parts, rf |
Fields inherited from interface ucar.nc2.iosp.gempak.GempakConstants |
---|
COL, IMISSD, LLGDHD, LLNANL, LLNNAV, LLSTHL, MBLKSZ, MDCHAR, MDGDEC, MDGDIF, MDGGRB, MDGNMC, MDGNON, MDGRB2, MDGRID, MDINTG, MDREAL, MDRPCK, MFGD, MFSF, MFSN, MTALPH, MTAPOL, MTHP, MTIBM, MTIGPH, MTIRIS, MTLNUX, MTSUN, MTULTX, MTVAX, RDIFFD, RMISSD, ROW |
Method Summary | |
---|---|
int |
findStationIndex(String id)
Find the station index for the specified station id. |
List<Date> |
getDates()
Get the list of dates in this file. |
protected String |
getDateString(int index)
Get the date string at the index |
protected String |
getFileSubType()
Get the file sub type |
String |
getFileType()
Get the type for this file |
List<GempakParameter> |
getParameters(String partName)
Get the list of parameters for the part |
List<String> |
getStationKeyNames()
Get the station key names |
List<GempakStation> |
getStations()
Get the list of stations in this file. |
protected boolean |
init()
Initialize this reader. |
protected boolean |
init(boolean fullCheck)
Initialize this reader. |
protected List<String> |
makeDateList(boolean unique)
Get the list of dates |
protected abstract void |
makeFileSubType()
Subclasses need to set the subtype. |
void |
printDates()
Print the list of dates in the file |
void |
printStations(boolean list)
Print the list of dates in the file |
protected boolean |
readStationsAndTimes(boolean uniqueTimes)
Read in the stations and times. |
Methods inherited from class ucar.nc2.iosp.gempak.GempakFileReader |
---|
DM_RDTR, DM_RDTR, DM_RFLT, DM_RFLT, DM_RFLT, DM_RINT, DM_RINT, DM_RINT, DM_RPKG, DM_RSTR, DM_RSTR, DM_UNPK, findFileHeader, findKey, getBits, getByteOrder, getByteOrder, getDataPointer, getFile, getFileHeader, getFilename, getInitFileSize, getInstance, getOffset, getPart, getPartNumber, init, logError, main, printFileLabel, printHeaders, printKeys, printParts, readFileHeaderInfo, readHeaders, readKeys, readParts |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DATE
public static final String TIME
protected String subType
Method Detail |
---|
protected boolean init() throws IOException
init
in class GempakFileReader
IOException
- problem reading the dataprotected boolean init(boolean fullCheck) throws IOException
init
in class GempakFileReader
fullCheck
- check to make sure there are grids we can handle
IOException
- problem reading the dataprotected boolean readStationsAndTimes(boolean uniqueTimes)
uniqueTimes
- make a set of unique times
protected List<String> makeDateList(boolean unique)
unique
- true for unique list
public List<GempakParameter> getParameters(String partName)
partName
- name of the part
public List<String> getStationKeyNames()
public List<GempakStation> getStations()
public List<Date> getDates()
protected String getDateString(int index)
index
- index (row or column)
public void printDates()
public void printStations(boolean list)
list
- true to list each station, false to list summarypublic int findStationIndex(String id)
id
- station id (case sensitive)
public String getFileType()
protected abstract void makeFileSubType()
protected String getFileSubType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |