Skip to content

Cube coord bounds make cube intersection misbehave #799

@lukasbrunner

Description

@lukasbrunner

Issue in a nutshell

  • operation: _area.py/extract_region()
  • task at hand: func needs to perfrom cube intersection on 0-360 lons
  • comment: extract_region works well when run on a cube with negative longitude points and run as a stand alone preprocessor step, see comment but the intersection operation misbehaves when a regrid step has been run before, see comment

Original Post

Hi all!

I am currently testing the new recipe ClimWIP, which, among other things, calls the pre-processor to extract the following region:
https://github.com/ESMValGroup/ESMValTool/blob/414d7d2e84a62a777dfada79297c0ed400b6bbd3/esmvaltool/recipes/recipe_climwip.yml#L52-L56

For me the resulting longitude values look like this:
lon = -1.25, 1.25, 3.75, 6.25, 8.75, 11.25, 13.75, 16.25, 18.75, 21.25, 23.75, 26.25, 28.75, 31.25, 33.75, 36.25, 38.75, 351.25, 353.75, 356.25 ;

Can anyone recreate this behaviour? Is it even expected? To me this looks wrong. My understanding is that the longitude should either be in [-180, 180) OR in [0, 360) but neither case is true here.

Many thanks,
Lukas

main_log_debug.txt

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions