xarray-contrib / xarray-contrib/xdggs

allow choosing the center meridian for `cell_centers` and `cell_boundaries`

Open
#86 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
138
Forks
25
Avg merge
1d 15h
Merged PRs (30d)
11

Description

For the cell boundaries the longitude is currently always returned in a range of -180°-180°, while for the cell centers this depends on the dggs implementation library.

I think the defaults should match, and it should be possible to choose a different range when necessary. For now I would limit that choice to 0° and 180°, as those are the most common, and having a discrete set of meridians makes it much easier to implement.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the implementations of cell_centers and cell_boundaries and inspect how each currently determines longitude ranges. Define how the 0° and 180° choices should apply to both entry points, then verify that their defaults match and that each supported range is returned consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.