[ncl-talk] Error in ESMF regridding WRF output to match TRMM data

Mary Haley haley at ucar.edu
Tue Feb 27 13:26:49 MST 2018


Hi Ronald,

Thanks for providing all the files.

Apparently the error is happening because the lat/lon arrays on the
destination (TRMM) grid are of different types (lat is type double and lon
is type float). I need to look into why ESMF_regrid can't handle this, but
meanwhile, you can fix this by making sure both arrays are the same type:

    dst_lat = dfile->lat
​            ; already double​

​    ​
dst_lon = todouble(dfile->lon)

​--Mary
​


On Tue, Feb 27, 2018 at 11:40 AM, Ronald Opio <opioronald123 at gmail.com>
wrote:

> Hello colleagues.
>
> I have used ESMF to regrid a WRF file to match GPM rain data and it works
> well. However, when I use the same script on TRMM data, it gives me this
> error:
>
> fatal:Assignment type mismatch, right hand side can't be coerced to type
> of left hand side
>
> How can I solve this?
>
> I have attached the TRMM data, WRF file and the modified script for your
> review. ​
>
>  wrfout_d03_2008-03-16_00:00:00
> <https://drive.google.com/file/d/1BA02y1xfJMJgPlxLGJVYEzddyXJNVPBV/view?usp=drive_web>
>
> _______________________________________________
> ncl-talk mailing list
> 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/20180227/e726f0d5/attachment.html>


More information about the ncl-talk mailing list