Re: Plot WRF field at LambertConformal projection

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Feb 21 2013 - 08:42:16 MST

Hi Xin,

To zoom in on the map, you can no longer set tfDoNDCOverlay to True, unless you reset all the map parameters to reflect the new map projection. There's a special way of doing this if you are using wrf_xxxx plotting functions, but it looks like you are using gsn_xxx plotting functions.

Please see example WRF_lc_2.ncl at:

and see what it does with XLAT and XLONG:

      x@lat2d = f->XLAT(0,:,:) ; direct assignment
      x@lon2d = f->XLONG(0,:,:)

You will also need to set res@gsnAddCyclic to False, if you haven't already.


On Feb 21, 2013, at 2:27 AM, Xin Xi wrote:

> Hello there,
> I have a data field from WRF model in Lambertconformal project, shown in a.png. I simply used WRF_map_c(wrf_file,res,0) to set up mp resources.
> Now I want to make a plot of only a part of the domain, 50E-80E, far south of domain-50N, I used the following setup; the data field b.png comes mismatched with the map outline. Can someone help on this?
> res@mpProjection = "LambertConformal"
> res@mpLimitMode = "LatLon"
> res@mpMinLatF=30.0
> res@mpMaxLatF=50.0
> res@mpMinLonF=50.0
> res@mpMaxLonF=80.0
> res@mpCenterLonF = wrf_file@CEN_LON
> res@mpLambertParallel1F = wrf_file@TRUELAT1
> res@mpLambertParallel2F = wrf_file@TRUELAT2
> res@mpLambertMeridianF = wrf_file@CEN_LON
> res@gsnMaskLambertConformal = True
> Thanks,
> Xin
> <a.png><b.png>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Thu Feb 21 08:42:31 2013

This archive was generated by hypermail 2.1.8 : Thu Feb 21 2013 - 11:26:43 MST