spyfit.io.sfit4.read_profiles¶
-
spyfit.io.sfit4.
read_profiles
(filename, var_name_prefix='', ldim='level', ret_gases=False)¶ Read a-priori or retrieved profiles in SFIT4 output ascii files.
Use this function to load ‘out.retprofiles’ and ‘out.aprprofiles’.
Parameters: filename : str
Name or path to the file.
var_name_prefix : str
Prefix to prepend to each of the profile names (e.g., ‘apriori’ or ‘retrieved’) (default: no prefix).
ldim : str
Name of the dimension of the profiles (default: ‘level’).
ret_gases : bool
If True, returns the profiles of only the retrieved gases (default: False).
Returns: dataset : dict
A CDM-structured dictionary.