picaso icon indicating copy to clipboard operation
picaso copied to clipboard

Enable climate `out` as input into `output_xarray`

Open natashabatalha opened this issue 5 months ago • 0 comments

Currently output_xarray only works for the dataframe output of a forward model. We should make it so that users can also save their climate output via the same function and it will save all the key outputs associated with climate. These include:

  • dtdp
  • final convective zone locations
  • if saveallprofiles=True, saves all all_profiles
  • cvz_locs
  • chemistry and things you can get from here ptchem_df
  • all climate input parameters needed to reproduce run (e.g. temp_guess, press_guess, starting CZ guess)
  • adiabat

For example:

def output_xarray(df):
    if `dtdp` in df.keys(): 
        # Enter new code to save climate output 

@Ziva18t

natashabatalha avatar Jan 26 '24 19:01 natashabatalha