# [ncl-talk] triple2grid

Dennis Shea shea at ucar.edu
Fri Aug 8 08:05:27 MDT 2014

```Try:

http://www.ncl.ucar.edu/Document/Functions/Contributed/obj_anal_ic_Wrap.shtml

rscan = (/10, 5, 2/)   ; play with these
grid = *obj_anal_ic*
<http://www.ncl.ucar.edu/Document/Functions/Contributed/obj_anal_ic.shtml>(zlon,zlat,zVal,
lon,lat, rscan, False)

Good luck

On Thu, Aug 7, 2014 at 3:56 PM, Manisha Ganeshan <
manisha.ganeshan86 at gmail.com> wrote:

> Hello,
>
> I'm trying to use the *natgrid* function in a manner similar to the
> *triple2grid*, i.e. basically to interpolate onto a lat lon grid. In my
> case, the advantage of the *natgrid* function over *triple2grid* is that
> multiple neighborhood (randomly spaced) observations can be utilized for
> interpolating onto a map.
> I figured I will have to convert the lat lon coordinates to 1D cartesian
> (X,Y) coordinates in order to use *natgrid*. This is however easier said
> than done, because my map domain is over the north pole (60 to 90 N), which
> means my *xo* and *yo* (output X, Y grid dimensions) will have to be 2D.
> *natgrid* currently requires 1D arrays for the same. Any suggestions for
> a work around?
>
> Thanks,
> Nisha
>
>
> On Mon, Aug 4, 2014 at 9:17 AM, Dennis Shea <shea at ucar.edu> wrote:
>
>> Not that I am aware of. Sorry.
>>
>>
>> On Fri, Aug 1, 2014 at 4:10 PM, Manisha Ganeshan <
>> manisha.ganeshan86 at gmail.com> wrote:
>>
>>> Thanks, Dennis. Is there a function that calculates the mean or saves
>>> the total number of nearest neighbor source points for each grid point in
>>> the destination grid?
>>>
>>> Regards,
>>> Nisha
>>>
>>>
>>> On Fri, Aug 1, 2014 at 6:03 PM, Dennis Shea <shea at ucar.edu> wrote:
>>>
>>>> It does not calculate the mean. New 'nearest neighbor' values overwrite
>>>> previous values.
>>>>
>>>>
>>>> On Fri, Aug 1, 2014 at 3:59 PM, Manisha Ganeshan <
>>>> manisha.ganeshan86 at gmail.com> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I have a question about the *triple2grid* function. The description
>>>>> says that the function does not perform interpolation but instead assigns
>>>>> each unstructured (source) data point to the nearest grid point
>>>>> (destination). How does it treat multiple unstructured data points (source)
>>>>> that have a common nearest grid point (destination)? Does it calculate the
>>>>> mean value (after ignoring missing values)?
>>>>>
>>>>> Thanks,
>>>>> Nisha
>>>>>
>>>>> _______________________________________________
>>>>> ncl-talk mailing list
>>>>> 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/20140808/7ee253eb/attachment.html
```