Package ucar.nc2.iosp.fysat
Class Fysatiosp
- java.lang.Object
-
- ucar.nc2.iosp.AbstractIOServiceProvider
-
- ucar.nc2.iosp.fysat.Fysatiosp
-
- All Implemented Interfaces:
ucar.nc2.iosp.IOServiceProvider
public class Fysatiosp extends ucar.nc2.iosp.AbstractIOServiceProviderFY 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"
-
-
Field Summary
Fields Modifier and Type Field Description protected FysatHeaderheaderParser
-
Constructor Summary
Constructors Constructor Description Fysatiosp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortconvertunsignedByte2Short(byte b)StringgetFileTypeDescription()StringgetFileTypeId()booleanisValidFile(ucar.unidata.io.RandomAccessFile raf)voidopen(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask)ucar.ma2.ArrayreadCompressedData(ucar.nc2.Variable v2, long dataPos, int[] origin, int[] shape, int[] stride)ucar.ma2.ArrayreadCompressedZlib(ucar.nc2.Variable v2, long dataPos, int nx, int ny, int[] origin, int[] shape, int[] stride)ucar.ma2.ArrayreadData(ucar.nc2.Variable v2, ucar.ma2.Section section)ucar.ma2.ArrayreadDataOld(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
-
-
-
-
Field Detail
-
headerParser
protected FysatHeader headerParser
-
-
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:
openin interfaceucar.nc2.iosp.IOServiceProvider- Overrides:
openin classucar.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:
IOExceptionucar.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:
IOExceptionucar.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:
IOExceptionucar.ma2.InvalidRangeException
-
convertunsignedByte2Short
public short convertunsignedByte2Short(byte b)
-
-