Class Cinrad2IOServiceProvider

  • All Implemented Interfaces:
    Comparable<ucar.nc2.iosp.IOServiceProvider>, ucar.nc2.iosp.IOServiceProvider

    public class Cinrad2IOServiceProvider
    extends ucar.nc2.iosp.AbstractIOServiceProvider
    An IOServiceProvider for CINRAD level II files.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface ucar.nc2.iosp.IOServiceProvider

        ucar.nc2.iosp.IOServiceProvider.SortGroup
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean isCC  
      static boolean isCC20  
      static boolean isSC  
      • Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider

        location, ncfile, raf, rafOrder
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static int bytesToInt​(byte[] bytes, boolean swapBytes)  
      static int bytesToShort​(byte[] bytes, boolean swapBytes)  
      String getFileTypeDescription()  
      String getFileTypeId()  
      boolean isCINRAD​(ucar.unidata.io.RandomAccessFile raf)  
      boolean isValidFile​(ucar.unidata.io.RandomAccessFile raf)  
      boolean isValidFileOld​(ucar.unidata.io.RandomAccessFile raf)  
      ucar.nc2.Variable makeVariable​(ucar.nc2.NetcdfFile ncfile, int datatype, String shortName, String longName, String abbrev, List groups)  
      void open​(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask)  
      ucar.ma2.Array readData​(ucar.nc2.Variable v2, ucar.ma2.Section section)  
      • Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider

        build, buildFinish, close, getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, isBuilder, reacquire, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, setNetcdfFile, streamToByteChannel, syncExtend, toStringDebug
      • Methods inherited from interface ucar.nc2.iosp.IOServiceProvider

        compareTo, getSortGroup
    • Field Detail

      • isSC

        public static boolean isSC
      • isCC

        public static boolean isCC
      • isCC20

        public static boolean isCC20
    • Constructor Detail

      • Cinrad2IOServiceProvider

        public Cinrad2IOServiceProvider()
    • Method Detail

      • isValidFileOld

        public boolean isValidFileOld​(ucar.unidata.io.RandomAccessFile raf)
      • isValidFile

        public boolean isValidFile​(ucar.unidata.io.RandomAccessFile raf)
      • isCINRAD

        public boolean isCINRAD​(ucar.unidata.io.RandomAccessFile raf)
      • bytesToInt

        public static int bytesToInt​(byte[] bytes,
                                     boolean swapBytes)
      • bytesToShort

        public static int bytesToShort​(byte[] bytes,
                                       boolean swapBytes)
      • getFileTypeId

        public String getFileTypeId()
      • getFileTypeDescription

        public String getFileTypeDescription()
      • open

        public void open​(ucar.unidata.io.RandomAccessFile raf,
                         ucar.nc2.NetcdfFile ncfile,
                         ucar.nc2.util.CancelTask cancelTask)
                  throws IOException
        Specified by:
        open in interface ucar.nc2.iosp.IOServiceProvider
        Overrides:
        open in class ucar.nc2.iosp.AbstractIOServiceProvider
        Throws:
        IOException
      • makeVariable

        public ucar.nc2.Variable makeVariable​(ucar.nc2.NetcdfFile ncfile,
                                              int datatype,
                                              String shortName,
                                              String longName,
                                              String abbrev,
                                              List groups)
      • readData

        public ucar.ma2.Array readData​(ucar.nc2.Variable v2,
                                       ucar.ma2.Section section)
                                throws IOException
        Throws:
        IOException