Reconstructing grid metrics from cf type bounds
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reviewing the grid-distance implementation in cmip6_preprocessing/grids.py and the EarthCube example notebook linked in the issue. Clarify whether metric reconstruction belongs in cf-xarray or xgcm, then define support for CF bounds and vertices/vertex-points and examples showing the resulting grid metrics.
Written by the indexing model from the issue text.
Description
@dcherian just made me aware of this package and it looks super cool (have only skimmed the exmpamples so far).
I noticed in the last example that you are recreating a (simplified) grid cell area. I have recently added the ability to estimate grid distances from cf type 'bounds' (two bounding values per logical axis) and verticies/vertex-points (4 bounding points representing cell corners).
This enables us to recreate grid metrics for many CMIP6 models and then use xgcm (my upcoming earthcube presentation gives some examples.
I think that this sort of functionality is probably of use to a broader community than 'just' CMIP6 users. Originally I was planning to suggest implementing the 'recalculation' of metrics upstream in xgcm, but when I saw this package, I thought perhaps it would make sense to add it here?
Just wanted to quickly drop this here and see if there is interest and also to avoid possible duplication of efforts here and over at xgcm.
cc'ing @rabernat
- Dominant language
- Python
- Stars
- 181
- Forks
- 49
- Avg merge
- 43m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from xarray-contrib/cf-xarray
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
xarray-contrib/cf-xarray#623 ·
-
Consider adding opt-in support for circular axes when calling `bounds_to_vertices` (related to #594) Open
Difficulty 5/5 Over a week Newbie friendliness 38/100
xarray-contrib/cf-xarray#596 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
xarray-contrib/cf-xarray#570 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
xarray-contrib/cf-xarray#568 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
xarray-contrib/cf-xarray#566 · 2 comments ·
All issues in xarray-contrib/cf-xarray
Similar issues
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100