spyfit.io.sfit4.read_solar_spectrum¶
-
spyfit.io.sfit4.
read_solar_spectrum
(filename, var_name='', wdim='spec_wn_solar')¶ Read a calculated sol ar spectrum in SFIT4 output ascii files.
Use this function to load ‘out.solarspectrum’.
Parameters: filename : str
Name or path to the file.
var_name : str
Name chosen for the spectrum variable. If empty (default), the name is set from filename.
wdim : str
Name of the dimension of the wavenumber (default: ‘spec_wn_solar’).
Returns: dataset : dict
A CDM-structured dictionary.