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

Add time series plots #232

Open justin-richling opened 1 year ago

justin-richling commented 1 year ago

This will add time series plots to scripts directory and will have the option in the config yaml file to plot only certain variables, as opposed to all declared in diag_var_list

The time series variables get declared in timeseries_var_list and must also be in diag_var_list. It's not ideal and has some redundancy, but this can be addressed in the future if desired.

It is also set up to plot any derived quantity, the user just needs to create functions to do so. The RESTOM calculation can be used a rough guide.

The script also looks at any variable with vertical levels and ignores it (similar to AMWG tables). In the future it might be nice to have an option to plot variables with vertical levels if single levels are designated, but currently it just skips them.

The time series also calculates seasonally weighted averages based on month length.

There is also a flag in adf_variable_defaults.yaml to set a rolling 5-year mean. Currently RESTOM is defaulted to this, but can be changed.

In addition, some minor cleanup included: