public class GempakSoundingFileReader 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 |
DATE
date key identifier
|
static int |
HGHT_COORD
HGHT vertical coordinate
|
static java.lang.String |
MERGED
standard surface file id
|
static int |
PRES_COORD
PRES vertical coordinate
|
static java.lang.String |
SNDT
Surface Text identifier
|
static int |
THTA_COORD
THTA vertical coordinate
|
static java.lang.String |
TIME
time key identifier
|
static java.lang.String |
UNMERGED
climate surface file id
|
subType
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 |
---|---|
static GempakSoundingFileReader |
getInstance(RandomAccessFile raf,
boolean fullCheck)
Initialize the file, read in all the metadata (ala DM_OPEN)
|
java.util.List<java.lang.String> |
getMergedParts()
Get the list of merged parts in this file
|
java.util.List<java.lang.String> |
getUnmergedParts()
Get the list of unmerged parts in this file
|
int |
getVerticalCoordinate()
Get the vertical coordinate
|
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 void |
makeFileSubType()
Make 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, makeDateList, printDates, printStations, readStationsAndTimes
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, getOffset, getPart, getPartNumber, init, logError, printFileLabel, printHeaders, printKeys, printParts, readFileHeaderInfo, readHeaders, readKeys, readParts
public static final java.lang.String SNDT
public static final java.lang.String DATE
public static final java.lang.String TIME
public static final int PRES_COORD
public static final int THTA_COORD
public static final int HGHT_COORD
public static final java.lang.String MERGED
public static final java.lang.String UNMERGED
public static GempakSoundingFileReader 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 AbstractGempakStationFileReader
java.io.IOException
- problem reading the dataprotected boolean init(boolean fullCheck) throws java.io.IOException
init
in class AbstractGempakStationFileReader
fullCheck
- check to make sure there are grids we can handlejava.io.IOException
- problem reading the datapublic int getVerticalCoordinate()
public java.util.List<java.lang.String> getMergedParts()
public java.util.List<java.lang.String> getUnmergedParts()
protected void makeFileSubType()
makeFileSubType
in class AbstractGempakStationFileReader
public void printOb(int row, int col)
row
- ob rowcol
- ob columnpublic 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