Re: how to convert CESM lat/lon grid to WRF curvilinear grid?

From: Chi-Yun Wang <r98229027_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 18 2013 - 23:13:28 MDT

Hi, Dennis,

Thank you for the common. I had removed something unnecessary.
The attachments are the code, nc file I used, and the output.

Agilen

________________________________________
寄件者: Dennis Shea [shea@ucar.edu]
寄件日期: 2013年3月19日 下午 12:09
收件者: Chi-Yun Wang
Cc: ncl-talk@ucar.edu
主旨: Re: [ncl-talk] how to convert CESM lat/lon grid to WRF curvilinear grid?

Sending a script with no other information makes debugging difficult.

What about

printVarSummary(xlat)
printMinMax(xlat, 0)
printVarSummary(xlong)
printMinMax(xlong, 0)
printVarSummary(T)
printVarSummary(T2)

---
CESM data span 0->360
WRF is normally -180 to 180
---
When you have something like the following in your code
res@mpRightCornerLonF = xlon(0,nlon-1
      ; not sure when I set xlon(nlat-1,nlon-1) would come u
      ; negative value ...What does this indicate?
print(xlat(0,0)+" "+xlon(0,0)+" "+xlat(nlat-1,nlon-1)+" "+xlon(0,nlon-1))
On 3/18/13 8:36 PM, 王啟芸 wrote:
> Hi, NCL users,
>
>
>
> I am trying to convert CESM global model grid which is lat/lon grid to WRF curvilinear grid. I used rgrid2rcm, but the output graphic was shift and did not fill the whole domain when I used WRF native grid method to plot. The attachment is the output that I converted CESM grid to WRF grid via rgrid2rcm first and then used WRF native grid method to plot. Can anyone know the better (correct) way to convert CESM grid to WRF grid? Thanks!
>
> p.s. lat/lon and lat2d/lon2d have the same domain
>
>
>
> Agilen
>
>
>
>
>
> _______________________________________________
> 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

Received on Mon Mar 18 23:13:54 2013

This archive was generated by hypermail 2.1.8 : Tue Mar 19 2013 - 16:31:18 MDT