Skip to content

Allow non-float cell measures#3428

Merged
bjlittle merged 1 commit into
SciTools:masterfrom
lbdreyer:cell_measure_ints
Oct 1, 2019
Merged

Allow non-float cell measures#3428
bjlittle merged 1 commit into
SciTools:masterfrom
lbdreyer:cell_measure_ints

Conversation

@lbdreyer

@lbdreyer lbdreyer commented Oct 1, 2019

Copy link
Copy Markdown
Member

Currently, we do not allow the creation of cell measures with non-float data as it is claimed that this is not supported until CF1.7

As of #3406 we are now committed to CF1.7 so we can now support this.

It is worth mentioning that I struggled to find reference to the

Non-floating cell measures are not valid up to CF v1.7

in the CF documenstation. But regardless, we can remove this restriction now.

Comment thread lib/iris/coords.py
self.var_name = var_name

#: Unit of the quantity that the coordinate represents.
#: Unit of the quantity that the cell measure represents.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@lbdreyer Nice spot... clearly cut'n paste syndrom 🤣

@bjlittle bjlittle self-assigned this Oct 1, 2019
@bjlittle

bjlittle commented Oct 1, 2019

Copy link
Copy Markdown
Member

@lbdreyer Nice one, looks good to me 👍

@bjlittle bjlittle merged commit 17d69e9 into SciTools:master Oct 1, 2019
@lbdreyer lbdreyer deleted the cell_measure_ints branch June 23, 2021 15:32
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