|
||||||||||
| 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
ucar.nc2.iosp.gempak.GempakSurfaceFileReader
public class GempakSurfaceFileReader
Read a Gempak surface file
| 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 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 |
| Fields inherited from class ucar.nc2.iosp.gempak.AbstractGempakStationFileReader |
|---|
DATE, subType, TIME |
| 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 | |
|---|---|
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 |
| Methods inherited from class ucar.nc2.iosp.gempak.AbstractGempakStationFileReader |
|---|
findStationIndex, getDates, getDateString, getFileSubType, getFileType, getParameters, getStationKeyNames, getStations, printDates, printStations, readStationsAndTimes |
| 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, getOffset, getPart, getPartNumber, init, logError, 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 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
| Method Detail |
|---|
public static GempakSurfaceFileReader getInstance(RandomAccessFile raf,
boolean fullCheck)
throws java.io.IOException
raf - RandomAccessFile to read.fullCheck - if true, check entire structure
java.io.IOException - problem reading file
protected boolean init()
throws java.io.IOException
init in class AbstractGempakStationFileReaderjava.io.IOException - problem reading the data
protected boolean init(boolean fullCheck)
throws java.io.IOException
init in class AbstractGempakStationFileReaderfullCheck - check to make sure there are grids we can handle
java.io.IOException - problem reading the dataprotected java.util.List<java.lang.String> makeDateList(boolean uniqueTimes)
makeDateList in class AbstractGempakStationFileReaderuniqueTimes - true to make a unique list
protected void makeFileSubType()
makeFileSubType in class AbstractGempakStationFileReader
public 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 grids
java.io.IOException - problem reading the file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||