xarray-contrib / xarray-contrib/cf-xarray

Guess `cell_measures`?

Open
#201 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
181
Forks
49
Avg merge
43m
Merged PRs (30d)
1

Description

We could automatically assign the cell_measures attribute by looking at variables with standard_name: cell_thickness, cell_area and set these when the dimensions of the metric variable is a subset of a data variable or coordinate variable.

We could add this to a .cf.guess_cf_attributes(cell_measures=True, coord_axis=True) that will replace .cf.guess_coord_axis

Related #200

Contributor guide

No contributing guide indexed for this repository

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 reading related issue #200 and tracing the existing .cf.guess_coord_axis entry point. Review how standard_name values and variable dimensions are represented, then clarify the replacement API and the subset-matching behavior for cell_thickness and cell_area. Done means the proposed cell_measures and coord_axis guessing behavior is implemented and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data, tooling
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.