NCAR / ADF

A unified collection of python scripts used to generate standard plots from CAM outputs.
Creative Commons Attribution 4.0 International
35 stars 29 forks source link

TEM diagnostics #250

Closed justin-richling closed 11 months ago

justin-richling commented 1 year ago

This will calculate TEM files and plots for:

There are two scripts being added, scripts/averaging/create_TEM_files.py for reading in h4 history files, calculating TEM variables and creating new netcdf files. And scripts/plotting/tem.py for reading in either the newly created netcdf files, or existing TEM netcdf files and plotting.

Update adf_variable_defaults.yaml with TEM variables, including Obs files and variable names.

Update config_cam_baseline_example.yaml for TEM scripts

NOTE: If QBO is present, all variables will be calculated, if not, only uzm epfy epfz vtem wtem psitem and utendepfd will be calculated.

NOTE: If there are different vertical levels between cases, currently the difference plots don't work. I am working towards a vertical and horizontal interpolation for TEM as noted in issue #225

justin-richling commented 1 year ago

@nusbaume I think I've tackled all your suggestions and have run a couple tests. Let me know if anything else needs addressing, thanks!

justin-richling commented 1 year ago

@nusbaume Last changes are in place if you want to review this again, thanks!

justin-richling commented 11 months ago

@nusbaume Can you take another look and see if this is all good now. I ran it with your suggested changes and it appears to work as intended for when tem_opts is included or missing in the config file.