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<IOServiceProvider>
,IOServiceProvider
public class GempakSurfaceIOSP extends GempakStationFileIOSP
An IOSP for Gempak Surface data.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.iosp.IOServiceProvider
IOServiceProvider.SortGroup
-
-
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
-
Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
location, ncfile, raf, rafOrder
-
-
Constructor Summary
Constructors Constructor Description GempakSurfaceIOSP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillNCFile()
Build the netCDF fileString
getCFFeatureType()
Get the CF feature typeString
getFileTypeDescription()
Get the file type descriptionString
getFileTypeId()
Get the file type idboolean
isValidFile(RandomAccessFile raf)
Is this a valid file?protected AbstractGempakStationFileReader
makeStationReader()
Make the station readerArray
readData(Variable v2, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ucar.nc2.iosp.IOServiceProvider
compareTo, getSortGroup
-
-
-
-
Method Detail
-
makeStationReader
protected AbstractGempakStationFileReader makeStationReader()
Make the station reader- Specified by:
makeStationReader
in classGempakStationFileIOSP
- Returns:
- GempakSurfaceFileReader
-
isValidFile
public boolean isValidFile(RandomAccessFile raf) throws IOException
Is this a valid file?- Specified by:
isValidFile
in interfaceIOServiceProvider
- Overrides:
isValidFile
in 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
- See Also:
- "https://www.unidata.ucar.edu/software/netcdf-java/formats/FileTypes.html"
-
getFileTypeDescription
public String getFileTypeDescription()
Get the file type description- Returns:
- the file type description
- See Also:
- "https://www.unidata.ucar.edu/software/netcdf-java/formats/FileTypes.html"
-
getCFFeatureType
public String getCFFeatureType()
Get the CF feature type- Overrides:
getCFFeatureType
in classGempakStationFileIOSP
- Returns:
- the feature type
-
readData
public Array readData(Variable v2, Section section) throws IOException, InvalidRangeException
Read the data for the variable- Parameters:
v2
- Variable to readsection
- section infomation- Returns:
- Array of data
- Throws:
IOException
- problem reading from fileInvalidRangeException
- invalid Range- See Also:
Range
-
fillNCFile
protected void fillNCFile() throws IOException
Build the netCDF file- Specified by:
fillNCFile
in classGempakStationFileIOSP
- Throws:
IOException
- problem reading the file
-
-