After the cut and using grdinfo on pacific_bathy.grd x_min: -161 x_max: -149 _bathy.grd: y_min: -41 y_max: -29
The dimensions are corrected but for the gravity grdinfo cut_grav.grd x_min: -161.015625 x_max: -148.974609375 y_min: -41.0120187891 y_max: -28.988271151
I don’t quite understand why the dimensions are different.
Then I would like to: gmt gravfft pacific_bathy.grd -D1665 -Gwater_g.grd -E4 gmt grdmath cut_grav.grd water_g.grd SUB = bouguer.grd gmt grdimage bouguer.grd
You are absolutely right @EJFielding I missed it. The bathymetry is in pixel node registration while the gravity is in gridline node registration. Somehow use psconvert to convert the grid to pixel?
Thank you so much this is very helpful @Andreas@pwessel I will use a bathymetry grid with the gravity grid so I don’t need to toggle through the registration. If I can ask another question, when using grdmath I get the error grdmath [ERROR]: grid files not of same size! Is there a way to use grdsample so the grids are the same size?