[gradsusr] Shaded plot only for values above a minmum

Thomas Robinson ter at hawaii.edu
Mon Mar 3 14:31:45 EST 2014


Thank you all for the help.  The -1 transparent color is exactly what I was
looking for.


On Mon, Mar 3, 2014 at 8:06 AM, Goodson,Ron [Edm] <Ron.Goodson at ec.gc.ca>wrote:

>  totally agree.  Maskout reflects the size of the grid (as you note) ..
> while the contouring interpolates.  But, I'm old so the maskout method is
> still in many of my scripts from long ago... all of which are for quick
> looks of the data rather than public (or publication) output.
>
> ron
>
>  ------------------------------
> *From:* gradsusr-bounces at gradsusr.org [mailto:
> gradsusr-bounces at gradsusr.org] *On Behalf Of *Stephen McMillan
> *Sent:* March 3, 2014 10:37 AM
>
> *To:* GrADS Users Forum
> *Subject:* Re: [gradsusr] Shaded plot only for values above a minmum
>
>  Hey Ron,
> From my experience, unless you have a relatively high resolution grid,
> your maskout method tends to produce a jagged edge.  I think the "fancy
> dancy" method does a much better job, producing fairly smooth edges even on
> the coarser grids.  I've attached a sample overlaying the four cloud cover
> layers in the GFS model output, using the first method that Jennifer
> mentioned ('set gxout shaded2').  I'm using version 2.0.1.oga.1.  Of
> course, whatever works for you...
> Stephen Mc
>
>
> On Mon, Mar 3, 2014 at 12:20 PM, Goodson,Ron [Edm] <Ron.Goodson at ec.gc.ca>wrote:
>
>>  If not using the new fancy-dancy transparent colour stuff ...
>>
>> I just use maskout for this .. eg .. plotting precip that as a coloured
>> shaded field I was plotting over another shaded field such as outgoing
>> longwave radiation (stand-in for clouds) using only grayshades.
>>
>> In your case
>>
>> mymask = var -9
>> d maskout(var,mymask)
>>
>> ron
>>
>>
>>  ------------------------------
>> *From:* gradsusr-bounces at gradsusr.org [mailto:
>> gradsusr-bounces at gradsusr.org] *On Behalf Of *Thomas Robinson
>> *Sent:* February 28, 2014 7:56 PM
>> *To:* GrADS Users Forum
>>
>> *Subject:* Re: [gradsusr] Shaded plot only for values above a minmum
>>
>>   Thank you Jeff.  I actually have a plot of terrain, and I would like
>> to plot 'var' on top of that with the terrain in the background.  So I
>> really want to make a shaded plot overlaid on a shaded plot.  Just using a
>> background value won't work for that.  It there any way to just eliminate
>> the lower values?
>>
>>
>> On Fri, Feb 28, 2014 at 1:13 PM, Jeff Duda <jeffduda319 at gmail.com> wrote:
>>
>>> use the ccols command to manually set the color levels.  If you have N
>>> contour values, you need N+1 colors, the first one in the list is the color
>>> corresponding to values below the lowest contour.  Set that to 0
>>> (background), so that it will appear not to color values below your minimum
>>> contour value.  See the controlling colors<http://www.iges.org/grads/gadoc/colorcontrol.html> section
>>> of the documentation index for more information.
>>>
>>> Jeff Duda
>>>
>>>
>>>  On Fri, Feb 28, 2014 at 4:58 PM, Thomas Robinson <ter at hawaii.edu>wrote:
>>>
>>>>  Aloha Grads Users,
>>>>
>>>> I am trying to make a shaded plot where values only show up if they are
>>>> greater than 9.  So I do:
>>>>
>>>> set clevs 9 10 11 12 13 14 15
>>>> d val
>>>> cbarn
>>>>
>>>> That works great, but it fills in purple (default) for everything below
>>>> 9 which is most of the plot.  Is there a way to turn off coloring in the
>>>> areas below 9?
>>>>
>>>> Thanks,
>>>> Tom
>>>>
>>>> --
>>>> Tom Robinson
>>>> President - Graduate Student Organization
>>>> Chair - Student Athletic Fee Committee
>>>> Graduate Student - Department of Meteorology
>>>>
>>>>
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org
>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>
>>>>
>>>
>>>
>>> --
>>> Jeff Duda
>>> Graduate research assistant
>>> University of Oklahoma School of Meteorology
>>> Center for Analysis and Prediction of Storms
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>
>>
>> --
>> Tom Robinson
>> President - Graduate Student Organization
>> Chair - Student Athletic Fee Committee
>> Graduate Student - Department of Meteorology
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
> ***************************************************
> The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.
>
> If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.
> ***************************************************
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
Tom Robinson
President - Graduate Student Organization
Chair - Student Athletic Fee Committee
Graduate Student - Department of Meteorology
732-718-2323
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140303/25070e16/attachment-0001.html 


More information about the gradsusr mailing list