public class ASD_FileFormat_V7_FileLoader extends SpectralFileLoader
| Modifier and Type | Field and Description |
|---|---|
java.lang.Float[][] |
absolute_reflectance_file |
java.lang.Float[][] |
base_calibration_data |
java.lang.Float[][] |
dn |
java.lang.Float[][] |
fibre_optic_data |
java.lang.Float[][] |
lamp_calibration_data |
java.lang.Float[][] |
reference_data |
campaignDataLoader, file_format_id, file_format_name, insert_result, prefs, spec_file, specchio_client| Constructor and Description |
|---|
ASD_FileFormat_V7_FileLoader(SPECCHIOClient specchio_client,
SpecchioCampaignDataLoader campaignDataLoader) |
| Modifier and Type | Method and Description |
|---|---|
static double |
arr2double(byte[] arr,
int start) |
static float |
arr2float(byte[] arr,
int start) |
static int |
arr2int(byte[] arr,
int start) |
static long |
arr2long(byte[] arr,
int start) |
static int |
arr4int(byte[] arr,
int start) |
static long |
arr4uint(byte[] by,
int start) |
java.lang.Float[][] |
convert_DN2L(int channels) |
java.lang.Float[][] |
convert_DN2R(int channels) |
long[] |
getCbIT() |
int[] |
getCbSwir1Gain() |
int[] |
getCbSwir2Gain() |
int |
getGain_swir1() |
int |
getGain_swir2() |
float |
getInt_time() |
SpectralFile |
load(java.io.File file) |
void |
read_ASD_spectrum_file_header(java.io.DataInputStream in,
SpectralFile hdr) |
void |
read_calibration_header(java.io.DataInputStream in,
SpectralFile hdr) |
void |
read_classifier_data(java.io.DataInputStream in,
SpectralFile hdr) |
void |
read_dependent_variables(java.io.DataInputStream in,
SpectralFile hdr) |
protected java.lang.Double |
read_double(java.io.DataInputStream in) |
protected java.lang.Float |
read_float(java.io.DataInputStream in) |
protected java.lang.Integer |
read_int(java.io.DataInputStream in) |
protected java.lang.Integer |
read_long(java.io.DataInputStream in) |
void |
read_reference_file_header(java.io.DataInputStream in,
SpectralFile hdr) |
protected java.lang.Integer |
read_short(java.io.DataInputStream in) |
protected java.lang.String |
read_string(java.io.DataInputStream in,
int no_of_chars) |
protected java.lang.Integer |
read_uint(java.io.DataInputStream in) |
protected java.lang.Integer |
read_ulong(java.io.DataInputStream in) |
void |
setCbIT(long[] cbIT) |
void |
setCbSwir1Gain(int[] cbSwir1Gain) |
void |
setCbSwir2Gain(int[] cbSwir2Gain) |
void |
setGain_swir1(int gain_swir1) |
void |
setGain_swir2(int gain_swir2) |
void |
setInt_time(float int_time) |
protected void |
skip(java.io.DataInputStream in,
int no_of_bytes) |
protected void |
whitespace(java.io.BufferedReader d) |
arr2short, get_file_format_name, getCalibration_date, getSpec_file, remove_leading_spaces, remove_trailing_spaces, remove_trailing_tabs, remove_unprintable_chars, set_file_format_id, setCalibration_date, setSpec_filepublic java.lang.Float[][] reference_data
public java.lang.Float[][] base_calibration_data
public java.lang.Float[][] lamp_calibration_data
public java.lang.Float[][] fibre_optic_data
public java.lang.Float[][] dn
public java.lang.Float[][] absolute_reflectance_file
public ASD_FileFormat_V7_FileLoader(SPECCHIOClient specchio_client, SpecchioCampaignDataLoader campaignDataLoader)
public SpectralFile load(java.io.File file) throws java.io.IOException, MetaParameterFormatException
load in class SpectralFileLoaderjava.io.IOExceptionMetaParameterFormatExceptionpublic void read_ASD_spectrum_file_header(java.io.DataInputStream in,
SpectralFile hdr)
throws java.io.IOException,
MetaParameterFormatException
in - hdr - java.io.IOExceptionMetaParameterFormatExceptionpublic void read_reference_file_header(java.io.DataInputStream in,
SpectralFile hdr)
throws java.io.IOException
java.io.IOExceptionpublic void read_classifier_data(java.io.DataInputStream in,
SpectralFile hdr)
throws java.io.IOException
java.io.IOExceptionpublic void read_dependent_variables(java.io.DataInputStream in,
SpectralFile hdr)
throws java.io.IOException
java.io.IOExceptionpublic void read_calibration_header(java.io.DataInputStream in,
SpectralFile hdr)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Float[][] convert_DN2L(int channels)
public java.lang.Float[][] convert_DN2R(int channels)
public long[] getCbIT()
public void setCbIT(long[] cbIT)
public int[] getCbSwir1Gain()
public void setCbSwir1Gain(int[] cbSwir1Gain)
public int[] getCbSwir2Gain()
public void setCbSwir2Gain(int[] cbSwir2Gain)
public float getInt_time()
public void setInt_time(float int_time)
public int getGain_swir1()
public void setGain_swir1(int gain_swir1)
public int getGain_swir2()
public void setGain_swir2(int gain_swir2)
protected java.lang.String read_string(java.io.DataInputStream in,
int no_of_chars)
throws java.io.IOException
read_string in class SpectralFileLoaderjava.io.IOExceptionprotected java.lang.Integer read_short(java.io.DataInputStream in)
throws java.io.IOException
read_short in class SpectralFileLoaderjava.io.IOExceptionprotected java.lang.Integer read_int(java.io.DataInputStream in)
throws java.io.IOException
read_int in class SpectralFileLoaderjava.io.IOExceptionprotected java.lang.Integer read_uint(java.io.DataInputStream in)
throws java.io.IOException
read_uint in class SpectralFileLoaderjava.io.IOExceptionprotected java.lang.Integer read_long(java.io.DataInputStream in)
throws java.io.IOException
read_long in class SpectralFileLoaderjava.io.IOExceptionprotected java.lang.Integer read_ulong(java.io.DataInputStream in)
throws java.io.IOException
read_ulong in class SpectralFileLoaderjava.io.IOExceptionprotected java.lang.Float read_float(java.io.DataInputStream in)
throws java.io.IOException
read_float in class SpectralFileLoaderjava.io.IOExceptionprotected java.lang.Double read_double(java.io.DataInputStream in)
throws java.io.IOException
read_double in class SpectralFileLoaderjava.io.IOExceptionprotected void skip(java.io.DataInputStream in,
int no_of_bytes)
skip in class SpectralFileLoaderprotected void whitespace(java.io.BufferedReader d)
whitespace in class SpectralFileLoaderpublic static double arr2double(byte[] arr,
int start)
public static float arr2float(byte[] arr,
int start)
public static long arr2long(byte[] arr,
int start)
public static int arr2int(byte[] arr,
int start)
public static int arr4int(byte[] arr,
int start)
public static long arr4uint(byte[] by,
int start)