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

606 circulation and fluxes in global model data #607

Merged
merged 25 commits into from
Mar 29, 2023

Conversation

jasontempestholt
Copy link
Collaborator

Pull request checklist

Please check if your PR fulfills the following requirements:

  • [x ] Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (./build.sh) was run locally and no errors reported. NB not sure about this requirement: GitActions test this
  • Lint (pylint .) has passed locally and any fixes were made for failures. NB not sure about this requirement: GitActions test this with black

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • [ x] Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue URL: #

What is the new behavior?

Checklist

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing (pip install . && pytest unit_testing/unit_test.py -s)
  • Extended the README / documentation, if necessary
  • Added myself / the copyright holder to the AUTHORS file

Does this introduce a breaking change?

  • Yes
  • No

Other information

Quick update to add useful feature of subsetting for global models

and also some circulation calculations / plot, which will be further developed

Jason Holt and others added 2 commits December 21, 2022 17:44
@jasontempestholt jasontempestholt linked an issue Jan 4, 2023 that may be closed by this pull request
1 task
@jpolton
Copy link
Collaborator

jpolton commented Jan 13, 2023

@jasontempestholt I'm still going through this. I made some changes in a new branch they broke the unit_testing! So it is not ready yet.

Copy link
Collaborator

@jpolton jpolton left a comment

Choose a reason for hiding this comment

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

I've taken your branch and:

  1. changed a few names to make them more COAsT
  2. abstracted and simplified your subsetting method in Gridded()
  3. refactored the velocity_on_t_points so that the differences across indices are not a function of dimension ordering (I'm also hoping it might scale better with xarray backend magic)
  4. updated to the latest version of Develop
  5. Unit testing still works.

One way to do this, so that it is still your branch, is if I request a merge into your branch. Then I will be ready to accept your branch.

NB there are a few name changes, which will affect your scripts (capitalisation mostly). These are the main (only?) two:

            nemo_t = coast.CurrentsOnT(fn_domain=files.fn_nemo_dom, config=files.fn_config_t_grid, lims=lims)
            nemo_t.currents_on_t(nemo_u, nemo_v)

jasontempestholt and others added 2 commits March 29, 2023 12:21
…rculation-and-fluxes-in-global-model-data_jp

606 circulation and fluxes in global model data jp
@jpolton jpolton merged commit 4370cfe into develop Mar 29, 2023
@jpolton jpolton deleted the 606-circulation-and-fluxes-in-global-model-data branch March 29, 2023 19:13
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.

Circulation and fluxes in global model data
2 participants