[gradsusr] Strange issues with GRADS displaying a value of 100% across small grid

James T. Potemra jimp at hawaii.edu
Thu Sep 19 13:56:48 EDT 2019


Hi Mike,

It looks like all of the values in that smaller domain have the same 
value (=100).  I suspect GrADS has problems displaying a gridded field 
with constant value AND user specified clevs.  If you comment out the 
"set clevs..." line, you should get a red-filled plot and a "Constant 
field.  Value = 100" alert. Curiously you don't get this warning with 
the "set clevs" line active.  it's probably how GrADS does interpolated 
shading and color assignment.

Jim

On 9/18/19 9:07 PM, Mike Manning wrote:
>
> Hi guys,
>
> I have a very strange issue with Grads (all versions).  I have the 
> following grads script which you can test below:
>
> 'sdfopen 
> https://nomads.ncep.noaa.gov:9090/dods/gfs_0p25_1hr/gfs20190919/gfs_0p25_1hr_00z'
>
> 'set t 47'
>
> 'set lon 151 153'
>
> 'set lat -29 -28'
>
> 'set rgb 45 254 254 254'
>
> 'set rgb 46 0 70 255'
>
> 'set rgb 48 40 100 255'
>
> 'set rgb 50 80 130 255'
>
> 'set rgb 52 120 160 255'
>
> 'set rgb 54 160 190 255'
>
> 'set rgb 56 200 220 255'
>
> 'set rgb 58 240 250 255'
>
> 'set rgb 60 255 205 95'
>
> 'set rgb 62 255 155 45'
>
> 'set rgb 63 255 130 20'
>
> 'set rgb 64 255 105 0'
>
> 'set rgb 65 255 80 0'
>
> 'set rgb 66 255 55 0'
>
> 'set rgb 67 255 30 0'
>
> 'set rgb 68 255 5 0'
>
> 'set rgb 69 230 0 0'
>
> 'set rgb 70 205 0 0'
>
> 'set rgb 71 185 0 0'
>
> 'set rgb 72 160 0 0'
>
> 'set rgb 73 135 0 0'
>
> 'set clevs 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100'
>
> 'set ccols 45 46 48 50 52 54 56 58 60 62 63 64 65 66 67 68 69 70 71 72 73'
>
> 'set gxout shaded'
>
> 'set csmooth on'
>
> 'set cmin 5'
>
> 'set cmax 100'
>
> 'display TCDCclm'
>
> 'printim cloudtotal.png white'
>
> 'quit'
>
> This doesn’t seem to display anything at all except a white image.. if 
> you change the lon from ‘set lon 151 153’ to ‘set lon 151 154’ then it 
> works fine as it has more than 1 value.. it’s like Grads doesn’t like 
> a value of 100? I’m sure I’ve set my ccols and clevs correctly.
>
> Cheers, Mike
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190919/01ce4a89/attachment.html>


More information about the gradsusr mailing list