[gradsusr] Holes in plot since 2.1.a2.oga.1 on windows
Jennifer M Adams
jadams21 at gmu.edu
Mon Dec 12 21:25:30 EST 2016
What are the commands you are using for this specific display? Are you using ‘set clevs’ and ‘set ccols’ explicitly? What was the complete old version you were using (something more specific than 2.0.xx would be helpful). There was a bug fix in 2.1.0 related to the choice of shade colors based on data values. The code now reflects what’s in the documentation at http://cola.gmu.edu/grads/gadoc/colorcontrol.html#override:
Here is example using 6 colors and 5 contour levels that shows how the filled contours (or shaded grids) relate to the data values:
col1: values <= lev1
col2: lev1 < values <= lev2
col3: lev2 < values <= lev3
col4: lev3 < values <= lev4
col5: lev4 < values <= lev5
col6: lev5 < values
This may be related to your problem.
Also, I haven’t tested this bit of code, but you should be able to simplify your script a bit :
‘set e 1 21’
‘temp = const(const(maskout(…etc…etc…..)’
‘set e 1'
On Dec 12, 2016, at 1:30 PM, dzengiz.tafa at telenet.be<mailto:dzengiz.tafa at telenet.be> wrote:
I have just upgraded to GrADS version 2.1.a2.oga.1 on my windows installation.
So far I am thrilled with the new 2.1 version. Especially with the new graphics output properties. Very good work guys. Keep it up.
I am however having problems with one of my scripts. All my other scripts run just fine. Only the ones where I use a maskout function & plot these results as shaded gives problems, eg. all my probability maps. I have created a script whith applies probablistic functions using the GEFS & it goes like this
'set e 1'
'define temp1 = const( const( maskout( ((tmp2m - 273.16) * -1), ((tmp2m - 273.16) * -1) - 0), 1), 0.0, -u)'
'set e 2'
'define temp2 = const( const( maskout( ((tmp2m - 273.16) * -1), ((tmp2m - 273.16) * -1) - 0), 1), 0.0, -u)'
'set e 3'
'define temp3 = const( const( maskout( ((tmp2m - 273.16) * -1), ((tmp2m - 273.16) * -1) - 0), 1), 0.0, -u)'
'set e 4'
'define temp4 = const( const( maskout( ((tmp2m - 273.16) * -1), ((tmp2m - 273.16) * -1) - 0), 1), 0.0, -u)'
'set e 5'
'define temp5 = const( const( maskout( ((tmp2m - 273.16) * -1), ((tmp2m - 273.16) * -1) - 0), 1), 0.0, -u)'
'set e 21'
'define temp21 = const( const( maskout( ((tmp2m - 273.16) * -1), ((tmp2m - 273.16) * -1) - 0), 1), 0.0, -u)'
'define tempoverlap = (temp1 + temp2 + temp3 + temp4 + temp5 + ... + temp21) / 21'
'define freezeprob = 100 * tempoverlap'
When I plot this result in the previous version, the 2.0.xxx It runs just fine. When I try this however on the new 2.1.a2.oga.1, I get holes in my plot and the result seemingly shows values above 100% which should be impossible. Those patches mentioned have the same color as my background color set in grads.
When I try to run the exact same script on the 2.0.xx version on windows the plot has no problems at all. Those patches aren't there & the plot is correct.
Does anybody know what might have happened? Is there a bug in the maskout functions since the 2.1.a2.oga.1 on windows because I only have this issue on my probablistic maps which make heavy use of the maskout-function. I'm beginning to think there is an issue with maskout in combination with color shaded graphics output. I havent been able to test this on unix/linux so maybe this could be an issue confined to the windows release only?
I'm curious what the rest of the community thinks or knows about this. Maybe somebody can point me in the right direction?
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gradsusr