[ncl-talk] [ncarg-talk] regular grid to tripolar grid

Mary Haley haley at ucar.edu
Mon Jul 10 14:08:32 MDT 2017


Jiande,

You may also want to look at some ESMF regridding templates we have:

http://www.ncl.ucar.edu/Applications/Templates/#ESMFRegriddingTemplates

In particular, the "ESMF_curv_to_curv.ncl" one, which is a generic one for
going from one curvilinear grid to another.

--Mary


On Mon, Jul 10, 2017 at 9:40 AM, Jiande Wang <jiande.wang at noaa.gov> wrote:

> Mary:
>
>   Thanks for your information.
>
>   I realized that I should post my question on ncl-talk instead of
> ncard-talk later. This is my first time to use ncl forum.
>
>   The source and destination data are all represented in 2D lat/lon. I
> will take a close look on the example and take a try.
>
>
> Cheers,
>
> Jiande
>
>
>
> On 7/10/2017 9:19 AM, Mary Haley wrote:
>
> 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/ncl-talk/attachments/20170710/dda43b20/attachment.html 


More information about the ncl-talk mailing list