Re: High resolution coastilines in wrf_map_overlays function?

From: Tabish Ansari <tabishumaransari_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 19 2014 - 21:01:25 MST

Dear Mary,

Thank you for your mail.

I added these lines to my code. However, I still get the same plot without
the shapefile. I don't get any errors or warnings though.

On 20 February 2014 04:36, Mary Haley <haley@ucar.edu> wrote:

> Tabish,
>
> To add to Adam's email: Hanna is adding her shapefiles using an older
> method. You can see this in her email at:
>
> http://www.ncl.ucar.edu/Support/talk_archives/2014/0317.html
>
> Her code can be simplified by using the "gsn_add_shapefile_polyline"
> function.
>
> So, after the call to wrf_map_overlays:
>
> plot = wrf_map_overlays(a,wks,contour_SO2,pltres,mpres)
>
> add this code:
>
> shapefile_name = "xxxxx.shp" ; replace with name of your shapefile
>
> lnres = True
> lnres@gsLineColor = "red" ; whatever color you want
> lnres@gsLineThicknessF = 2.0 ; default is 1.0
>
> dum = gsn_add_shapefile_polylines(wks,plot,shapefile_name,lnres)
>
> draw(plot) ; This will draw the map and the shapefile outlines.
> frame(wks) ; Advance the frame
>
> --Mary
>
> On Feb 19, 2014, at 11:36 AM, Adam Phillips <asphilli@ucar.edu> wrote:
>
> Hi Tabish,
> Please see the previous ncl-talk email that I sent to Hanna (+ncl-talk)
> about a 1/2hr ago. She was using wrf_map_overlays and drawing shapefile
> output as well. The different projections should not be a problem..
>
> If you have any further questions please respond to ncl-talk only.
> Adam
>
> On 2/19/14, 11:30 AM, Tabish Ansari wrote:
>
> Dear Mary,
>
> Thank you very much for your mail.
>
> I was able to achieve that after figuring out a few more sample
> NCL scripts on coastlines. However, I have another query: I had attended
> your webinar and have downloaded the shapefiles for my country. However, I
> am not sure how to overlay them upon my WRF output which I plot using the
> wrf_map_overlays function.
>
> I am not able to turn on the National boundaries on for India. Please help
> me do that with or without using shapefiles. Another issue is: My wrf data
> is on a Mercator projection but the shapefile seems to be in a lat-lon
> rectangular projection. How do I then use it in my wrf plots?
>
> Many thanks in advance
>
>
> On 19 February 2014 23:48, Mary Haley <haley@ucar.edu> wrote:
> Hi Tabish,
>
> You should be able to use the high-res coastlines.
>
> When you call wrf_map_overlays, there are two resource lists passed in.
> It's the second one that you use to add the map resources to.
>
> So, for example, if you have a call:
>
> plot
> = wrf_map_overlays(a,wks,(/contour_tc,contour_psl,vector/),pltres,mpres)
>
> then try adding this resource before you call wrf_map_overlays:
>
> mpres@mpDataBaseVersion = "HighRes" ; defaults to "MediumRes" in
> WRFUserARW.ncl
>
>
> --Mary
>
>
> On Feb 19, 2014, at 12:02 AM, Tabish Ansari <tabishumaransari@gmail.com
> > wrote:
>
> > Hello
> >
> > I have recently downloaded the rangs data for high resolution coastlines
> as it is mentioned here. Can I use this option in wrf_map_overlays function
> or is it only a feature of gsn_csn_contour_map function?
> >
> > My aim is to plot my wrf output using these high-res coastlines so I
> would like to use the inherent map projection in my wrf file to plot the
> data.
> >
> > --
> > Thanks & Regards
> > Tabish Umar Ansari
> > MS Research Scholar
> > Environmental & Water Resources Engineering Division
> > Department of Civil Engineering
> > IIT Madras
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>
> --
> Thanks & Regards
> Tabish Umar Ansari
> MS Research Scholar
> Environmental & Water Resources Engineering Division
> Department of Civil Engineering
> IIT Madras
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
>
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>

-- 
Thanks & Regards
Tabish Umar Ansari
MS Research Scholar
Environmental & Water Resources Engineering Division
Department of Civil Engineering
IIT Madras

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Feb 19 21:02:05 2014

This archive was generated by hypermail 2.1.8 : Mon Mar 03 2014 - 14:26:18 MST