From: Chris on
I am having some troubles trying to figure out how to make a mesh. What I have is Lat, Lon, and an observation(numerical). What I am trying to do is create a mesh (300x300) from a 123 data point set. However my problem is that the Lat and Lon's are not sorted and to be put into the function I am using they need to be. I can use griddata to create the mesh of the Lat and Lon's but I just don't know how to incorporate my observations on the 300x300 mesh as well.

Thanks for the help
From: Chris on
I try using griddata to create the evenly spaced mesh for the Lat and Lon then try using it again to output the observation on the evenly spaced mesh but I get NaN for every point.
From: Walter Roberson on
Chris wrote:
> I am having some troubles trying to figure out how to make a mesh. What
> I have is Lat, Lon, and an observation(numerical). What I am trying to
> do is create a mesh (300x300) from a 123 data point set. However my
> problem is that the Lat and Lon's are not sorted and to be put into the
> function I am using they need to be. I can use griddata to create the
> mesh of the Lat and Lon's but I just don't know how to incorporate my
> observations on the 300x300 mesh as well.

Possibly John D'Errico's File Exchange contribution "gridfit" would be useful
to you.