module: plots#

plots.plot_rank_histogram(df, phase, ens_size)#

Plots a rank histogram colored by observation type.

All histogram bars are initialized to be hidden and can be toggled visible in the plot’s legend

plots.plot_profile(df_in, verticalUnit)#

Assumes diag_stats has been run on the dataframe and the resulting dataframe is passed in

plots.plot_profile_prior_post(df_profile, stat, verticalUnit)#

Plots prior and posterior statistics by vertical level for different observation types.

Parameters:
  • df_profile (pd.DataFrame) – DataFrame containing the prior and posterior statistics.

  • stat (str) – The statistic to plot (e.g., ‘rmse’, ‘bias’, ‘totalspread’).

  • verticalUnit (str) – The unit of the vertical axis (e.g., ‘pressure (Pa)’).

Returns:

The generated Plotly figure.

Return type:

plotly.graph_objects.Figure

plots.plot_profile_prior(df_profile, stat, verticalUnit)#

Plots prior statistics by vertical level for different observation types.

Parameters:
  • df_profile (pd.DataFrame) – DataFrame containing the prior statistics.

  • stat (str) – The statistic to plot (e.g., ‘rmse’, ‘bias’, ‘totalspread’).

  • verticalUnit (str) – The unit of the vertical axis (e.g., ‘pressure (Pa)’).

Returns:

The generated Plotly figure.

Return type:

plotly.graph_objects.Figure