What's a "coordinate system" and what should I do if a cube doesn't have one

327 views
Skip to first unread message

Niall Robinson

unread,
Oct 16, 2013, 4:51:59 AM10/16/13
to scitoo...@googlegroups.com
Hello again,

A few times lately I've been trying to regrid one cube to another, and the regrid functions get upset because one cube will have a coordinate and the other will have None. What does this mean and what should I do? Delete the coord system from the cube? Copy it to the other one? Something else?

Thanks
Niall

Niall Robinson

unread,
Oct 16, 2013, 5:20:11 AM10/16/13
to scitoo...@googlegroups.com
ps

that meant to say "coordiante system" not "coordinate"
Also, I've asked a similar question before but I think the problem was different
https://groups.google.com/forum/#!searchin/scitools-iris/coord_system/scitools-iris/naVhi4w6tFw/xCo_NqZ7BBAJ

Richard Hattersley

unread,
Oct 16, 2013, 9:07:44 AM10/16/13
to scitoo...@googlegroups.com
Hi Niall,

The coordinate system exists to define how a coordinate relates to the physical world. For example, if you have a coordinate with the standard name "projection_x_coordinate" you don't know how to relate that to the real world until you know which projection has been used, what the parameters of the projection were, etc. This is still true even for "latitude" and "longitude" coordinates, as the definitions of latitude and longitude depend on an idealised shape of the Earth. (Granted, the different idealised Earth shapes generally only result in small positional differences which are often ignored.)

So, the ideal solution would be to track down the missing coordinate system information. (Where have these cubes come from?) But if you aren't concerned by the potential for small positional discrepancies then go ahead and create a coordinate system anyway. Either by choosing a simple default (e.g. GeogCS(iris.fileformats.pp.EARTH_RADIUS)) or by copying from another cube.

Niall Robinson

unread,
Oct 16, 2013, 9:12:41 AM10/16/13
to scitoo...@googlegroups.com
Great - thanks Richard, that makes sense.
Reply all
Reply to author
Forward
0 new messages