MetOffice / MetOffice/CSET

Subarea cutout producing different cutouts when rotated poles differ

Open
#1,980 0 comments 0 reactions 2 assignees Claimed by @Sylviabohnenstengel View on GitHub
bug
Dominant language
Python
Stars
33
Forks
19
Avg merge
1d 22h
Merged PRs (30d)
30

Description

First reported by @afinnen:

model 1:
Image

model 2:
Image

In the above examples the same cutout region (based on real-world coordinates) is being applied however the models are producing different results.

Comparisons by @afinnen plotting the cutouts onto the larger domain show this:

Image

This could arise because only the corners of the cutout are rotated, so the areas will not overlap for the same rotated pole.

An initial approach (suggested by @afinnen) could be to create a 2D array with unrotated lat/lon pairs for each point
Create Boolean version where points set to true where both lat and lon are within the user defined range
use the boolean array to mask the rotated pole
create a copy of the rotated cube replacing the original data with the masked array.
use that cube for plotting

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.