Mapping toolbox: irregular measured geo referenced data into regular grid

1 view (last 30 days)
Hi,
I have data of format [long,lat,data] with irregular distance along a track. Is there a way to create a regular grid e.g. 5m squares averaging my irregular data within each grid point using the Mapping toolbox?
Grateful for any advice!

Answers (2)

Bjorn Gustavsson
Bjorn Gustavsson on 9 May 2022
"5m" sounds like a reasonably small region of data? If so, local topography might be more important than the curvature of Earth. Then you might use some local horizontal cartesian coordinates, or UTM, and use scatteredInterpolant, or griddata and then convert back to lat-long.
Come to think about it might can use scatteredInterpolant on the 3-D ECEF coordinates - though I'm not sure how well that would work.
HTH

KSSV
KSSV on 9 May 2022
Edited: KSSV on 9 May 2022
You can interpolate the data into a regular grid. Read about interp2

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!