Re: Errors with ESMF_regrid_gen_weights

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Jun 28 2012 - 08:31:25 MDT

Hi Chad,

My feeling is that something is wrong with the triangular mesh that it generated of your data, which it needs to do for unstructured data.
It sounds like several triangles did not have distinct points, so it was unable to calculate the area, which the ESMF regridder needs.

One thing that is on my list is to allow the user to enter their own triangular mesh, if one exist. Do you have one? If so, we can try using
that instead, but I would have to give you some slight code modifications.

Would you be able to provide the original file with the 37,000 points? I would like to look at this and see what
the issue might be. We may also have to send this on to the ESMF folks to look at.

If you can provide your files, then see our ftp information at:

http://www.ncl.ucar.edu/report_bug.shtml#HowToFTP

Thanks,

--Mary

On Jun 27, 2012, at 5:18 PM, Chad Herman wrote:

> Hi,
>
> I'm having trouble using the new EMSF regridding functions. I have almost 37,000 stations to interpolate into a 2.5x2.5 grid. When I call "unstructured_to_ESMF", I get numerous warnings: "GCTAREA: The three input points must be distinct." I'm sure there are coordinates that are identical and that's what's provoking these warnings. That's not the problem though. I then call latlon_to_SCRIP with no problems. Next, I call ESMF_regrid_gen_weights and that throws an error:
>
> warning:getvardims: file (null) contains no dimensions readable by NCL
> fatal:The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function
> fatal:["Execute.c":7556]:Execute: Error occurred at or near line 1580 in file ESMF_regridding.ncl
>
> fatal:["Execute.c":7556]:Execute: Error occurred at or near line 1629 in file ESMF_regridding.ncl
>
> fatal:["Execute.c":7556]:Execute: Error occurred at or near line 1864 in file ESMF_regridding.ncl
>
> fatal:["Execute.c":7554]:Execute: Error occurred at or near line 32
>
> I've attached a script to illustrate the problem as well as a netCDF file containing my source grid. I saw in the documentation a note that the ESMF_regridding.ncl file has a bug in it. I downloaded the updated version. I don't believe the bug it addresses is causing my problem. Using either the ESMF_regridding.ncl file that comes with NCL or the updated version still results in this error.
>
> Chad
> <emsf_test.tar.gz>_______________________________________________
> 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 Thu Jun 28 08:31:33 2012

This archive was generated by hypermail 2.1.8 : Tue Aug 28 2012 - 09:22:09 MDT