|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.hrit.HRITAdapter
public class HRITAdapter
This is an adapter for HRIT format data files At present, it will only work on MSG2 data, but with some work should be able to handle most HRIT data.
Constructor Summary | |
---|---|
HRITAdapter(String[] filenames,
int magFactor)
Create a VisAD FlatField from local HRIT file(s). |
|
HRITAdapter(String[] filenames,
int magFactor,
int calType,
int bandNum)
Create a VisAD FlatField from local HRIT file(s). |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HRITAdapter(String[] filenames, int magFactor) throws IOException, VisADException
filenames
- array of file namesmagFactor
- magnification factor
IOException
- if there was a problem reading the file(s).
VisADException
- if an unexpected problem occurs.public HRITAdapter(String[] filenames, int magFactor, int calType, int bandNum) throws IOException, VisADException
filenames
- names of local files.magFactor
- magnification factorcalType
- calibration typebandNum
- band number
IOException
- if there was a problem reading the file(s).
VisADException
- if an unexpected problem occurs.Method Detail |
---|
public FlatField getData()
public static long bytesToLong(byte[] data, int offset)
data
- An array of bytesoffset
- The array index to begin with
public static int bytesToInt(byte[] data, int offset)
data
- An array of bytesoffset
- The array index to begin with
public static int bytesToShort(byte[] data, int offset)
data
- An array of bytesoffset
- The array index to begin with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |