lime_tbx.application.filedata.csv module
This module contains the functionality that lets read and write LIME data from/to a CSV file.
- It exports the following functions:
export_csv - Export a graph to a csv file.
export_csv_comparison - Export a channel comparison to a CSV file.
export_csv_integrated_irradiance - Export a integrated irradiance table to a CSV file.
read_datetimes - Read a time-series CSV file.
- lime_tbx.application.filedata.csv.export_csv_comparison(data: ComparisonData, xlabel: str, ylabels: List[str], name: str, coeff_version: str, interp_spectrum_name: str, skip_uncs: bool, chosen_diffs: CompFields)[source]
Export the given data to a csv file
- Parameters:
data (ComparisonData) – Comparison data.
xlabel (str) – Label of the x axis data
ylabels (list of str) – Labels of the y axis data
name (str) – CSV file path
coeff_version (str) – Version of the CIMEL coefficients used for calculating the data
interp_spectrum_name (str) – Name of the spectrum used for interpolation.
chosen_diffs (CompFields) – Type of difference chosen to be shown for this comparison.
- lime_tbx.application.filedata.csv.export_csv_comparison_bywlen(data: List[ComparisonData], wlens: List[float], xlabel: str, ylabels: List[str], name: str, coeff_version: str, interp_spectrum_name: str, skip_uncs: bool, chosen_diffs: CompFields)[source]
- lime_tbx.application.filedata.csv.export_csv_integrated_irradiance(srf: SpectralResponseFunction, signals: SpectralData, name: str, point: Point, coeff_version: str, inside_mpa_range: bool | List[bool], interp_spectrum_name: str, skip_uncs: bool, mpa: float | None)[source]
Export the given integrated signal data to a csv file
- Parameters:
srf (SpectralResponseFunction) – Spectral response function that contains the channels of the integrated signal data.
signals (list of SpectralData) – List of irradiances of each channel, in order.
name (str) – CSV file path
point (Point) – Point from which the data is generated. In case it’s None, no metadata will be printed.
coeff_version (str) – Version of the CIMEL coefficients used for calculating the data
inside_mpa_range (bool | list of bool) – Indication if the point moon phase angle/s were inside the valid LIME range.
interp_spectrum_name (str) – Name of the spectrum used for interpolation.
- lime_tbx.application.filedata.csv.export_csv_simulation(data: SpectralData | List[SpectralData], xlabel: str, ylabel: str, point: Point | None, name: str, coeff_version: str, inside_mpa_range: bool | List[bool], interp_spectrum_name: str, skip_uncs: bool, cimel_data: SpectralData | List[SpectralData], mda: List[MoonData] | MoonData | None)[source]
Export the given data to a csv file
- Parameters:
data (SpectralData | list of SpectralData) – Data that will be exported
xlabel (str) – Label of the x_data
ylabel (str) – Label of the y_data
point (Point) – Point from which the data is generated. In case it’s None, no metadata will be printed.
name (str) – CSV file path
coeff_version (str) – Version of the CIMEL coefficients used for calculating the data
inside_mpa_range (bool | list of bool) – Indication if the point moon phase angle/s were inside the valid LIME range.
interp_spectrum_name (str) – Name of the spectrum used for interpolation.
- lime_tbx.application.filedata.csv.export_csv_srf(data: SpectralData | List[SpectralData], ch_names: List[str], xlabel: str, ylabel: str, name: str)[source]
Export the given data to a csv file
- Parameters:
data (SpectralData | list of SpectralData) – Data that will be exported
ch_names (list of str) – Ordered list of names of the srf channels
xlabel (str) – Label of the x_data
ylabel (str) – Label of the y_data
name (str) – CSV file path