[ncarg-talk] regular grid to tripolar grid
Mary Haley
haley at ucar.edu
Mon Jul 10 07:19:18 MDT 2017
Dear Jiande,
ncarg-talk is for people with NCAR Graphics questions.
For NCL questions, please post to ncl-talk at ucar.edu:
http://www.ncl.ucar.edu/Support/email_lists.shtml
I think you should be able to regrid the tripolar directly to a tripolar
grid. Both tripolar grids are curvilinear, correct? That is, they are
represented by 2D lat/lon grids?
If so, see example #11 at:
http://www.ncl.ucar.edu/Applications/ESMF.shtml#ex11
This example goes from a tripolar to MPAS grid, but I believe you could
modify these lines:
Opt at DstGridLat = latCell ; Destination grid
Opt at DstGridLon = lonCell
Opt at DstGridType = "unstructured"
to:
Opt at DstGridLat = dst_lat ; Destination grid
Opt at DstGridLon = dst_lon
Opt at DstGridType = "curvilinear"
Where dst_lat and dst_lon are the 2D lat/lon grid for the destination
tripolar grid.
You may also want to change this to whatever interpolation method you want
("bilinear" is the default):
Opt at InterpMethod = "patch" ; bilinear, conserve, neareststod,
nearestdtos
If you use "conserve", then you should also provide the grid corners. The
ESMF examples page explains some of this.
Finally, if your source and/or destination grids are regional, you should
also set:
Opt at SrcRegional = True ; if source tripolar is regional
Opt at DstRegional = True ; if destination tripolar is regional
--Mary
On Thu, Jul 6, 2017 at 2:57 PM, Jiande Wang - NOAA Affiliate <
jiande.wang at noaa.gov> wrote:
> Hi,
> I am new to NCL.
> I have a tripolar grid ocean data and want to regrid it to another
> tripolar grid.
> What I plan to do is first regrid the original tripolar grid data to
> regular lat/lon data. Then I will regrid the regular data to new tripolar
> grid.
> I know what to do in the first step, but not clear on how to do in the
> second step.
> Has any one have experience or script on my task?
>
> Your suggestion will be appreciated.
>
> Thanks
> Jiande
>
> _______________________________________________
> ncarg-talk mailing list
> ncarg-talk at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncarg-talk/attachments/20170710/f29f8752/attachment.html
More information about the ncarg-talk
mailing list