[ncl-talk] I can't overlay a contour on a map plot

Mary Haley haley at ucar.edu
Mon Jan 16 15:12:51 MST 2017


Dear Tao,

In the future, please be careful about including large attachments to
emails that you send to ncl-talk.  There are hundreds of users on this list
and not everybody's mailers can handle these large files.

I'm not sure what you mean by your question.  Did you get a bad plot or an
error message?

A few issues that I see is that your "radar" data contains missing values,
and in fact, it contains both -999 and -9999.

I've included a new version of your script that is somewhat simplified.  I
wanted to be sure your data was plotting correctly. Here are some things I
did:

   - I read the data as floats instead of strings thinking this would make
   the data read faster, but it doesn't really.

   - I set a missing value for your radar data.

   - Instead of calling gsn_csm_map, gsn_csm_contour, and overlay, I just
   called gsn_csm_contour_map, but this is not necessary.

   - I drew the contours both as smoothed and raster contours, again, for
   debugging purposes.

   - I added markers (third plot) to show where the data is >= 0.1, just
   for debugging purposes.

As far as I can tell, the radar data seems to be plotting correctly.

Are you getting different results?



On Mon, Jan 16, 2017 at 4:40 AM, Tao Lu <hakufu.asano at gmail.com> wrote:

>>  crain_composite_2015.09.09.00.00_UTC
> <https://drive.google.com/file/d/0B0Z21rDssktmaDRWeXp1YVJtbEU/view?usp=drive_web>
> ​Dear ncl-talk
>
> As the title said, please help me find out why I can't overlay a contour
> on a map.
>
> I attached the script and data needed.
>
> Please help me.
>
> Tao
>
> --
> ******************************************************
> 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>
> *****************************************************
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170116/84e9546c/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_complex.000003.png
Type: image/png
Size: 75639 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170116/84e9546c/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_complex.000002.png
Type: image/png
Size: 89659 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170116/84e9546c/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_complex.000001.png
Type: image/png
Size: 76582 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170116/84e9546c/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simple_plot.ncl
Type: application/octet-stream
Size: 2468 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170116/84e9546c/attachment.obj 


More information about the ncl-talk mailing list