Package ucar.nc2.iosp.gempak
Class GempakSoundingFileReader
- java.lang.Object
-
- ucar.nc2.iosp.gempak.GempakFileReader
-
- ucar.nc2.iosp.gempak.AbstractGempakStationFileReader
-
- ucar.nc2.iosp.gempak.GempakSoundingFileReader
-
- All Implemented Interfaces:
GempakConstants
public class GempakSoundingFileReader extends AbstractGempakStationFileReader
Read a Gempak sounding file
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ucar.nc2.iosp.gempak.GempakFileReader
GempakFileReader.DMFileHeaderInfo, GempakFileReader.DMHeaders, GempakFileReader.DMKeys, GempakFileReader.DMParam, GempakFileReader.DMPart, GempakFileReader.Key, GempakFileReader.PackingInfo, GempakFileReader.RData
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATEdate key identifierstatic intHGHT_COORDHGHT vertical coordinatestatic StringMERGEDstandard surface file idstatic intPRES_COORDPRES vertical coordinatestatic StringSNDTSurface Text identifierstatic intTHTA_COORDTHTA vertical coordinatestatic StringTIMEtime key identifierstatic StringUNMERGEDclimate surface file id-
Fields inherited from class ucar.nc2.iosp.gempak.AbstractGempakStationFileReader
subType
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GempakSoundingFileReadergetInstance(ucar.unidata.io.RandomAccessFile raf, boolean fullCheck)Initialize the file, read in all the metadata (ala DM_OPEN)List<String>getMergedParts()Get the list of merged parts in this fileList<String>getUnmergedParts()Get the list of unmerged parts in this fileintgetVerticalCoordinate()Get the vertical coordinateprotected booleaninit()Initialize this reader.protected booleaninit(boolean fullCheck)Initialize this reader.protected voidmakeFileSubType()Make the file subtypevoidprintOb(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, makeDateList, 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, getErrorMessage, getFile, getFileHeader, getFilename, getInitFileSize, getOffset, getPart, getPartNumber, init, logError, printFileLabel, printHeaders, printKeys, printParts, readFileHeaderInfo, readHeaders, readKeys, readParts
-
-
-
-
Field Detail
-
SNDT
public static final String SNDT
Surface Text identifier- See Also:
- Constant Field Values
-
DATE
public static final String DATE
date key identifier- See Also:
- Constant Field Values
-
TIME
public static final String TIME
time key identifier- See Also:
- Constant Field Values
-
PRES_COORD
public static final int PRES_COORD
PRES vertical coordinate- See Also:
- Constant Field Values
-
THTA_COORD
public static final int THTA_COORD
THTA vertical coordinate- See Also:
- Constant Field Values
-
HGHT_COORD
public static final int HGHT_COORD
HGHT vertical coordinate- See Also:
- Constant Field Values
-
MERGED
public static final String MERGED
standard surface file id- See Also:
- Constant Field Values
-
UNMERGED
public static final String UNMERGED
climate surface file id- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static GempakSoundingFileReader getInstance(ucar.unidata.io.RandomAccessFile raf, boolean fullCheck) throws IOException
Initialize the file, read in all the metadata (ala DM_OPEN)- Parameters:
raf- RandomAccessFile to read.fullCheck- if true, check entire structure- Returns:
- A GempakSoundingFileReader
- Throws:
IOException- problem reading file
-
init
protected boolean init() throws IOExceptionInitialize this reader. Read all the metadata- Overrides:
initin classAbstractGempakStationFileReader- Returns:
- true if successful
- Throws:
IOException- problem reading the data
-
init
protected boolean init(boolean fullCheck) throws IOExceptionInitialize this reader. Get the Grid specific info- Overrides:
initin classAbstractGempakStationFileReader- Parameters:
fullCheck- check to make sure there are grids we can handle- Returns:
- true if successful
- Throws:
IOException- problem reading the data
-
getVerticalCoordinate
public int getVerticalCoordinate()
Get the vertical coordinate- Returns:
- the vertical coordinate (PRES_COORD, THTA_COORD, HGHT_COORD)
-
getMergedParts
public List<String> getMergedParts()
Get the list of merged parts in this file- Returns:
- a list of the unmerged parts (only SNDT)
-
getUnmergedParts
public List<String> getUnmergedParts()
Get the list of unmerged parts in this file- Returns:
- a list of the unmerged parts
-
makeFileSubType
protected void makeFileSubType()
Make the file subtype- Specified by:
makeFileSubTypein classAbstractGempakStationFileReader
-
printOb
public void printOb(int row, int col)Print the list of dates in the file- Parameters:
row- ob rowcol- ob column
-
-