-
Notifications
You must be signed in to change notification settings - Fork 85
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
wind arrow direction depends on map projection #1899
Comments
@joernu76 Do you have any idea what causes this behaviour? |
NB this is very important as we tried to get a hint whether a direct flight would be possible due to head winds or not... |
We don't use cartopy, but that sounds similiar look for the section, comparison basemap to cartopy
the rotate_vector is mentioned as solution. This needs to become fixed in mpl_hsec_styles |
Moin, Ill try to have a look. The projection in V2 is mirrored, which happens with "wrong" lon/lat coordinates even though. This is |
This projection works for me:
|
@jgrooss is your question answered? |
No, the wind arrows should work for every chosen projection. It seems to me however, that this is an error in the included plotting routines |
Correct, but if the projection is wrongly parameterized, i.e. if, e.g., the landmasses are reversed in east-west order, nothing is assured to work anymore. In particular, you are using a projection that is centered on 10°E and 40°S. The coordinates of the corners are flipped in such a fashion that it looks fine, but the winds are wrong. Incidentally, the "02 PHILEAS (stereo)" projection has the same issue. Using an appropriate center of projection, the winds are fine as well:
The specification of corners in lon/lat is dangerous with basemap stereographic projections... |
I uploaded a fixed msui_settings.json file to the PHILEAS cloud. I also added better projections for Norther Canada and a polar Northern Hemisphere plot. That something is seriously wrong with the current projection is apparent when one zooms out. The area around Anchorage is severely distorted due to the large distance to the center of projection. |
When displying plots ECMWF wind data arrows the wind file direction is not correct in all times. The following plots show the same polar stereogaphic plots but for opposite mirrored projections.
For comparison I attach also a gaphically mirrired file.
v1 shows a projection an a flight path from EDMO (upper edge) to Anchorage (lower edge)
map frame settings are "llcrnrlon": 150.0, "llcrnrlat": 50.0, "urcrnrlon": -45.0, "urcrnrlat": 30.0
This seems to be not correct
v2 shows the same data with EDMO at the lower edge
map frame settings are "llcrnrlon": 60.0, "llcrnrlat": 32.0, "urcrnrlon": -127.0,, "urcrnrlat": 48.0
This seems to be correct.
For visual comparison, I also add a mirrored image of V1
V1:
V2:
V1-mirror:
The text was updated successfully, but these errors were encountered: