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

Add time series plots #232

Closed
wants to merge 2 commits into from

Conversation

justin-richling
Copy link
Collaborator

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.

  • Note: RESTOM can be declared in the timeseries_var_list w/o its constituents so long as they (FSNT and FLNT) are in the diag_var_list.

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.

  • Note: RESTOM currently is only calculated annually, not seasonally.

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:

  • Add RESTOM config parameters in adf_variable_defaults.yaml
  • Clean up amwg tables for derived quantities and move RESTOM to top of table
  • Block out missing seasons on website
  • Fix error if missing mclim_fils in regrid_and_vert_interp
    * Part of Issue 228

- Clean up amwg tables for derived quantities and move RESTOM to top of table
- Block out missing seasons on website
- Fix error if missing mclim_fils in regrid_and_vert_interp
    * part of Issue 228
@nusbaume nusbaume added enhancement New feature or request plotting Related to plot generation config files Concerns the ADF config (YAML) files labels Mar 9, 2023
Copy link
Collaborator

@nusbaume nusbaume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good, except it doesn't appear that timeseries_var_list is actually defined anywhere in the ADF object, at least in this PR. Maybe there is a local commit somewhere that still needs to be pushed?

Otherwise mostly just a bunch of small change requests and slight feature expansions. As always let me know if you have any questions or concerns with any of my requests. Thanks!

@justin-richling
Copy link
Collaborator Author

Closing due to updated PR coming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config files Concerns the ADF config (YAML) files enhancement New feature or request plotting Related to plot generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants