Insert a `Cube` representing a component into another `Cube`

Open
#6,829 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start by reading issue #6317 and tracing how unloadable netCDF components are captured and represented as Cubes. Define the insertion behavior for each supported component, including the default exception for mismatches and the optional trimming warning; done means a component Cube can be inserted into a target Cube with those rules documented and tested.

Written by the indexing model from the issue text.

Description

When capturing "unloadable netCDF objects" (#6317), a component of a cube (e.g. coord, coord_system), will be captured and represented as a Cube.

We should be able to "insert" this component Cube into a target Cube.

Considerations:

  • What should be the behaviour if the component Cube doesn't "look" like the expected component in the target Cube? E.g. there is extra unexpected coord data, or missing attributes?
    • By default, the operation should raise an exception in this case, but with an option to "trim" extraneous parts of the component that don't fit into the target cube as a component (with appropriate warning).
Dominant language
Python
Stars
724
Forks
317
Avg merge
3d 20h
Merged PRs (30d)
9

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.

More from SciTools/iris

All issues in SciTools/iris

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.