Editing cube coordinate datum.... #5622
Replies: 3 comments 3 replies
|
I think it might be somewhere in the crs of the target cube, since this has a datum attribute and produces the same error: |
|
Thanks for opening this @nickschurch! It would really help us to see the file (or a subset of it). |
|
Definitely echo that a file example would be great, as we are still learning about datums. In terms of fixing: while you can access horizontal_coords = [target_cube.coord(axis=a, dim_coords=True) for a in ("x", "y")]
for coord in horizontal_coords:
if hasattr(coord, "coord_system"):
coord.coord_system.datum = "OSGB36"
|
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm new to iris so this might be a stupid Q, but here goes. I'm truing to regrid some data from a grib2 file onto the same grid as a netCDF file. When I load the data from the netCDF (target) file I get:
which seems like a sensible standard warning that can be dealt with by setting
iris.FUTURE.datum_support = True.However, if I do this and then run the regrid, I get an error:
This actually maes sense because the datum
Ordnance Survey of Great Britain 1936doesn't appear to be the right way to specify the correct datum which should be EPSG:6277, but I can't find out where this datum is stored in either the source or target cubes, or how to edit that information and give it the right information.Any help gratefully received...
Ubuntu 22.04 LTS, Python 3.11.4, iris 3.7.0, iris_grib 0.19.0
All reactions