-
Notifications
You must be signed in to change notification settings - Fork 68
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
Map with polar stereographic has empty gap #2122
Comments
@doutriaux1 Have any idea or suggestion? |
@lee1043 you need to read extra data to close the gap longitude=(-180,182) should do. |
@doutriaux1 It sounds like a nice trick and helps to narrow the gap. But I will also need to use my region_selector for calculation, not only for the plot. I've tried various bound options such as ccb, ccn, ooe, oon, etc., but they were not so helpful. |
@lee1043 try to set datawc_X1/x2 to 0/360 (-180,180) it might help as well. |
@danlipsa any hints for this? |
@doutriaux1 Thanks but I have checked 0/360 or -180/180 is not helpful for this case. |
@lee1043 @doutriaux1 Try (-180, 185). That will close the gap. The original data goes from (-180, 175) so a gap is appropriate. Not sure why (-180, 180) does not close it - I thought it should have. We'll have to look closer to see why. |
@danlipsa @doutriaux1 Is there any option that let the program know the data is cyclic so it can close the gap when plotting? |
hum... did youtrytweaking datwc_1/x2? |
@doutriaux1 I have tried adding datawc_x1 and datawc_x2 but it was not so helpful, still the gap is existing. |
Revisiting the issue with willingness of following up... |
@lee1043 does extending the data at plot time work? x = vcs.init()
x.plot(data(longitude=(-180,185))) |
@doutriaux1 I know that could be a temporary solution but think it would be nice if that could be more generalized without having special treatment. |
@doutriaux1 this is interesting... I learned the gap only appears for isofill, but not for boxfill.
|
Another question: Can the stitches along the 0 lon (probably latitude tick label?) be removed? |
@lee1043 yes turn them off via template. |
@doutriaux1 thanks for the |
I need to look into that one, I think I need to change isofill. |
It would indeed be nice to fix this gap problem automatically, rather than having to generate extra longitude values (even if cdms2 will nicely do this for you). I've also had to generate extra longitudes for some non polar plots in order to avoid a white vertical band on the left or right side (don't remember which side) from time to time but I don't remember for which kind of data. Oh, you can actually see this in the Gallery:
One last note: in the examples above, you plot either the North or South pole by plotting |
Agreed to @jypeter that we need tutorial for the polar stereographic map projection. Just for future reference, latitude can be set as |
Good point @lee1043 ! We just need half of the data for a polar plot :-) |
@jypeter actually the "polar" plot can display all 180 degrees of latitude. I'm not sure why it was historically called a "polar" plot, in reality it is an "Albers Equidistant" projection (proj4: aeqd) |
@doutriaux1 Albers Equidistant is slightly different then polar projection. Difference is at where to set edge point of flat projection of globe. Albers uses virtual point vertically above polar pole while polar projection uses actual pole at surface as one side of projected flat plane. Sorry about the poor explaining in text, I may able to give better description in person when I back ;) |
@lee1043 agreed, I just think vcs |
Map with polar stereo-graphic shows empty gap for fixed column which not caused by lack of data. Below plot is coming from one dataset and gap located at different longitude.
Is this bug? or is there any alternative way to fill this gap?
I have used following script:
The text was updated successfully, but these errors were encountered: