1D sampling of a non-monotonically increasing/decreasing track file. i.e., a meandering ship track
I am extracting Bathymetry from GEBCO/IBCAO based on a
meandering ship track. The track file is in lat/lon
co-ordinates. I use grdtrack to get the Bathy data along the
track and mapproject to get the along track distances.
This is all working fine and I can plot a nice X-Y plot of
distance from start vs depth. But I want to sample regularly
along the track, say every 1 km, rather than just where I have
I thought I should be using be using sample1d to carve up my
track file in regular units but my track is meandering. Sample1d
demands the data be monotonically increasing/decreasing but my
track is meandering. Note for example 2nd column line 3 cf with line 4:
I'm not sure what to try next. I can mapproject to get x,y for my
track...but I still don't know what tool to use to resample to
regular spacing along track.
RE: 1D sampling of a non-monotonically increasing/decreasing track file. i.e., a meandering ship track - Added by Joaquim about 1 month ago
You have to compute the accumulated distance along the track (with mapproject) and use it as the monotonically increasing variable.
RE: 1D sampling of a non-monotonically increasing/decreasing track file. i.e., a meandering ship track - Added by Rob about 1 month ago
Perfect. Yes, that makes complete sense. I did what you suggested and I have exactly what I want.