public class HRITAdapter extends Object
Constructor and Description |
---|
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).
|
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(String[] filenames, int magFactor) throws IOException, VisADException
filenames
- array of file namesmagFactor
- magnification factorIOException
- 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 numberIOException
- 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 withCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.