[ncl-talk] Adding a Legend to Shapefile Plot

Carlos J. Valle-Diaz cj.vallediaz at gmail.com
Mon Dec 21 08:39:50 MST 2015


Hello,

I'm writing to ask if somebody from NCL-talk has read my email and/or
currently is answering it. I'm kind of in a rush to have these plots ready
before Christmas. I apologize for my insistence.

Best Regards,

Carlos

On Fri, Dec 18, 2015 at 4:52 PM, Carlos J. Valle-Diaz <
cj.vallediaz at gmail.com> wrote:

> Hello,
>
> I've been running WRF simulations to observe 24hr precipitation in Puerto
> Rico from (July 12, 2011 12UTC to July 13, 2011 12UTC). I want to compare
> the model runs with the observed from the National Weather Service. I have
> their hourly shapefiles, see link to access them:
> http://www.srh.noaa.gov/ridge2/Precip/qpehourlyshape/2011/201107/20110712/).
> In the shapefiles, Globvalue refers to precipitation.
>
> I've been trying all day to add a legend to my plot, but haven't been
> successful. I've been using example #7 in the legends section of NCL as a
> reference. See leg_7.ncl at http://ncl.ucar.edu/Applications/legend.shtml
>
> I have attached the script I have at the moment. It plots fine when you
> take out the lines that codes for the legend and text. What am I missing
> and/or doing wrong?
>
> Thanks beforehand for the help,
>
> P.S. I set up the array(arr) data for 16 values because I'm using a color
> map that displays 17 colors.
> --
> Carlos J. Valle Diaz
> Ph.D. Chemistry Student
> University of Puerto Rico Rio Piedras Campus
> Department of Graduate Chemistry and Environmental Sciences
> cj.vallediaz at gmail.com
> Tel. 787-764-0000 x88192
>



-- 
Carlos J. Valle Diaz
Ph.D. Chemistry Student
University of Puerto Rico Rio Piedras Campus
Department of Graduate Chemistry and Environmental Sciences
cj.vallediaz at gmail.com
Tel. 787-764-0000 x88192
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151221/d6b9247a/attachment.html 


More information about the ncl-talk mailing list