Package ucar.nc2.iosp.cinrad
Class Cinrad2IOServiceProvider
- java.lang.Object
-
- ucar.nc2.iosp.AbstractIOServiceProvider
-
- ucar.nc2.iosp.cinrad.Cinrad2IOServiceProvider
-
- All Implemented Interfaces:
ucar.nc2.iosp.IOServiceProvider
public class Cinrad2IOServiceProvider extends ucar.nc2.iosp.AbstractIOServiceProviderAn IOServiceProvider for CINRAD level II files.
-
-
Constructor Summary
Constructors Constructor Description Cinrad2IOServiceProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intbytesToInt(byte[] bytes, boolean swapBytes)static intbytesToShort(byte[] bytes, boolean swapBytes)StringgetFileTypeDescription()StringgetFileTypeId()booleanisCINRAD(ucar.unidata.io.RandomAccessFile raf)booleanisValidFile(ucar.unidata.io.RandomAccessFile raf)booleanisValidFileOld(ucar.unidata.io.RandomAccessFile raf)ucar.nc2.VariablemakeVariable(ucar.nc2.NetcdfFile ncfile, int datatype, String shortName, String longName, String abbrev, List groups)voidopen(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask)ucar.ma2.ArrayreadData(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
-
-
-
-
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:
openin interfaceucar.nc2.iosp.IOServiceProvider- Overrides:
openin classucar.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
-
-