-
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
Continents are off #1106
Comments
actually the continents look good, it's almost as if the data is shifted rather than continents |
@dlonie any ideas? |
I suspect it has something to do with the transforms that are used to It seems to me that it'd be more robust to not rescale/stretch/etc the data On Fri, Mar 6, 2015 at 9:39 AM, Charles Doutriaux [email protected]
|
@aashish24 you designed this at the very beginning of the VTK rewrite, can you take a look please? |
@doutriaux1 Yes, the |
BTW, I'm not suggesting that as a fix for 2.2. If we make the camera/viewport-instead-of-actor-transforms change, it would be as part of the post-2.2 work. |
@williams13 I think @dlonie is right. It's part of making everything "the-right-vtk-way" It's slightly off on boxfill plots for noew but isoline/isofill are correct. I'd say let ship 2.2 like that and fix it for 2.3/3.0. Thoughts? |
I just don’t want users to compare the output with other packages and say UV-CDAT gives wrong output. This will be very bad! From: Charles Doutriaux <[email protected]mailto:[email protected]> @williams13https://github.com/williams13 I think @dloniehttps://github.com/dlonie is right. It's part of making everything "the-right-vtk-way" It's slightly off on boxfill plots for noew but isoline/isofill are correct. I'd say let ship 2.2 like that and fix it for 2.3/3.0. Thoughts? — |
@doutriaux1 this is still broken right? |
Oh! I have the data now, I need to double check. |
@doutriaux1 did you check? |
Yes. This should have been fixed already. @doutriaux1 was going to check. @danlipsa may be able to verify. |
doh! I'm on it. |
thanks @doutriaux1 |
@doutriaux1 Are you going to look into this? I got a bad.nc from David Lonie but I don't have the script to use with it. Thanks. |
This might be unrelated, but I had this script stored with the import cdms2,vcs,cdutil
f=cdms2.open("bad.nc")
ice = f("variable_6")
x=vcs.init()
gm = x.createisofill()
gm.label = "y"
#gm = x.createboxfill()
#gm.boxfill_type="custom"
tmpl = x.createtemplate()
#tmpl.blank()
tmpl.data.priority=1
tmpl.data.x1=.05
tmpl.data.x2=.95
tmpl.data.y1=.05
tmpl.data.y2=.90
tmpl.title.priority=1
tmpl.box2.priority=1
tmpl.box2.x1=.23
tmpl.box2.x2=.815
tmpl.box2.y1=.11
tmpl.box2.y2=.895
tmpl.title.x=.5
tmpl.title.y=.95
tmpl.legend.priority=1
tmpl.legend.x1=tmpl.box2.x1-.05
tmpl.legend.x2=tmpl.box2.x2+.05
tmpl.legend.y1=.03
tmpl.legend.y2=.055
tmpl.max.priority=1
#tmpl.crdate.priority=1
#tmpl.crdate.x=.8
#tmpl.crdate.y=.95
txt = x.createtext()
txt.height = 20
#txt.color=242
txt.valign="half"
txt.halign = "center"
tmpl.title.textorientation=txt.To_name
tmpl.title.texttable=txt.Tt_name
ice.long_name = "September sea ice fraction: 4xCO2 climate, no ocean albedo alteration "
levs = vcs.mkscale(ice.min(),ice.max())
cols=vcs.getcolors(levs)
cols[0]=240
gm.levels= levs
gm.fillareacolors = cols
#gm.projection="polar"
gm.datawc_y2=30
gm.datawc_y1=90
x.plot(ice,gm,tmpl,bg=1)
fnm = "bad.png"
x.png(fnm) |
Thanks I will take a look. |
@doutriaux1 @sankhesh @aashish24 I run the script that Charles gave me and the bad.nc that Dave Lonie gave me and got an image identical with the good image that Charles sent on March 5th -- see attached. Charles, can you check and close the issue - Thanks. |
@danlipsa Could you also post an image of the boxfill plot? |
@danlipsa it still seems that we have a lot of seance inside greenland and greenland should be empty. If you look at my "good" (purple) png I posted on this thread, Greenland is mostly w/o any sea-ice in it. |
I see. So isofill is correct but boxfill is not? |
yes, exactly. I believe it is because one is using celldata and the other point data filters. |
Sounds good. I will take a look. |
@danlipsa any update? |
@aashish24 no result yet. |
@doutriaux1 Can I have the bad.nc you have? I am not sure but the data I have seems slightly different. Notice the maximum occurs in level 4 for my image (magenta color) and in level 3 for your good image (deep red color). Thanks. |
@doutriaux1 As we have discussed in the meeting, the missing row at 90 degrees seem to be the problem. All rows are shifted up by one, which explains why we have ice over Greenland and also answers why the maximum occurs in different rows for the two images. |
… bounds We did not handle correctly a nc file which specifies bounds and has decreasing latitude or longitude.
… bounds We did not handle correctly a nc file which specifies bounds and has decreasing latitude or longitude.
BUG #1106: wrong dataset created from nc file with decreasing lat and…
The fix for this issue is at 658ac44.
The fix for this issue is at 658ac44.
Add test for issue #1106: Continents are off.
When plotting data with a user we noticed the continents seem to be a bit to much up north.
1.5.1 is ok. Png to follow soon
The text was updated successfully, but these errors were encountered: