[ncl-talk] rgrid2rcm too slow? ESMF_regrid with Opt at InterpMethod = "neareststod" also slow

xiaoming Hu yuanfangcan at hotmail.com
Wed Apr 4 08:29:29 MDT 2018


I ended up using Opt at InterpMethod     = "neareststod"     for ESMF_regrid to make sure there is no negative values.

But ESMF_regrid  with "neareststod"  is also slow.

For comparison,   ESMF_regrid  with "neareststod"   took more than 1 hour  while ESMF_regrid  with "patch" only took a few minutes

Any comments?

Thanks
Xiaoming

________________________________
From: Dennis Shea <shea at ucar.edu>
Sent: Wednesday, March 29, 2017 11:25 AM
To: xiaoming Hu
Cc: ncl-talk at ucar.edu; xiaoming Hu
Subject: Re: [ncl-talk] rgrid2rcm too slow?

Rather than:

Opt at InterpMethod     = "patch"

Try

Opt at InterpMethod     = "bilinear"    ; or "conserve"

===

I think that "patch" was developed to attain highly accurate
derivatives.


On Wed, Mar 29, 2017 at 10:07 AM, xiaoming Hu <yuanfangcan at hotmail.com<mailto:yuanfangcan at hotmail.com>> wrote:

Dennis


Thanks a lot!  Yes, ESMF_regrid is much quicker.

It mostly worked for me except negative values generated,

see my original data shown at http://www.caps.ou.edu/micronet/CO2_and_otherGHG/WRFV3.8.1/YSU/wrfchem3.8.1_NARR_CONUS_nudge2_tracer16_Comet.2011080600/wrfout_d01_E_CO2_EDGAR_2.png

and the interpolated data shown

at http://www.caps.ou.edu/micronet/CO2_and_otherGHG/WRFV3.8.1/YSU/wrfchem3.8.1_NARR_CONUS_nudge2_tracer16_Comet.2011080600/wrfout_d01_E_CO2_0.png

You may notice in the right-lower corner the contour information shows Min=-20.745


Any suggestion to improve this?

My interpolation script at http://www.caps.ou.edu/micronet/CO2_and_otherGHG/WRFV3.8.1/YSU/wrfchem3.8.1_NARR_CONUS_nudge2_tracer16_Comet.2011080600/Interp_edgar42_to_wrfchemi_NEI.ncl


Thanks a lot!

Xiaoming

________________________________
From: Dennis Shea <shea at ucar.edu<mailto:shea at ucar.edu>>
Sent: Tuesday, March 28, 2017 11:39:23 AM
To: xiaoming Hu
Cc: ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>
Subject: Re: [ncl-talk] rgrid2rcm too slow?

rgrid2rcm can be slow.

Use ESMF: there are exam
http://www.ncl.ucar.edu/Applications/ESMF.shtml

There are numerous examples of  going  from rectilinear ('rgrid') to curvilinear ('rcm')
Examples 9, 15, 28-30, 32, 33,

HTH


On Tue, Mar 28, 2017 at 9:30 AM, xiaoming Hu <yuanfangcan at hotmail.com<mailto:yuanfangcan at hotmail.com>> wrote:

I am doing

"

dummy1     = rgrid2rcm (elat, elon, emi_co2, lat2d, lon2d, 0)
"

where lat2d and lon2d have a dimension of 442x265


The script appears to take forever.


Any other ways to do a faster interpolation?


Thanks a lot!

Xiaoming

_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180404/e780dc33/attachment.html>


More information about the ncl-talk mailing list