Class GempakSurfaceIOSP

  • All Implemented Interfaces:
    ucar.nc2.iosp.IOServiceProvider

    public class GempakSurfaceIOSP
    extends GempakStationFileIOSP
    An IOSP for Gempak Surface data.
    • Constructor Detail

      • GempakSurfaceIOSP

        public GempakSurfaceIOSP()
    • Method Detail

      • isValidFile

        public boolean isValidFile​(ucar.unidata.io.RandomAccessFile raf)
                            throws IOException
        Is this a valid file?
        Specified by:
        isValidFile in interface ucar.nc2.iosp.IOServiceProvider
        Overrides:
        isValidFile in class GempakStationFileIOSP
        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
      • readData

        public ucar.ma2.Array readData​(ucar.nc2.Variable v2,
                                       ucar.ma2.Section section)
                                throws IOException,
                                       ucar.ma2.InvalidRangeException
        Read the data for the variable
        Parameters:
        v2 - Variable to read
        section - section infomation
        Returns:
        Array of data
        Throws:
        IOException - problem reading from file
        ucar.ma2.InvalidRangeException - invalid Range