public class GempakSurfaceFileReader extends AbstractGempakStationFileReader
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 |
CLIMATE
climate surface file id
|
static java.lang.String |
SFDT
Surface Data identifier
|
static java.lang.String |
SFSP
Surface Data identifier
|
static java.lang.String |
SFTX
Surface Text identifier
|
static java.lang.String |
SHIP
ship surface file id
|
static java.lang.String |
STANDARD
standard surface file id
|
DATE, subType, TIMEdmLabel, fileHeaderInfo, fileSize, headers, keys, MTMACH, mvmst, needToSwap, parts, rfCOL, 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 |
|---|---|
static GempakSurfaceFileReader |
getInstance(RandomAccessFile raf,
boolean fullCheck)
Initialize the file, read in all the metadata (ala DM_OPEN)
|
java.lang.String |
getSurfaceFileType()
Get the type for this file
|
protected boolean |
init()
Initialize this reader.
|
protected boolean |
init(boolean fullCheck)
Initialize this reader.
|
static void |
main(java.lang.String[] args)
Run the program
|
protected java.util.List<java.lang.String> |
makeDateList(boolean uniqueTimes)
Make the list of dates.
|
protected void |
makeFileSubType()
Set the file subType.
|
void |
printOb(int row,
int col)
Print the list of dates in the file
|
findStationIndex, getDates, getDateString, getFileSubType, getFileType, getParameters, getStationKeyNames, getStations, printDates, printStations, readStationsAndTimesDM_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, getOffset, getPart, getPartNumber, init, logError, printFileLabel, printHeaders, printKeys, printParts, readFileHeaderInfo, readHeaders, readKeys, readPartspublic static final java.lang.String SFTX
public static final java.lang.String SFDT
public static final java.lang.String SFSP
public static final java.lang.String STANDARD
public static final java.lang.String CLIMATE
public static final java.lang.String SHIP
public static GempakSurfaceFileReader getInstance(RandomAccessFile raf, boolean fullCheck) throws java.io.IOException
raf - RandomAccessFile to read.fullCheck - if true, check entire structurejava.io.IOException - problem reading fileprotected boolean init()
throws java.io.IOException
init in class AbstractGempakStationFileReaderjava.io.IOException - problem reading the dataprotected boolean init(boolean fullCheck)
throws java.io.IOException
init in class AbstractGempakStationFileReaderfullCheck - check to make sure there are grids we can handlejava.io.IOException - problem reading the dataprotected java.util.List<java.lang.String> makeDateList(boolean uniqueTimes)
makeDateList in class AbstractGempakStationFileReaderuniqueTimes - true to make a unique listprotected void makeFileSubType()
makeFileSubType in class AbstractGempakStationFileReaderpublic void printOb(int row,
int col)
row - ob rowcol - ob columnpublic java.lang.String getSurfaceFileType()
public static void main(java.lang.String[] args)
throws java.io.IOException
args - [0] filename (required),
[1] variable name (X for default),
[2] X to not list gridsjava.io.IOException - problem reading the file