Any way to populate a grid from input vectors?

Is there any existing package to take two input vectors and create a grid (similar to meshgrid) and then output a raster based on a third dimension? Something that recreates roundgridfun.m in Matlab.

Well, GMT.jl has these guys (all 2D gridders)


If you google “meshgrid Julia”, this comes up as the first link: Meshgrid function in Julia

TLDR: yes, there are plenty of examples of meshgrid routines in Julia, e.g. here or better yet LazyGrids.jl, but people generally learn to use broadcasting instead.

1 Like


I think the bin gridders function is what I’m looking for. I was hoping GMT would already have some kind of function for that. Thanks for the assist. I’ll post my code once I figure how to get it working.