public class HRITAdapter
extends java.lang.Object
| Constructor and Description |
|---|
HRITAdapter(java.lang.String[] filenames,
int magFactor)
Create a VisAD FlatField from local HRIT file(s).
|
HRITAdapter(java.lang.String[] filenames,
int magFactor,
int calType,
int bandNum)
Create a VisAD FlatField from local HRIT file(s).
|
| Modifier and Type | Method and Description |
|---|---|
static int |
bytesToInt(byte[] data,
int offset)
Converts a set of four consecutive bytes into a single int.
|
static long |
bytesToLong(byte[] data,
int offset)
Converts a set of four consecutive bytes into a single long.
|
static int |
bytesToShort(byte[] data,
int offset)
Converts a set of two consecutive bytes into a single int.
|
FlatField |
getData() |
public HRITAdapter(java.lang.String[] filenames,
int magFactor)
throws java.io.IOException,
VisADException
filenames - array of file namesmagFactor - magnification factorjava.io.IOException - if there was a problem reading the file(s).VisADException - if an unexpected problem occurs.public HRITAdapter(java.lang.String[] filenames,
int magFactor,
int calType,
int bandNum)
throws java.io.IOException,
VisADException
filenames - names of local files.magFactor - magnification factorcalType - calibration typebandNum - band numberjava.io.IOException - if there was a problem reading the file(s).VisADException - if an unexpected problem occurs.public FlatField getData()
public static long bytesToLong(byte[] data,
int offset)
data - An array of bytesoffset - The array index to begin withpublic static int bytesToInt(byte[] data,
int offset)
data - An array of bytesoffset - The array index to begin withpublic static int bytesToShort(byte[] data,
int offset)
data - An array of bytesoffset - The array index to begin with