NCAS-CMS / NCAS-CMS/cf-python

summing cf fields doesn't fix bounds

Open
#601 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
150
Forks
23
Avg merge
1d 11h
Merged PRs (30d)
2

Description

If I have a series of cf fields in a list, each of which has time-bound: sum and a set of contiguous (or even non-contiguous) bounds, I would expect a sum over that list to inspect the bounds, find the min and max, and use that for the new bounds array.

That doesn't seem to happen.

I have data, but easiest to share within NCAS.

cf-python: 3.13.0

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

The issue names no files or tests and the example data is unavailable outside NCAS. Start by locating the implementation of summing cf fields and its handling of time bounds, then reproduce the case with contiguous and non-contiguous bounds. Done means the summed field's bounds span the minimum and maximum input bounds, with regression coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.