[ncl-talk] plotting a polygon over an existing plot

Alison Bridger alison.bridger at sjsu.edu
Tue Jul 31 15:06:30 MDT 2018


Although my NCL skills are gradually improving, I am still stumped by
simple tasks!

The attached code reads in WRF output, extracts rainfall, sums it over the
run, and contour plots the total each hour. I got it from somebody else
here!

I want to superimpose ("overplot") small columns at a few locations showing
obs versus WRF rain totals. So imagine - say - small red and blue columns
side-by-side somewhere on this plot (e.g., SFO) showing obs and WRF rain
totals.

I have spent 2 hours (!) trying to morph the sample code in polyg_4.ncl
(from the NCL pages) into my code (wtest.ncl, attached), but I get nothing
visual and no useful diagnostics.

I fell this is related to things like "frame" and "draw" and "plot" and so
forth, but no amount of trying seems to make me understand how these relate
to each other!

The added code starts near the end with "xpts = ...".

Thanks for any pointers!

Alison

PS can supply wrfout file if needed

-- 

                 Alison F.C. Bridger
                  Professor & Chair

    Department of Meteorology and Climate Science

    San Jose State University      tel  408.924.5206
    One Washington Square          fax  408.924.5191
    San Jose, CA 95192-0104

             email:   Alison.Bridger at sjsu.edu

       *Global CO2 levels...410 ppm and still rising*


                 www.sjsu.edu/meteorology <http://www.met.sjsu.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180731/a4a50374/attachment.html>


More information about the ncl-talk mailing list