public class GpmIosp extends AbstractIOServiceProvider
| Modifier and Type | Field and Description |
|---|---|
private NetcdfFile |
hdfFile |
private static String |
LAT |
private static org.slf4j.Logger |
logger |
private static String |
LON |
private static String |
TC_PREFIX |
location, ncfile, raf, rafOrder| Constructor and Description |
|---|
GpmIosp() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
addLatitude(NetcdfFile nc,
Group g) |
private static void |
addLongitude(NetcdfFile nc,
Group g) |
private static void |
addVar(NetcdfFile nc,
Group g,
int channel) |
void |
close() |
private void |
createGroupFromHdf(NetcdfFile ncOut,
String groupName) |
private static int[] |
getDimensionLengths(NetcdfFile hdf,
String groupName) |
String |
getFileTypeDescription() |
String |
getFileTypeId() |
boolean |
isValidFile(RandomAccessFile raf) |
static void |
main(String[] args) |
void |
open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask) |
private Array |
readChannel(Variable v,
int lines,
int elements,
int channel) |
Array |
readData(Variable variable,
Section section) |
private static int |
variableToChannel(String variableName) |
getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, reacquire, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, streamToByteChannel, syncExtend, toStringDebugprivate static final String LAT
private static final String LON
private static final String TC_PREFIX
private static final org.slf4j.Logger logger
private NetcdfFile hdfFile
public GpmIosp()
private static int[] getDimensionLengths(NetcdfFile hdf, String groupName) throws IOException
IOExceptionprivate static void addVar(NetcdfFile nc, Group g, int channel)
private static int variableToChannel(String variableName)
private static void addLatitude(NetcdfFile nc, Group g)
private static void addLongitude(NetcdfFile nc, Group g)
public boolean isValidFile(RandomAccessFile raf) throws IOException
IOExceptionpublic void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
open in interface IOServiceProvideropen in class AbstractIOServiceProviderIOExceptionprivate void createGroupFromHdf(NetcdfFile ncOut, String groupName) throws IOException
IOExceptionpublic Array readData(Variable variable, Section section) throws IOException, InvalidRangeException
IOExceptionInvalidRangeExceptionprivate Array readChannel(Variable v, int lines, int elements, int channel) throws IOException, InvalidRangeException
IOExceptionInvalidRangeExceptionpublic String getFileTypeId()
public String getFileTypeDescription()
public void close() throws IOException
close in interface IOServiceProviderclose in class AbstractIOServiceProviderIOExceptionpublic static void main(String[] args) throws IOException, IllegalAccessException, InstantiationException