Class Vis5DIosp

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

    public class Vis5DIosp
    extends ucar.nc2.iosp.AbstractIOServiceProvider
    Vis5D grid file reader. Only support Vis5D grids, not the TOPO files.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Vis5DIosp.Vis5DLookup
      Get all the information about a Vis5D file
    • Field Summary

      • Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider

        location, ncfile, raf, rafOrder
    • Constructor Summary

      Constructors 
      Constructor Description
      Vis5DIosp()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close this IOSP
      String getFileTypeDescription()
      Get the file type description
      String getFileTypeId()
      Get the file type id
      boolean isValidFile​(ucar.unidata.io.RandomAccessFile raf)
      Is this a valid file?
      void open​(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask)
      Open the service provider for reading.
      ucar.ma2.Array readData​(ucar.nc2.Variable v2, ucar.ma2.Section section)
      Read the data for the variable
      • Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider

        build, buildFinish, getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, isBuilder, reacquire, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, setNetcdfFile, streamToByteChannel, syncExtend, toStringDebug
    • Constructor Detail

      • Vis5DIosp

        public Vis5DIosp()
    • Method Detail

      • isValidFile

        public boolean isValidFile​(ucar.unidata.io.RandomAccessFile raf)
                            throws IOException
        Is this a valid file?
        Parameters:
        raf - RandomAccessFile to check
        Returns:
        true if a valid McIDAS AREA 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
      • open

        public void open​(ucar.unidata.io.RandomAccessFile raf,
                         ucar.nc2.NetcdfFile ncfile,
                         ucar.nc2.util.CancelTask cancelTask)
                  throws IOException
        Open the service provider for reading.
        Specified by:
        open in interface ucar.nc2.iosp.IOServiceProvider
        Overrides:
        open in class ucar.nc2.iosp.AbstractIOServiceProvider
        Parameters:
        raf - file to read from
        ncfile - netCDF file we are writing to (memory)
        cancelTask - task for cancelling
        Throws:
        IOException - problem reading file
      • 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
      • close

        public void close()
                   throws IOException
        Close this IOSP
        Specified by:
        close in interface ucar.nc2.iosp.IOServiceProvider
        Overrides:
        close in class ucar.nc2.iosp.AbstractIOServiceProvider
        Throws:
        IOException - problem closing file