spyfit.io.sfit4.read_state_vector

spyfit.io.sfit4.read_state_vector(filename, ldim='level', pdim='param')

Read the state vector in SFIT4 output ascii files.

The state vector includes a-priori and retrieved profiles - with calculated total columns - and extra parameters.

Use this function to load ‘out.statevec’.

Parameters:

filename : str

Name or path to the file.

ldim : str

Name of the dimension of the profiles (default: ‘level’).

pdim : str

Name of the dimension of the parameters (default: ‘param’).

Returns:

dataset : dict

A CDM-structured dictionary.