Skip to content

ANTS and Iris Coord System.. #5154

Answered by trexfeathers
raghu330 asked this question in Q&A
Discussion options

You must be logged in to vote

Now how can I set the coordinate system for both the target and source grid to say "GeogCS(6371229.0)" or something meaningful to regrid the source data to target grid size?

from iris.coord_systems import GeogCS

for axis in ("x", "y"):
    coord = my_cube.coord(axis=axis)
    coord.coord_system = GeogCS(6371229.0)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@raghu330
Comment options

Answer selected by raghu330
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants