public class GpmIosp extends ucar.nc2.iosp.AbstractIOServiceProvider
Modifier and Type | Field and Description |
---|---|
private ucar.nc2.NetcdfFile |
hdfFile |
private static java.lang.String |
LAT |
private static org.slf4j.Logger |
logger |
private static java.lang.String |
LON |
private static java.lang.String |
TC_PREFIX |
Constructor and Description |
---|
GpmIosp() |
Modifier and Type | Method and Description |
---|---|
private static void |
addLatitude(ucar.nc2.NetcdfFile nc,
ucar.nc2.Group g) |
private static void |
addLongitude(ucar.nc2.NetcdfFile nc,
ucar.nc2.Group g) |
private static void |
addVar(ucar.nc2.NetcdfFile nc,
ucar.nc2.Group g,
int channel) |
void |
close() |
private void |
createGroupFromHdf(ucar.nc2.NetcdfFile ncOut,
java.lang.String groupName) |
private static int[] |
getDimensionLengths(ucar.nc2.NetcdfFile hdf,
java.lang.String groupName) |
java.lang.String |
getFileTypeDescription() |
java.lang.String |
getFileTypeId() |
boolean |
isValidFile(ucar.unidata.io.RandomAccessFile raf) |
static void |
main(java.lang.String[] args) |
void |
open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask) |
private ucar.ma2.Array |
readChannel(ucar.nc2.Variable v,
int lines,
int elements,
int channel) |
ucar.ma2.Array |
readData(ucar.nc2.Variable variable,
ucar.ma2.Section section) |
private static int |
variableToChannel(java.lang.String variableName) |
private static final java.lang.String LAT
private static final java.lang.String LON
private static final java.lang.String TC_PREFIX
private static final org.slf4j.Logger logger
private ucar.nc2.NetcdfFile hdfFile
public GpmIosp()
private static int[] getDimensionLengths(ucar.nc2.NetcdfFile hdf, java.lang.String groupName) throws java.io.IOException
java.io.IOException
private static void addVar(ucar.nc2.NetcdfFile nc, ucar.nc2.Group g, int channel)
private static int variableToChannel(java.lang.String variableName)
private static void addLatitude(ucar.nc2.NetcdfFile nc, ucar.nc2.Group g)
private static void addLongitude(ucar.nc2.NetcdfFile nc, ucar.nc2.Group g)
public boolean isValidFile(ucar.unidata.io.RandomAccessFile raf) throws java.io.IOException
java.io.IOException
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.IOServiceProvider
open
in class ucar.nc2.iosp.AbstractIOServiceProvider
java.io.IOException
private void createGroupFromHdf(ucar.nc2.NetcdfFile ncOut, java.lang.String groupName) throws java.io.IOException
java.io.IOException
public ucar.ma2.Array readData(ucar.nc2.Variable variable, ucar.ma2.Section section) throws java.io.IOException, ucar.ma2.InvalidRangeException
java.io.IOException
ucar.ma2.InvalidRangeException
private ucar.ma2.Array readChannel(ucar.nc2.Variable v, int lines, int elements, int channel) throws java.io.IOException, ucar.ma2.InvalidRangeException
java.io.IOException
ucar.ma2.InvalidRangeException
public java.lang.String getFileTypeId()
public java.lang.String getFileTypeDescription()
public void close() throws java.io.IOException
close
in interface ucar.nc2.iosp.IOServiceProvider
close
in class ucar.nc2.iosp.AbstractIOServiceProvider
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException