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 String |
CLIMATE
climate surface file id
|
static String |
SFDT
Surface Data identifier
|
static String |
SFSP
Surface Data identifier
|
static String |
SFTX
Surface Text identifier
|
static String |
SHIP
ship surface file id
|
static 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)
|
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(String[] args)
Run the program
|
protected List<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, getFile, getFileHeader, getFilename, getInitFileSize, getOffset, getPart, getPartNumber, init, logError, printFileLabel, printHeaders, printKeys, printParts, readFileHeaderInfo, readHeaders, readKeys, readPartspublic static final String SFTX
public static final String SFDT
public static final String SFSP
public static final String STANDARD
public static final String CLIMATE
public static final String SHIP
public static GempakSurfaceFileReader getInstance(RandomAccessFile raf, boolean fullCheck) throws IOException
raf - RandomAccessFile to read.fullCheck - if true, check entire structureIOException - problem reading fileprotected boolean init()
throws IOException
init in class AbstractGempakStationFileReaderIOException - problem reading the dataprotected boolean init(boolean fullCheck)
throws IOException
init in class AbstractGempakStationFileReaderfullCheck - check to make sure there are grids we can handleIOException - problem reading the dataprotected List<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 String getSurfaceFileType()
public static void main(String[] args) throws IOException
args - [0] filename (required),
[1] variable name (X for default),
[2] X to not list gridsIOException - problem reading the fileCopyright © 1999–2015 UCAR/Unidata. All rights reserved.