Skip to content

Conversation

pp-mo
Copy link
Member

@pp-mo pp-mo commented Oct 23, 2019

WIP: incomplete, for discussion

Some ideas (incomplete) for extracting a coordinate as a cube.
And the reverse operation : putting a cube inside another cube (with matching dims) as an aux-coord.

daughter_coord = daughter_coords[0]

# Find a unique matching coord in the parent.
parent_coords = parent_cube.coord(daughter_coord)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be ".coords()" (plural) !

@bjlittle
Copy link
Member

@pp-mo I'm not quite sure what the status of this PR is?

Are you just sharing the concept? Or do you want it reviewed to be merged?

Would you be able to clarify?

@pp-mo
Copy link
Member Author

pp-mo commented Nov 19, 2019

Are you just sharing the concept? Or do you want it reviewed to be merged?

Just sharing. It is really intended as more of a an "issue" : A proposal that we should provide a mechanism to convert such cube component to-and-from independent cubes.

I wrote this stuff ages ago, but was reminded of it because it relates to the recent proliferation of "dimension metadata" components, in the effort to support Ancillary variables.
I.E. the changes in #3422

So it would make good sense, if doing this now, to extend the idea to work with any of coords, ancillary variables and cell measures.

@pp-mo pp-mo closed this Nov 19, 2019
@pp-mo pp-mo reopened this Nov 19, 2019
@pp-mo
Copy link
Member Author

pp-mo commented Nov 19, 2019

Tried to change this to a newstyle non-mergeable PR, but it seems you don't get that choice.
I will try to re-form it as an issue somehow ....

@bjlittle
Copy link
Member

@pp-mo Would it make sense to close this PR and capture it as an issue?

I'm all for having WIP PRs but it's confusing as a reviewer to determine what's a WIP PR that's actually aiming to deliver an agreed deliverable, what's a POC PR, and what's a "just sharing" for discussion PR.

To me it makes sense to discuss as much as possible via an issue, then commit to doing the work in confidence that there is agreement and buy-in that the PR will be banked (hopefully) on review.

What do you think?

@pp-mo
Copy link
Member Author

pp-mo commented May 11, 2020

What do you think?

I think the problem is that I'm using a PR format to present proof-of-concept code.
I will close this, convert to an issue, and reference a PR in my own repo for the PoC code...

@pp-mo
Copy link
Member Author

pp-mo commented Jun 3, 2020

I will close this, convert to an issue, and reference a PR in my own repo for the PoC code...

so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants