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

Added several Mission atlantic developments and a shelve fixer tool #121

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

ledm
Copy link
Collaborator

@ledm ledm commented Dec 12, 2023

Lots of Mission Atlantic fixes and an entirely new tool.

So this affects a lot of files (51!), but most of them are Mission Atlantic yml files, so nothing too major.

A new tool, revert_shelve (possibly not the best name - happy to change it), now takes a few command line arguments and allows the deletion of specific years and months of processed data in the bgcval2 shelve datasets. This was needed because we found a fault in the MA runs and needed to go back and re-simulate a few years.

In terms of actual changes:

  • analysis_compare output plots path includes the metric so that max no longer overwrites mean plots.
  • Mission Atlantic files are no longer requires to be prefaced with SENEMO and can keep the standard /YEAR/MN/ directory structure. (This is why all MA files have been changed.)
  • Several compatibility fixes for MA data format in the time series analysis and analysis_compare tool.

@ledm ledm requested a review from valeriupredoi December 12, 2023 16:07
Copy link
Owner

@valeriupredoi valeriupredoi left a comment

Choose a reason for hiding this comment

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

lots of small bits, bud 🍺

bgcval2/bgcval2_make_report.py Outdated Show resolved Hide resolved
bgcval2/bgcval2_make_report.py Outdated Show resolved Hide resolved
bgcval2/bgcval2_make_report.py Outdated Show resolved Hide resolved
bgcval2/bgcval2_make_report.py Outdated Show resolved Hide resolved
bgcval2/bgcval2_make_report.py Outdated Show resolved Hide resolved
bgcval2/revert_shelves.py Outdated Show resolved Hide resolved
bgcval2/revert_shelves.py Outdated Show resolved Hide resolved
time_key = year+month
else:
time_key = year

Copy link
Owner

Choose a reason for hiding this comment

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

what if month is str but not length 1?

default=[None, ],
nargs='+',
type=str,
help='One or more months - default is all months',
Copy link
Owner

Choose a reason for hiding this comment

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

no, default is [None, ] 🤣

bgcval2/revert_shelves.py Outdated Show resolved Hide resolved
@valeriupredoi
Copy link
Owner

can you also add to the executables list and add a basic run test for it in the github action, pls?

Co-authored-by: Valeriu Predoi <valeriu.predoi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants