[ncl-talk] How do I color fill a map using transparent colors for part of the range?

Cathy Smith cathy.smith at noaa.gov
Fri Jun 7 09:20:07 MDT 2019


Toni

Hi, Thanks for responding :) I was wondering if the contours might not 
line up if I did that (unless I did raster fill maybe)?

But, I think I will do that so I can get something.

The easiest NCL solution is that the transparency value would become an 
array. An ability to have no colors drawn at all (even background) for 
contouring outside of a specified range would also work.

Cathy

On 6/7/19 1:14 AM, Toni Klemm wrote:
> Hi Cathy,
>
> I had a similar problem before. It might work to duplicate the 
> variable and replace the categories you want to be transparent with 
> missing values. That way they won’t be colored.
>
> Good luck,
> Toni
>
>
> *Toni Klemm**, Ph.D.*
> Postdoctoral Research Associate
> Department of Ecosystem Science and Management
> College of Agriculture and Life Sciences
> Texas A&M University, College Station, TX
> Contributor to the Early Career Climate Forum <https://www.eccforum.org/>
> www.toni-klemm.de <http://www.toni-klemm.de/> | @toniklemm 
> <https://twitter.com/ToniKlemm>
>
>
> On Jun 6, 2019, at 11:35 PM, Cathy Smith <cathy.smith at noaa.gov 
> <mailto:cathy.smith at noaa.gov>> wrote:
>
>> NCLers
>>
>> I am hoping I missed this in the doc. I'd like create a map that is 
>> colorfilled (either contour or raster). I would like the lowest 3 
>> contour ranges to be transparent and the rest not. I can't figure out 
>> how to do this. I tried overlay and I wasn't able to not color part 
>> of a map so the overlay worked. Also, I don't see you can set an 
>> array of transparency for each color.
>>
>> Any suggestions would be appreciated.
>>
>> Cathy Smith
>>
>> -- 
>> ----------------------------------------------
>> NOAA/ESRL PSD and CU CIRES
>> 303-497-6263
>> https://www.esrl.noaa.gov/psd/people/cathy.smith/
>>
>> Emails about data/webpages may get quicker responses from emailing
>> esrl.psd.data at noaa.gov <mailto:esrl.psd.data at noaa.gov>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
----------------------------------------------
NOAA/ESRL PSD and CU CIRES
303-497-6263
https://www.esrl.noaa.gov/psd/people/cathy.smith/

Emails about data/webpages may get quicker responses from emailing
esrl.psd.data at noaa.gov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190607/f7c26c25/attachment.html>


More information about the ncl-talk mailing list