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

Integrate fortran variable names #2

Open
mcgibbon opened this issue Oct 30, 2019 · 0 comments
Open

Integrate fortran variable names #2

mcgibbon opened this issue Oct 30, 2019 · 0 comments

Comments

@mcgibbon
Copy link
Collaborator

Users of our wrapper are likely (poor scientists) to know the Fortran names for the physics/dynamics quantities. We should include documentation that says what the long names are for each of the fortran names, and also add in a way to grab variables by their Fortran names (likely using an AliasDict).

@mcgibbon mcgibbon transferred this issue from another repository Oct 30, 2019
mcgibbon pushed a commit that referenced this issue Jul 30, 2020
This PR adds regional views to Quantity for convenient indexing. `Quantity.view` now has attributes `northeast`, `northwest`, `southeast`, `southwest`, and `interior` which modify the indexing behavior of `view` to perform indexing relative to the edges and corners of the subtile domain.

We originally also planned to add `east`, `west`, `north`, and `south`, but I'm a little unsure about their APIs. It's unclear whether e.g. for `east`, the default slice for the Y-dimension should be the start to end of the data, or the start to end of the compute domain. Because the edge attributes are not needed for anything we have written so far in fv3core, I have left them out in this PR. They are easy to add in (the syntax is the same as for the corners). I am including the tests I implemented for these as comments so they are committed to version control - they could be removed in a subsequent PR.

I've also added HISTORY file, and moved fv3util-relevant entries since the last release.

Because these changes are copied in from the fv3gfs-python repo, there may be some errors like duplicated files or changes being reverted which I did not want to revert - I've removed a couple (hopefully all) of these, but please comment if you spot any more.
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

No branches or pull requests

1 participant