Open schlunma opened 4 years ago
@zklaus Is this a problem with this particular dataset or with the regridding preprocessor function?
It's a problem with the preprocessor. The presence of a grid_mapping
attribute needs to be detected and dealt with. I can take this on.
Describe the bug For a specific dataset (see recipe below), the regridded cube cannot be correctly read by
iris
.Recipe
Output
This results in the following output fiile:
When read with
iris
, this givesAs you can see, the
latitude
andlongitude
coordinate are not present in the cube. I think the problem in the netcdf file is therotated_latitude_longitude
variable, which somehow tellsiris
to use a rotated grid, but it fails to do so because only a regular grid is present.This is not also not an issue of the original data, which lives on a rotated grid. Also,
iris
needs therotated_latitude_longitude
variable in the original file to correctly read it in the first place.Thus, it is necessary to somehow get rid of this variable after the irregular regridding.