Package ucar.nc2.iosp.gempak
Class GempakSurfaceIOSP
- java.lang.Object
-
- ucar.nc2.iosp.AbstractIOServiceProvider
-
- ucar.nc2.iosp.gempak.GempakStationFileIOSP
-
- ucar.nc2.iosp.gempak.GempakSurfaceIOSP
-
- All Implemented Interfaces:
Comparable<ucar.nc2.iosp.IOServiceProvider>,ucar.nc2.iosp.IOServiceProvider
public class GempakSurfaceIOSP extends GempakStationFileIOSP
An IOSP for Gempak Surface data.
-
-
Field Summary
-
Fields inherited from class ucar.nc2.iosp.gempak.GempakStationFileIOSP
DIM_LEN2, DIM_LEN4, DIM_LEN8, gemreader, IMISS, MISSING_VAR, parseInfo, RMISS, TIME_VAR
-
-
Constructor Summary
Constructors Constructor Description GempakSurfaceIOSP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillNCFile()Build the netCDF fileStringgetCFFeatureType()Get the CF feature typeStringgetFileTypeDescription()Get the file type descriptionStringgetFileTypeId()Get the file type idbooleanisValidFile(ucar.unidata.io.RandomAccessFile raf)Is this a valid file?protected AbstractGempakStationFileReadermakeStationReader()Make the station readerucar.ma2.ArrayreadData(ucar.nc2.Variable v2, ucar.ma2.Section section)Read the data for the variable-
Methods inherited from class ucar.nc2.iosp.gempak.GempakStationFileIOSP
addGlobalAttributes, buildNCFile, close, getConventions, getDetailInfo, getStnVarSize, makeMissingVariable, makeParamVariable, makeStationVariable, makeStationVars, makeStructure, open, reacquire, release
-
Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
build, buildFinish, getFileTypeVersion, getLastModified, getStructureIterator, isBuilder, readSection, readToByteChannel, readToOutputStream, sendIospMessage, setNetcdfFile, streamToByteChannel, syncExtend, toStringDebug
-
-
-
-
Method Detail
-
makeStationReader
protected AbstractGempakStationFileReader makeStationReader()
Make the station reader- Specified by:
makeStationReaderin classGempakStationFileIOSP- Returns:
- GempakSurfaceFileReader
-
isValidFile
public boolean isValidFile(ucar.unidata.io.RandomAccessFile raf) throws IOExceptionIs this a valid file?- Specified by:
isValidFilein interfaceucar.nc2.iosp.IOServiceProvider- Overrides:
isValidFilein classGempakStationFileIOSP- Parameters:
raf- RandomAccessFile to check- Returns:
- true if a valid Gempak grid file
- Throws:
IOException- problem reading file
-
getFileTypeId
public String getFileTypeId()
Get the file type id- Returns:
- the file type id
-
getFileTypeDescription
public String getFileTypeDescription()
Get the file type description- Returns:
- the file type description
-
getCFFeatureType
public String getCFFeatureType()
Get the CF feature type- Overrides:
getCFFeatureTypein classGempakStationFileIOSP- Returns:
- the feature type
-
readData
public ucar.ma2.Array readData(ucar.nc2.Variable v2, ucar.ma2.Section section) throws IOException, ucar.ma2.InvalidRangeExceptionRead the data for the variable- Parameters:
v2- Variable to readsection- section infomation- Returns:
- Array of data
- Throws:
IOException- problem reading from fileucar.ma2.InvalidRangeException- invalid Range
-
fillNCFile
protected void fillNCFile() throws IOExceptionBuild the netCDF file- Specified by:
fillNCFilein classGempakStationFileIOSP- Throws:
IOException- problem reading the file
-
-