Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in displaying dateline crossing for rotated coordinates #11

Closed
Casthardi opened this issue Apr 21, 2020 · 2 comments · Fixed by #12
Closed

Problem in displaying dateline crossing for rotated coordinates #11

Casthardi opened this issue Apr 21, 2020 · 2 comments · Fixed by #12

Comments

@Casthardi
Copy link

In these cases the whole earth (in longitudinal direction) is displayed.
CORDEX-North-America
CORDEX-Australasia
and the related data files
CORDEX-data.zip
It should be like e.g. the European region, i.e. only the necessary part should be displayed:
CORDEX-Europe

@Chilipp Chilipp transferred this issue from psyplot/psy-view Apr 22, 2020
@Chilipp
Copy link
Member

Chilipp commented Apr 22, 2020

Hey @Casthardi! Thank you for this! Yes, it's due to the default behaviour of the map_extent keyword (which is why I transferred this issue to the psy-maps repository). I determine the map_extent by the longitude-latitude box of the data and for something like this, the minimum longitude is -180, and the maximum is 180.

I'll fixed this with #12, although it is still not perfect, though. When using a standard cylindric projection (i.e. projection='cyl'), this creates a plot like this

image

which is of course not, what you want to see. You need to manually set the central longitude to 180 (i.e. clon=180 or in psy-view through the basemap dialog). Then you get something like this:

image

@Chilipp
Copy link
Member

Chilipp commented Apr 22, 2020

For the CF-encoded rotated pole projection, however, this is fixed by #12 as clon is here in principle set through the CF-conventions' grid_mapping variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants