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.IOExceptionprivate 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.IOExceptionpublic 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.IOExceptionprivate void createGroupFromHdf(ucar.nc2.NetcdfFile ncOut, java.lang.String groupName) throws java.io.IOException
java.io.IOExceptionpublic ucar.ma2.Array readData(ucar.nc2.Variable variable, ucar.ma2.Section section) throws java.io.IOException, ucar.ma2.InvalidRangeException
java.io.IOExceptionucar.ma2.InvalidRangeExceptionprivate ucar.ma2.Array readChannel(ucar.nc2.Variable v, int lines, int elements, int channel) throws java.io.IOException, ucar.ma2.InvalidRangeException
java.io.IOExceptionucar.ma2.InvalidRangeExceptionpublic java.lang.String getFileTypeId()
public java.lang.String getFileTypeDescription()
public void close() throws java.io.IOException
close in interface ucar.nc2.iosp.IOServiceProviderclose in class ucar.nc2.iosp.AbstractIOServiceProviderjava.io.IOExceptionpublic static void main(java.lang.String[] args) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException
java.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationException