[ncl-talk] About zoom in a WRF domain

Guido Cioni guidocioni at gmail.com
Thu Jun 1 06:18:36 MDT 2017


I don't know about WRF specifically, but if the variables that you're using to do the contour plot have the right attributes and coordinate variables assigned they should be automatically subsetted when zooming on a region. 
Maybe try to assign the lat2d and lon2d coordinates to the variable? Also, which routine are you specifically using to plot? How many overlays are you performing? 

I had to do something similar with satellite data (same method for WRF may vary though...)

ir_10p8 = short2flt(f[:]->ch9)
lat2d   = f[:]->lat
lon2d   = f[:]->lon

ir_10p8 at lat2d=lat2d(0,:,:)
ir_10p8 at lon2d=lon2d(0,:,:)

ResC at mpLimitMode = "LatLon"
ResC at mpMaxLonF    = 18                      ; specify the plot domain
ResC at mpMinLonF    = 11                      ;
ResC at mpMinLatF    = 33                     ;
ResC at mpMaxLatF    = 39            

plot = gsn_csm_contour(wks,ir_10p8(i,:,:),ResC)


> On 01 Jun 2017, at 13:53, Luis Cesareo Cana Cascallar <luis.cana at ulpgc.es> wrote:
> 
> Dear all,
> I’m trying to redraw a plot with maps, contours and vectors zooming in a specific area. To do so, I’ve set the following parameters:
> 
> ;  mpres at mpLimitMode = "Corners" 
> ;  mpres at mpLeftCornerLatF = 28.0 
> ;  mpres at mpLeftCornerLonF = -13.65 
> ;  mpres at mpRightCornerLatF = 28.8 
> ;  mpres at mpRightCornerLonF = -14.55
> 
> The map looks nice, but the variables are not drawn accordingly to this new zoomed map. NCL overlay the original data over the zoomed map because because that’s what I’m telling it to do...
> 
> I’ve taken a look to the NCL WRF tutorial about zooming in a plot, but they took another approach, locating (x,y) coordinates from the given corners and creating new zoomed variables. I think this method may be a bit outdated. I’ve also googled in ncl-talk archives about this topic and I found an old mail (Jan 9, 2011) with a similar problem but it required a mod to WRFUserARW.ncl in order to add special resources. As it’s an old mail, is still valid? 
> 
> Is it possible to set the above limits to the contour and vector plots just by setting the left and right corner as above? If not, which is the best approach to this problem?
> 
> Best,
> 
> Luis
> 
> 
> <Luis Cesareo Cana Cascallar.gif>
> 
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk


Guido Cioni
http://guidocioni.altervista <http://guidocioni.altervista/>.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170601/112e9f61/attachment.html 


More information about the ncl-talk mailing list