[ncl-talk] About specify color of specific places, when do contour plotting

Tao Lu hakufu.asano at gmail.com
Sun Jan 15 02:18:52 MST 2017


Dear ncl-talk

I have some data like this:
about rain density 0.0 ~ 409.0 mm/h step 0.1 mm/h
integer number rain density
0 0.1 mm/h less then
1 0.1 mm/h
2 0.3 mm/h
  .
  .
4089 409.0 mm/h
4090 409.0 mm/h more then
4091 out of the obsevation region
4092 not observed

I define rain density in this way:
    if data_rain_integer == 4090:
        rain_density = 500
    elif data_rain_integer == 4091:
        rain_density = -1000
    elif data_rain_integer == 4092:
        rain_density = -999
    else:
        rain_density = data_rain_integer*0.1

Do you know how to specify not observed data as black color when I plot
rain density contour?

Yours sincerely,
Tao


-- 
******************************************************
盧 涛 (ル タオ) 修士課程2年

〒112-8551 東京都文京区春日1-13-27

中央大学理工学研究科都市環境学専攻

河川・水文研究室(山田正教授)


TEL: 03-3817-3406;   Phone: 070-2188-7509
Email1: hakufu.asano at gmail.com <mail%3Amet.yamos at gmail.com>
Email2: lutao at civil.chuo-u.ac.jp <mail%3Ayamoto at civil.chuo-u.ac.jp>
*******************************************************
******************************************************
Tao Lu    (M. Eng)
Laboratory of River Engineering and Hydrology,
Dept. of Civil and Environmental Engineering,
Graduate School of Science and Engineering,
Chuo University

1-13-27,Kasuga,Bunkyo-ku,Tokyo
112-8551, Japan
TEL: 03-3817-1805;   Phone: 070-2188-7509
Email1: hakufu.asano at gmail.com <mail%3Amet.yamos at gmail.com>
Email2: lutao at civil.chuo-u.ac.jp <mail%3Ayamoto at civil.chuo-u.ac.jp>
*****************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170115/45accf60/attachment.html 


More information about the ncl-talk mailing list