Class Fysatiosp

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

    public class Fysatiosp
    extends ucar.nc2.iosp.AbstractIOServiceProvider
    FY satellite data stored in AWX format include both original observation and the derived dataset
    See Also:
    "http://www.nsmc.cma.gov.cn/en/NSMC/UploadFiles/files/AWX%20File%20Format%20Specification%20Version%202.1.pdf"
    • 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
      protected FysatHeader headerParser  
      • Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider

        location, ncfile, raf, rafOrder
    • Constructor Summary

      Constructors 
      Constructor Description
      Fysatiosp()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short convertunsignedByte2Short​(byte b)  
      String getFileTypeDescription()  
      String getFileTypeId()  
      boolean isValidFile​(ucar.unidata.io.RandomAccessFile raf)  
      void open​(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask)  
      ucar.ma2.Array readCompressedData​(ucar.nc2.Variable v2, long dataPos, int[] origin, int[] shape, int[] stride)  
      ucar.ma2.Array readCompressedZlib​(ucar.nc2.Variable v2, long dataPos, int nx, int ny, int[] origin, int[] shape, int[] stride)  
      ucar.ma2.Array readData​(ucar.nc2.Variable v2, ucar.ma2.Section section)  
      ucar.ma2.Array readDataOld​(ucar.nc2.Variable v2, long dataPos, int[] origin, int[] shape, int[] stride)  
      • 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
    • Constructor Detail

      • Fysatiosp

        public Fysatiosp()
    • Method Detail

      • isValidFile

        public boolean isValidFile​(ucar.unidata.io.RandomAccessFile raf)
                            throws IOException
        Throws:
        IOException
      • 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
      • readData

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

        public ucar.ma2.Array readDataOld​(ucar.nc2.Variable v2,
                                          long dataPos,
                                          int[] origin,
                                          int[] shape,
                                          int[] stride)
                                   throws IOException
        Throws:
        IOException
      • readCompressedData

        public ucar.ma2.Array readCompressedData​(ucar.nc2.Variable v2,
                                                 long dataPos,
                                                 int[] origin,
                                                 int[] shape,
                                                 int[] stride)
                                          throws IOException,
                                                 ucar.ma2.InvalidRangeException
        Throws:
        IOException
        ucar.ma2.InvalidRangeException
      • readCompressedZlib

        public ucar.ma2.Array readCompressedZlib​(ucar.nc2.Variable v2,
                                                 long dataPos,
                                                 int nx,
                                                 int ny,
                                                 int[] origin,
                                                 int[] shape,
                                                 int[] stride)
                                          throws IOException,
                                                 ucar.ma2.InvalidRangeException
        Throws:
        IOException
        ucar.ma2.InvalidRangeException
      • convertunsignedByte2Short

        public short convertunsignedByte2Short​(byte b)