[ncl-talk] [EXT] regridding routine for grids with 2D lat and lon

William Scheftic scheftic at email.arizona.edu
Wed Apr 29 19:51:13 MDT 2020


Hi Diana,

I haven't done your specific regridding.  But using the ESMF regridding 
routines is the best way to go.  You can save the regridding in a 
special netCDF file that only you requires the regridding weights to be 
calculated once and then reloaded for future needs.  There are some 
examples that deal with non-rectilinear grids sending in 2-d lat and lon 
grids, rather than 1-d.

http://www.ncl.ucar.edu/Applications/ESMF.shtml

http://www.ncl.ucar.edu/Document/Functions/ESMF.shtml

Cheers,

Bill


On 4/29/2020 3:17 PM, Diana Stovern - NOAA Affiliate via ncl-talk wrote:
>
> *External Email*
>
> Hello,
>
> I need to regrid rainfall data from a lambert conformal grid to a 
> polar sterographic grid.  The lat and lon data in both grids are 2D 
> arrays (see filedump output below).  Is there a regridding routine in 
> NCL that allows for both the input and output lat and lon to be 2D 
> arrays?  I see most of the routines require lat and lon to be 1D arrays.
>
> Thanks!
>
> Diana Stovern
>
>
> *Grid 1:*
>       float gridlat_0 ( ygrid_0, xgrid_0 )
>          corners :      ( 23.117, 19.80368, 45.61871, 53.51192 )
>          long_name :    latitude
>          grid_type :    Polar Sterographic Projection (North or South)
>          units :        degrees_north
>          Dy :   4.763
>          Dx :   4.763
>          Lov :  255
>          Lo1 :  240.977
>          La1 :  23.117
>
>       float gridlon_0 ( ygrid_0, xgrid_0 )
>          corners :      ( -119.023, -80.74672, -59.95137, -134.043 )
>          long_name :    longitude
>          grid_type :    Polar Sterographic Projection (North or South)
>          units :        degrees_east
>          Dy :   4.763
>          Dx :   4.763
>          Lov :  255
>          Lo1 :  240.977
>          La1 :  23.117
>
> *Grid 2:*
>       float gridlat_0 ( ygrid_0, xgrid_0 )
>          corners :      ( 20.192, 20.33182, 54.37271, 54.20572 )
>          long_name :    latitude
>          grid_type :    Lambert Conformal (secant, tangent, conical or 
> bipolar)
>          units :        degrees_north
>          Latin2 :       25
>          Latin1 :       25
>          Dy :   2.539702
>          Dx :   2.539703
>          Lov :  265
>          Lo1 :  238.446
>          La1 :  20.192
>
>       float gridlon_0 ( ygrid_0, xgrid_0 )
>          corners :      ( -121.554, -69.20839, -59.04248, -131.9951 )
>          long_name :    longitude
>          grid_type :    Lambert Conformal (secant, tangent, conical or 
> bipolar)
>          units :        degrees_east
>          Latin2 :       25
>          Latin1 :       25
>          Dy :   2.539702
>          Dx :   2.539703
>          Lov :  265
>          Lo1 :  238.446
>          La1 :  20.192
>
> _______________________________________________
> 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/20200429/e9b26e9f/attachment.html>


More information about the ncl-talk mailing list