Class GempakSoundingIOSP

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

    public class GempakSoundingIOSP
    extends GempakStationFileIOSP
    An IOSP for Gempak Sounding (SN) data.
    • Field Detail

      • DIM_MAXMERGELEVELS

        protected static final ucar.nc2.Dimension DIM_MAXMERGELEVELS
        static for shared dimension of length 4
    • Constructor Detail

      • GempakSoundingIOSP

        public GempakSoundingIOSP()
    • 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
      • makeSequence

        protected ucar.nc2.Sequence makeSequence​(ucar.nc2.Structure parent,
                                                 String partName,
                                                 boolean includeMissing)
        Make a Sequence for the part
        Parameters:
        parent - parent structure
        partName - partname
        includeMissing - true to include the missing variable
        Returns:
        a Structure