Package edu.wisc.ssec.mcidasv.data
Class GpmIosp
java.lang.Object
ucar.nc2.iosp.AbstractIOServiceProvider
edu.wisc.ssec.mcidasv.data.GpmIosp
- All Implemented Interfaces:
Comparable<ucar.nc2.iosp.IOServiceProvider>,ucar.nc2.iosp.IOServiceProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface ucar.nc2.iosp.IOServiceProvider
ucar.nc2.iosp.IOServiceProvider.SortGroup -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ucar.nc2.NetcdfFileprivate static final Stringprivate static final org.slf4j.Loggerprivate static final Stringprivate static final StringFields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
location, ncfile, raf, rafOrder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddLatitude(ucar.nc2.NetcdfFile nc, ucar.nc2.Group g) private static voidaddLongitude(ucar.nc2.NetcdfFile nc, ucar.nc2.Group g) private static voidaddVar(ucar.nc2.NetcdfFile nc, ucar.nc2.Group g, int channel) voidclose()private voidcreateGroupFromHdf(ucar.nc2.NetcdfFile ncOut, String groupName) private static int[]getDimensionLengths(ucar.nc2.NetcdfFile hdf, String groupName) booleanisValidFile(ucar.unidata.io.RandomAccessFile raf) static voidvoidopen(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) private ucar.ma2.ArrayreadChannel(ucar.nc2.Variable v, int lines, int elements, int channel) ucar.ma2.ArrayreadData(ucar.nc2.Variable variable, ucar.ma2.Section section) private static intvariableToChannel(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, toStringDebugMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ucar.nc2.iosp.IOServiceProvider
compareTo, getSortGroup
-
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:
openin interfaceucar.nc2.iosp.IOServiceProvider- Overrides:
openin 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:
IOExceptionucar.ma2.InvalidRangeException
-
readChannel
private ucar.ma2.Array readChannel(ucar.nc2.Variable v, int lines, int elements, int channel) throws IOException, ucar.ma2.InvalidRangeException - Throws:
IOExceptionucar.ma2.InvalidRangeException
-
getFileTypeId
-
getFileTypeDescription
-
close
- Specified by:
closein interfaceucar.nc2.iosp.IOServiceProvider- Overrides:
closein classucar.nc2.iosp.AbstractIOServiceProvider- Throws:
IOException
-
main
public static void main(String[] args) throws IOException, IllegalAccessException, InstantiationException
-