[ncl-talk] Using ESMF_Regrid to Interpolate lat/lon to Unstructured MPAS

Mary Haley haley at ucar.edu
Thu Apr 13 08:28:06 MDT 2017


Christian,

Sorry for the delay. I think the issue you are having might have been fixed
in a later release of NCL.

I could try to verify this for you if you provide me with the two NetCDF
files?  We have an ftp you can use, as long as the files are not too large.

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

Thanks

--Mary



On Sat, Apr 8, 2017 at 7:35 PM, Hogrefe, Christian <
Hogrefe.Christian at epa.gov> wrote:

> Using NCL version 6.2.1, I am trying to use ESMF_regrid to interpolate
> data from a regular lat/lon (0.1 x 0.1 degree) grid to an unstructured MPAS
> grid. I am working off of the ESMF_rect_to_unstruct.ncl template.
>
> I am providing the DstGridLat and DstGridLon values from an existing MPAS
> input file. This MPAS mesh has nCells = 163842 cells and I am passing the
> double latCell(nCells) and double lonCell(nCells) variables to DstGridLat
> and DstGridLon.
>
> Once the script starts processing the destination grid, the following
> screen output appears:
>
> (0)           get_dst_grid_info: destination lat dims = (163842)
>
> (0)           get_dst_grid_info: destination lon dims = (163842)
>
> (0)           unstructured_to_ESMF: triangulating the data ... this can
> be slow
>
> (0)           min/max ElementVertices = 0/163841
>
> (0)           unstructured_to_ESMF: total number of elements created:
> 327680
>
>
>
> After that, the weights are being generated and the input data is
> interpolated . However, the dimension of that interpolated output is 327680
> (i.e. the number of “elements”), not 163842 (i.e. the number of destination
> lat/lon points specified). When I write out the interpolated data, it has
> 327680 values. That number of  “elements” matches the number of
> “Vertices” in my existing MPAS input file from which the DstGridLat and
> DstGridLon values were pulled.
>
>
>
> I am sure I am missing something very basic, but I am stuck figuring out
> why the interpolated data has more elements than I am expecting.
>
>
>
> I am attaching the script, screen output, header of the destination
> lat/lon grid description file provided to the script, and the headers of
> the SrcFileName, DstFileName, and ncf file containing the interpolated data
> that are created by the script.
>
>
>
> I have also uploaded the files required to run the script (i.e. the
> edgar_HTAP_NOx_emi_TRANSPORT_2010.0.1x0.1.nc file containing the data to
> be interpolated and the existing MPAS input file static.90-25.usgs.nc
> containing the DstGridLat and DstGridLon values) to the anonymous ftp
> server.
>
>
>
> Thank you very much for your help,
>
>
>
> Christian
>
>
>
> _______________________________________________
> 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/20170413/c2556516/attachment.html 


More information about the ncl-talk mailing list