[gradsusr] How Plot tow Variables on the same map?

Jeff Duda jeffduda319 at gmail.com
Wed Dec 30 12:23:24 EST 2020


You have to be careful when plotting exact values (i.e., integers or floats
with all zeros following the decimal point). Even a contour plot will plot
a blanket shade of color if you select a contour level that exactly matches
the values in the field you're plotting. Since you are constraining your
fields to all be 0 and 1 and also setting the contour intervals as those
values, that's probably what is happening. I recommend picking an
intermediate value instead such that the exact value falls cleanly in the
middle of a contour interval instead of right on the edge.

The other possibility is the use of the background color (0) for the "don't
color this area" region. You might consider trying a clear color instead.
Just define a new one with no opacity, such as 'set rgb 20 0 0 0 0' and use
that color number instead.

Jeff Duda

On Tue, Dec 29, 2020 at 8:21 PM UwBe International - Severe Weather
Research <info at uwbeinternational.org> wrote:

> Hi Everyone
>
> I try plot/draw more variables on the same map.
> I have try the following:
>
> 'define
> prob=const(const(maskout(cape255_0mb,cape255_0mb-500),1.0),0,-u)*const(const(maskout(no4LFTX180_0mb,-2-no4LFTX180_0mb),1.0),0,-u)'
> 'define prb=const(const(maskout(prob,prob-1),1.0),0,-u))'
>
> 'set clevs 0 1'
> 'set ccols 0 7'
> 'd prob'
>
> 'define l1=const(const(maskout(scp,scp-1.5),1.0),0,-u))'
> 'define level1=const(const(maskout(l1,l1-1),1.0),0,-u))'
>
> 'set clevs 0 1'
> 'set ccols 0 2'
> 'd level1'
>
> The Problem is now, that i only get red areas from level1 on the Map and
> nothing from 'd prob'.
> If i comment out 'd level1' and only have 'd prob', then i will get all
> yellow areas.
>
> How i can draw both?
> I'm confused!
> --
> Freundliche Grüsse / Best Regards
> Dominic Kurz
> Präsident / CEO
>
> *UwBe International*
> *Severe Weather Research & Taskforce*
> Einschlagstrasse 30
> CH-4622 Egerkingen
> Switzerland
>
> Tel.: +41 78 340 46 78
> Direct: +41 76 270 70 87
>
> <https://uwbeinternational.org>
>
> E-Mail: info at uwbeinternational.org
> Web: www.uwbeinternational.org <https://uwbeinternational.org>
>
> Find us on Facebook <https://facebook.com/uwbeinternational>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>


-- 
Jeff Duda, Research Scientist
University of Colorado Boulder
Cooperative Institute for Research in Environmental Sciences
NOAA/OAR/ESRL/Global Systems Laboratory
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20201230/8e2076ae/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_uwbe_transparent_black_gross.png
Type: image/png
Size: 190518 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20201230/8e2076ae/attachment-0001.png>


More information about the gradsusr mailing list