Skip to content

fixed problem with saving cubes vertical levels but missing orography#1236

Merged
rhattersley merged 2 commits into
SciTools:v1.7.xfrom
esc24:missing_vertical_simple
Jul 17, 2014
Merged

fixed problem with saving cubes vertical levels but missing orography#1236
rhattersley merged 2 commits into
SciTools:v1.7.xfrom
esc24:missing_vertical_simple

Conversation

@esc24

@esc24 esc24 commented Jul 16, 2014

Copy link
Copy Markdown
Member

A change introduced between 1.6 and 1.7 (when we added support for Hybrid pressure) means that loading hybrid height data from PP (or anywhere else) without an orography and then saving it to PP will "unroll" the cube stripping out the vertical level information. This is because the PP save rule checks for the presence of an aux factory rather than the model level, sigma, and level_height coords. This is more flexible as it allows the dependency names (i.e. the formula terms) to have different names. Unfortunately a lot of data lacks the orography and that currently stops the aux factory being created on load. Consequently the vertical coords are not saved. This PR provides a simple (inelegant) fix. See https://github.com/esc24/iris/compare/missing_vertical for a more advanced solution that delegates responsibility to the factory and allows load and save without reference surfaces.

Targets v1.7.x

@esc24

esc24 commented Jul 17, 2014

Copy link
Copy Markdown
Member Author

I feel that this is an urgent fix. Anyone disagree?

@rhattersley

Copy link
Copy Markdown
Member

👍

Comment thread lib/iris/tests/integration/test_pp.py Outdated

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.

This should say "hybrid-height". Amend your commit and I'll push the button. 😄

rhattersley added a commit that referenced this pull request Jul 17, 2014
fixed problem with saving cubes vertical levels but missing orography
@rhattersley rhattersley merged commit cf57685 into SciTools:v1.7.x Jul 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants