Re: use of shapefile in panel plot

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed May 18 2011 - 10:20:59 MDT

See the attached script and resultant PNG file.

I created a procedure that you call after all map plots are created. You pass in the map plots, and it reads the lat/lon data off the shapefile and attaches the lat/lon lines to each map plot.

--Mary

On May 18, 2011, at 7:41 AM, jagan TNAU wrote:

> Hello Mary,
>
> Thanks for the coast_panel.ncl.
>
> I was able to duplicate using our own shape files and please see the attachment tndist.png. My requirement is to draw a contour map of temperature or other variable from ascii file and overlay on the shapefile using gsn_panel.
>
> I have developed a small script provided by you to panel plots as per my requirements (Please see attachments for tmax.ncl and relevant shapefiles). As "Earth..4" has no district divisions I want to use shapefiles. I failed in my attempts to combine both contour map and shapefile for panel plotting.
>
> Is it possible to merge the contour map and shapefiles into panel plots.
>
> Thanks for all the help.
>
> On Tue, May 17, 2011 at 11:20 PM, Mary Haley <haley@ucar.edu> wrote:
> Yes, this should be possible as long as you plot the shapefile data by using gsn_add_polyxxxx, and not just gsn_polyxxx.
>
> Also, you need to make sure that each return value from gsn_add_polyxxxxx is unique.
>
> I've attached an example that is basically the "coast_3.ncl" example at http://www.ncl.ucar.edu/Applications/coast.shtml, but with the plots paneled.
> Note that the change I had to make was to the "map" variable. I turned it into an array so that I could panel the maps later.
>
> --Mary
>
>
> On May 17, 2011, at 10:00 AM, jagan TNAU wrote:
>
> > Dear users,
> >
> > Whether it is possible to use shapefile in panel plots. Is there any example available.
> >
> > --
> > With regards
> >
> > Dr.R.Jagannathan
> > Professor of Agronomy,
> > Department of Agronomy
> > Tamil Nadu Agricultural University,
> > Coimbatore - 641 003 India
> >
> > PHONE: Mob: +91 94438 89891
> >
> > DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US ALL.
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>
> --
> With regards
>
> Dr.R.Jagannathan
> Professor of Agronomy,
> Department of Agronomy
> Tamil Nadu Agricultural University,
> Coimbatore - 641 003 India
>
> PHONE: Mob: +91 94438 89891
>
> DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US ALL.
> <jagan.zip>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 18 10:21:52 2011

This archive was generated by hypermail 2.1.8 : Wed May 25 2011 - 09:35:33 MDT