public class SigmetIOServiceProvider
extends ucar.nc2.iosp.AbstractIOServiceProvider
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<java.lang.String,java.lang.Number> |
recHdr |
| Constructor and Description |
|---|
SigmetIOServiceProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
doNetcdfFileCoordinate(ucar.nc2.NetcdfFile ncfile,
int[] bst,
short[] yr,
short[] m,
short[] dda,
java.util.ArrayList<ucar.nc2.Variable> varList,
java.util.Map<java.lang.String,java.lang.Number> recHdr)
Fill all of the variables/attributes in the ncfile
|
java.lang.String |
getFileTypeDescription() |
java.lang.String |
getFileTypeId() |
java.lang.String |
getFileTypeVersion() |
java.util.ArrayList<ucar.nc2.Variable> |
init(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
java.util.Map<java.lang.String,java.lang.String> hdrNames)
Define Dimensions, Variables, Attributes in ncfile
|
boolean |
isValidFile(ucar.unidata.io.RandomAccessFile raf)
Check if this is a valid SIGMET-IRIS file for this IOServiceProvider.
|
void |
open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
Open existing file, and populate ncfile with it.
|
ucar.ma2.Array |
readData(ucar.nc2.Variable v2,
ucar.ma2.Section section) |
ucar.ma2.Array |
readData1(ucar.nc2.Variable v2,
ucar.ma2.Section section)
Read data from a top level Variable and return a memory resident Array.
|
ucar.ma2.Array |
readFloatData(ucar.nc2.iosp.LayoutRegular index,
ucar.nc2.Variable v2)
Read data from a top level Variable of FLOAT data type and return a memory resident Array.
|
ucar.ma2.Array |
readIntData(ucar.nc2.iosp.LayoutRegular index,
ucar.nc2.Variable v2)
Read data from a top level Variable of INTEGER data type and return a memory resident Array.
|
static java.util.Map<java.lang.String,java.lang.Number> |
readRecordsHdr(ucar.unidata.io.RandomAccessFile raf)
Read some global data from SIGMET file.
|
java.util.Map<java.lang.String,java.lang.String> |
readStnNames(ucar.unidata.io.RandomAccessFile raf)
Read StationName strings
|
long |
readToByteChannel11(ucar.nc2.Variable v2,
ucar.ma2.Section section,
java.nio.channels.WritableByteChannel channel)
Read data from a top level Variable and send data to a WritableByteChannel.
|
build, buildFinish, close, getDetailInfo, getLastModified, getStructureIterator, isBuilder, reacquire, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, setNetcdfFile, streamToByteChannel, syncExtend, toStringDebugpublic java.lang.String getFileTypeDescription()
public java.lang.String getFileTypeVersion()
getFileTypeVersion in interface ucar.nc2.iosp.IOServiceProvidergetFileTypeVersion in class ucar.nc2.iosp.AbstractIOServiceProviderpublic java.lang.String getFileTypeId()
public boolean isValidFile(ucar.unidata.io.RandomAccessFile raf)
public void open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
throws java.io.IOException
open in interface ucar.nc2.iosp.IOServiceProvideropen in class ucar.nc2.iosp.AbstractIOServiceProviderjava.io.IOExceptionpublic static java.util.Map<java.lang.String,java.lang.Number> readRecordsHdr(ucar.unidata.io.RandomAccessFile raf)
public java.util.Map<java.lang.String,java.lang.String> readStnNames(ucar.unidata.io.RandomAccessFile raf)
public java.util.ArrayList<ucar.nc2.Variable> init(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
java.util.Map<java.lang.String,java.lang.String> hdrNames)
raf - ucar.unidata.io.RandomAccessFile corresponds of SIGMET datafile.ncfile - an empty NetcdfFile object which will be filled.hdrNames - java.util.Map with values for "StationName.." Attributespublic void doNetcdfFileCoordinate(ucar.nc2.NetcdfFile ncfile,
int[] bst,
short[] yr,
short[] m,
short[] dda,
java.util.ArrayList<ucar.nc2.Variable> varList,
java.util.Map<java.lang.String,java.lang.Number> recHdr)
ncfile - NetcdfFile object which will be filled.bst - number of seconds since midnight for start of sweepyr - year of start of each sweepm - month of start of each sweepdda - day of start of each sweepvarList - ArrayList of Variables of ncfilerecHdr - java.util.Map with values for Attributespublic ucar.ma2.Array readData1(ucar.nc2.Variable v2,
ucar.ma2.Section section)
throws java.io.IOException,
ucar.ma2.InvalidRangeException
v2 - Variable. It may have FLOAT/INTEGER data type.section - wanted section of data of Variable. The section list is a list
of ucar.ma2.Range which define the requested data subset.java.io.IOExceptionucar.ma2.InvalidRangeExceptionpublic ucar.ma2.Array readData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
throws java.io.IOException
java.io.IOExceptionpublic ucar.ma2.Array readIntData(ucar.nc2.iosp.LayoutRegular index,
ucar.nc2.Variable v2)
throws java.io.IOException
index - LayoutRegular objectv2 - Variable has INTEGER data type.java.io.IOExceptionpublic ucar.ma2.Array readFloatData(ucar.nc2.iosp.LayoutRegular index,
ucar.nc2.Variable v2)
throws java.io.IOException
index - LayoutRegular objectv2 - Variable has FLOAT data type.java.io.IOExceptionpublic long readToByteChannel11(ucar.nc2.Variable v2,
ucar.ma2.Section section,
java.nio.channels.WritableByteChannel channel)
throws java.io.IOException
v2 - Variablesection - wanted section of data of Variable. The section list is a list
of ucar.ma2.Range which define the requested data subset.channel - WritableByteChannel object - channel that can write bytes.java.io.IOException