Skip to content

Conversation

@valentinaschueller
Copy link
Collaborator

@valentinaschueller valentinaschueller commented Oct 15, 2025

Closes #118

  • transparent to user: the processing task computes area weights differently depending on whether the grid is regular or reduced Gaussian.
  • added some new tests based on files provided by @joakimkjellsson
  • changed something about the longitude bounds the spatial mean computation which seemed like a bug?
  • moved OIFS area weight computation into cubes.py. Should we come up with a better place?
  • I have not adjusted the presentation tasks for maps! We could plots OpenIFS data for regular grids similar to NEMO but this is not urgent, I think the current version will still produce plots successfully for regular grids.

- map tasks work as expected
- timeseries task does not work
- moved area weight computation into cubes.py (should this be somewhere else?)
- regular grid area weights computed based on Iris user guide: https://scitools-iris.readthedocs.io/en/latest/userguide/cube_statistics.html
- changed the bounds used in compute_spatial_mean(), since this caused an error. I am not really sure why it was 0, 2 for longitudes before, was this a bug?
@valentinaschueller
Copy link
Collaborator Author

Failing tests are again due to something with delayed_computation in old Python versions, we should treat this separately.

Copy link
Owner

@uwefladrich uwefladrich left a comment

Choose a reason for hiding this comment

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

Code changes look good to me! But of course, I haven't tested. Trust in you! 😁

@valentinaschueller valentinaschueller merged commit ce9d0aa into master Oct 31, 2025
11 checks passed
@valentinaschueller valentinaschueller deleted the 118-oifs-regular-grid-support branch October 31, 2025 21:11
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.

Support OpenIFS output on regular lon/lat-grid?

3 participants