public abstract class AbstractGempakStationFileReader extends GempakFileReader
GempakFileReader.DMFileHeaderInfo, GempakFileReader.DMHeaders, GempakFileReader.DMKeys, GempakFileReader.DMParam, GempakFileReader.DMPart, GempakFileReader.Key, GempakFileReader.PackingInfo, GempakFileReader.RData
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATE
date key identifier
|
protected java.lang.String |
subType
The file subtype
|
static java.lang.String |
TIME
time key identifier
|
dmLabel, fileHeaderInfo, fileSize, headers, keys, MTMACH, mvmst, needToSwap, parts, rf
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
Modifier and Type | Method and Description |
---|---|
int |
findStationIndex(java.lang.String id)
Find the station index for the specified station id.
|
java.util.List<java.util.Date> |
getDates()
Get the list of dates in this file.
|
protected java.lang.String |
getDateString(int index)
Get the date string at the index
|
protected java.lang.String |
getFileSubType()
Get the file sub type
|
java.lang.String |
getFileType()
Get the type for this file
|
java.util.List<GempakParameter> |
getParameters(java.lang.String partName)
Get the list of parameters for the part
|
java.util.List<java.lang.String> |
getStationKeyNames()
Get the station key names
|
java.util.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 java.util.List<java.lang.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.
|
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, getErrorMessage, getFile, getFileHeader, getFilename, getInitFileSize, getInstance, getOffset, getPart, getPartNumber, init, logError, main, printFileLabel, printHeaders, printKeys, printParts, readFileHeaderInfo, readHeaders, readKeys, readParts
public static final java.lang.String DATE
public static final java.lang.String TIME
protected java.lang.String subType
protected boolean init() throws java.io.IOException
init
in class GempakFileReader
java.io.IOException
- problem reading the dataprotected boolean init(boolean fullCheck) throws java.io.IOException
init
in class GempakFileReader
fullCheck
- check to make sure there are grids we can handlejava.io.IOException
- problem reading the dataprotected boolean readStationsAndTimes(boolean uniqueTimes)
uniqueTimes
- make a set of unique timesprotected java.util.List<java.lang.String> makeDateList(boolean unique)
unique
- true for unique listpublic java.util.List<GempakParameter> getParameters(java.lang.String partName)
partName
- name of the partpublic java.util.List<java.lang.String> getStationKeyNames()
public java.util.List<GempakStation> getStations()
public java.util.List<java.util.Date> getDates()
protected java.lang.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(java.lang.String id)
id
- station id (case sensitive)public java.lang.String getFileType()
protected abstract void makeFileSubType()
protected java.lang.String getFileSubType()