Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable climate out as input into output_xarray #185

Closed
natashabatalha opened this issue Jan 26, 2024 · 1 comment
Closed

Enable climate out as input into output_xarray #185

natashabatalha opened this issue Jan 26, 2024 · 1 comment

Comments

@natashabatalha
Copy link
Owner

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
Copy link
Owner Author

has been integrated see tutorial :

preserve_clima = jdi.output_xarray(out, cl_run)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant