[ncl-talk] Error in ESMF regridding WRF output to match TRMM data
Mary Haley
haley at ucar.edu
Wed Feb 28 12:26:12 MST 2018
Glad it worked. For the record, it was an easy fix to make ESMF_regrid
work with two types of lat/lon arrays, and this will be in the 6.5.0
release of NCL.
--Mary
On Tue, Feb 27, 2018 at 2:15 PM, Ronald Opio <opioronald123 at gmail.com>
wrote:
> Thanks a lot Mary. This makes it work perfectly.
>
> Sincerely,
> Ronald.
>
> On Tue, 27 Feb 2018 at 23:26, Mary Haley <haley at ucar.edu> wrote:
>
>> 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/20180228/5c7a9dc2/attachment.html>
More information about the ncl-talk
mailing list