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, toStringDebug
private 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
IOException
private 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
IOException
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
open
in interface IOServiceProvider
open
in class AbstractIOServiceProvider
IOException
private void createGroupFromHdf(NetcdfFile ncOut, String groupName) throws IOException
IOException
public Array readData(Variable variable, Section section) throws IOException, InvalidRangeException
IOException
InvalidRangeException
private Array readChannel(Variable v, int lines, int elements, int channel) throws IOException, InvalidRangeException
IOException
InvalidRangeException
public String getFileTypeId()
public String getFileTypeDescription()
public void close() throws IOException
close
in interface IOServiceProvider
close
in class AbstractIOServiceProvider
IOException
public static void main(String[] args) throws IOException, IllegalAccessException, InstantiationException