Cell methods: Handle the more general CF convention for statistics applying to portions of cells

Open
#369 1 comment 1 reaction 0 assignees View on GitHub

@davidhassell is already working on this.

Since Oct 12, 2026.

  • #437 by @davidhassell — open

Assessment

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

Research direction

Start by tracing how cfdm represents and parses cell methods, using the CF convention section on statistics applying to portions and discussion 450 for the intended relationship. Support where and post-where over references to coordinate variable names, and verify that existing value-based references still work.

Written by the indexing model from the issue text.

Description

data model dataset read dataset write enhancement

Currently, it has always been the case that the more general CF convention for statistics applying to portions of cells is not catered for in cfdm cell methods.

I.e. when a where, or an over after a "where", references a coordinate variable name (such as "my_area_types", rather than a area types CV value (such as "sea_ice").

See https://github.com/orgs/cf-convention/discussions/450 (Missing connection in the CF data model: Cell Method -> Coordinate) for further discussion.

We need to fix this.

PR to follow.

As an aside, one reason this was missed was, I think, because there is a line missing in the CF data model UML (!), that should connect "Cell Method" to "Generic Coordinate Construct".

Dominant language
Python
Stars
32
Forks
14
Avg merge
3d 20h
Merged PRs (30d)
1

Getting set up

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.

More from NCAS-CMS/cfdm

All issues in NCAS-CMS/cfdm

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.