It's not documented, but Grid has a InterpIrregular type. Works only in 1d.
Check the code in interp.jl for information about how to use it.
--Tim
On Wednesday, September 03, 2014 05:02:30 AM Jude wrote:
> Hi Tim,
>
> Yes, it turns out it was an issue with my computer. I now have it working
> fine.
>
> In any case, I was wondering is there any package or any way I can
> interpolate over an unevenly spaced grid?
>
> Cheers,
> Jude
>
> On Tuesday, September 2, 2014 5:54:41 PM UTC+1, Tim Holy wrote:
> > As it is, this makes no sense. Did you get errors when you said "using
> > Grid"?
> > What happens if you say Pkg.test("Grid"). For that matter, what happens
> > if, in
> > the top-level julia directory, you say "make testall"? It sounds like
> > something is broken.
> >
> > --Tim
> >
> > On Tuesday, September 02, 2014 06:55:10 AM Jude wrote:
> > > Hi Tim,
> > >
> > > I am using Julia v0.3.0 and Grid 0.3.3
> > >
> > > I have tried running with your example code just to see what is going on
> > > and
> > > yi = InterpGrid(y, BCnil, InterpQuadratic) works fine.
> > >
> > > But if I try using z_2di = CoordInterpGrid((x,y), z_2d, BCnil,
> > > InterpQuadratic)
> > > it says ERROR: CoordInterpGrid not defined.
> > >
> > > Moreover, I tried using the InterpGrid command but replacing
> > > InterpQuadratic with InterpLinear and I get a similar error
> > >
> > > ERROR: InterpLinear not defined.
> > >
> > > So I am confused as to why it works fine for InterpQuadratic but not
> > > InterpLinear and why CoordInterpGrid doesn't work at all!
> > >
> > > Thanks!
> > > Jude
> > >
> > > On Tuesday, September 2, 2014 2:29:45 PM UTC+1, Tim Holy wrote:
> > > > It's hard to say what's happening without more detail. Can you give us
> >
> > an
> >
> > > > explicit example of the commands you're trying to run? Also, what
> >
> > version
> >
> > > > of
> > > > Julia are you using, and what version of Grid does Pkg.status()
> >
> > report?
> >
> > > > --Tim
> > > >
> > > > On Tuesday, September 02, 2014 04:21:59 AM Jude wrote:
> > > > > Hi,
> > > > >
> > > > > I want to use interpolation and have downloaded the Grid package but
> >
> > for
> >
> > > > > some reason it won't allow me to use CoordInterpGrid. It works fine
> >
> > if I
> >
> > > > > use interpGrid but when I try CoordIntepGrid it says ERROR:
> > > > > CoordInterpGrid not defined. Does anyone know why this is and how I
> > > >
> > > > might
> > > >
> > > > > get CoordInterpGrid to work? I have even tried it using the example
> > > > > provided by Tim Holy to make sure it was not a mistake of syntax but
> >
> > it
> >
> > > > > still does not work. Any help would be really appreciated!
> > > > >
> > > > > Cheers,
> > > > > Jude