public class SPECPR_FileLoader extends SpectralFileLoader
campaignDataLoader, file_format_id, file_format_name, insert_result, prefs, spec_file
Constructor and Description |
---|
SPECPR_FileLoader(SPECCHIOClient specchio_client,
SpecchioCampaignDataLoader campaignDataLoader) |
Modifier and Type | Method and Description |
---|---|
static org.joda.time.DateTime |
get_capture_date(int jdn,
int time) |
int |
get_number_of_spectra(java.io.File file,
long file_size) |
static java.lang.String |
get_siderial_time(int time) |
static int[] |
julianToDate(double jdn) |
SpectralFile |
load(java.io.File file) |
protected java.lang.String |
read_string(java.io.DataInputStream in,
int no_of_chars) |
static int |
swap(int value) |
arr2double, arr2float, arr2int, arr2long, arr2short, arr4int, arr4uint, get_file_format_name, getCalibration_date, getSpec_file, read_double, read_float, read_int, read_long, read_short, read_uint, read_ulong, remove_leading_spaces, remove_trailing_spaces, remove_trailing_tabs, remove_unprintable_chars, set_file_format_id, setCalibration_date, setSpec_file, skip, whitespace
public SPECPR_FileLoader(SPECCHIOClient specchio_client, SpecchioCampaignDataLoader campaignDataLoader)
public SpectralFile load(java.io.File file) throws java.io.IOException, MetaParameterFormatException
load
in class SpectralFileLoader
java.io.IOException
MetaParameterFormatException
public int get_number_of_spectra(java.io.File file, long file_size) throws java.io.IOException
java.io.IOException
public static org.joda.time.DateTime get_capture_date(int jdn, int time)
public static java.lang.String get_siderial_time(int time)
public static int[] julianToDate(double jdn)
protected java.lang.String read_string(java.io.DataInputStream in, int no_of_chars) throws java.io.IOException
read_string
in class SpectralFileLoader
java.io.IOException
public static int swap(int value)