PWP wiki processor

GmtMergeGrids

| StartPage | WikiPages | AdditionalFiles |

Merging Two Grid Files in GMT

Merging Two Grid Files in GMT

grdsample A.grd -Rregion -Iresolution -Ghires_A.grd

grdcut A.grd -Rregion -Ghires_A_trimmed.grd

grdmask -Rregion -Iresolution -N1/1/NaN << END -Gclip.grd
x1 y1
x2 y1
x2 y2
x1 y1
END

grdmath B.grd clip.grd MUL = B_clipped.grd

grdmath B_clipped.grd hires_A_trimmed.grd XOR = merged.grd

   (Powered by PWP Version 1-4-3 )