Package edu.wisc.ssec.mcidasv.data
Class GpmIosp
java.lang.Object
ucar.nc2.iosp.AbstractIOServiceProvider
edu.wisc.ssec.mcidasv.data.GpmIosp
- All Implemented Interfaces:
ucar.nc2.iosp.IOServiceProvider
-
Field Summary
Modifier and TypeFieldDescriptionprivate ucar.nc2.NetcdfFile
private static final String
private static final org.slf4j.Logger
private static final String
private static final String
Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
location, ncfile, raf, rafOrder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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, String groupName) private static int[]
getDimensionLengths
(ucar.nc2.NetcdfFile hdf, String groupName) boolean
isValidFile
(ucar.unidata.io.RandomAccessFile raf) static void
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
(String variableName) Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
build, buildFinish, getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, isBuilder, reacquire, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, setNetcdfFile, streamToByteChannel, syncExtend, toStringDebug
-
Field Details
-
LAT
- See Also:
-
LON
- See Also:
-
TC_PREFIX
- See Also:
-
logger
-
hdfFile
-
-
Constructor Details
-
GpmIosp
public GpmIosp()
-
-
Method Details
-
getDimensionLengths
private static int[] getDimensionLengths(ucar.nc2.NetcdfFile hdf, String groupName) throws IOException - Throws:
IOException
-
addVar
-
variableToChannel
-
addLatitude
-
addLongitude
-
isValidFile
- Throws:
IOException
-
open
public void open(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException - Specified by:
open
in interfaceucar.nc2.iosp.IOServiceProvider
- Overrides:
open
in classucar.nc2.iosp.AbstractIOServiceProvider
- Throws:
IOException
-
createGroupFromHdf
- Throws:
IOException
-
readData
public ucar.ma2.Array readData(ucar.nc2.Variable variable, ucar.ma2.Section section) throws IOException, ucar.ma2.InvalidRangeException - Throws:
IOException
ucar.ma2.InvalidRangeException
-
readChannel
private ucar.ma2.Array readChannel(ucar.nc2.Variable v, int lines, int elements, int channel) throws IOException, ucar.ma2.InvalidRangeException - Throws:
IOException
ucar.ma2.InvalidRangeException
-
getFileTypeId
-
getFileTypeDescription
-
close
- Specified by:
close
in interfaceucar.nc2.iosp.IOServiceProvider
- Overrides:
close
in classucar.nc2.iosp.AbstractIOServiceProvider
- Throws:
IOException
-
main
public static void main(String[] args) throws IOException, IllegalAccessException, InstantiationException
-