Package ucar.nc2.iosp.gempak
Class GempakSurfaceFileReader
- java.lang.Object
-
- ucar.nc2.iosp.gempak.GempakFileReader
-
- ucar.nc2.iosp.gempak.AbstractGempakStationFileReader
-
- ucar.nc2.iosp.gempak.GempakSurfaceFileReader
-
- All Implemented Interfaces:
GempakConstants
public class GempakSurfaceFileReader extends AbstractGempakStationFileReader
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.DMParam, GempakFileReader.DMPart, GempakFileReader.Key, GempakFileReader.PackingInfo, GempakFileReader.RData
-
-
Field Summary
Fields Modifier and Type Field Description static String
SFSP
Surface Data identifier-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 fileprotected boolean
init()
Initialize this reader.protected boolean
init(boolean fullCheck)
Initialize this reader.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-
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, getErrorMessage, getFile, getFileHeader, getFilename, getInitFileSize, getOffset, getPart, getPartNumber, init, logError, printFileLabel, printHeaders, printKeys, printParts, readFileHeaderInfo, readHeaders, readKeys, readParts
-
-
-
-
Field Detail
-
SFSP
public static final String SFSP
Surface Data identifier- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static GempakSurfaceFileReader getInstance(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 GempakSurfaceFileReader
- Throws:
IOException
- problem reading file
-
init
protected boolean init() throws IOException
Initialize this reader. Read all the metadata- Overrides:
init
in classAbstractGempakStationFileReader
- Returns:
- true if successful
- Throws:
IOException
- problem reading the data
-
init
protected boolean init(boolean fullCheck) throws IOException
Initialize this reader. Get the Grid specific info- Overrides:
init
in classAbstractGempakStationFileReader
- Parameters:
fullCheck
- check to make sure there are grids we can handle- Returns:
- true if successful
- Throws:
IOException
- problem reading the data
-
makeDateList
protected List<String> makeDateList(boolean uniqueTimes)
Make the list of dates. Override superclass to make the value based on the subtype- Overrides:
makeDateList
in classAbstractGempakStationFileReader
- Parameters:
uniqueTimes
- true to make a unique list- Returns:
- the list of times
-
makeFileSubType
protected void makeFileSubType()
Set the file subType.- Specified by:
makeFileSubType
in classAbstractGempakStationFileReader
-
printOb
public void printOb(int row, int col)
Print the list of dates in the file- Parameters:
row
- ob rowcol
- ob column
-
getSurfaceFileType
public String getSurfaceFileType()
Get the type for this file- Returns:
- file type (CLIMATE, STANDARD, SHIP)
-
-