---
name: "grdcut"
section: "1"
platform: "linux"
package: "gmt-manpages"
version: "3.4-1"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/grdcut"
---

# grdcut(1)

Extract a subregion out of a .grd file

## NAME

grdcut - Extract a subregion out of a *.grd* file

## SYNOPSIS

**grdcut** *input\_file.grd* **-G***output\_file.grd* **-R***west/east/south/north*\[**r**\] \[ **-V** \]

## DESCRIPTION

**grdcut** will produce a new *output\_file.grd* file which is a subregion of *input\_file.grd*. The subregion is specified with **-R***west/east/south/north* as in other programs; the specified range must not exceed the range of *input\_file.grd*. If in doubt, run **grdinfo** to check range. Complementary to **grdcut** there is **grdpaste**, which will join together two grdfiles along a common edge.

- *input\_file.grd*

  this is the input *.grd* format file.

- **-G***output\_file.grd*

  this is the output *.grd* format file.

- **-R**

  *west, east, south,* and *north* specify the Region of interest. To specify boundaries in degrees and minutes \[and seconds\], use the dd:mm\[:ss\] format. Append **r** if lower left and upper right map coordinates are given instead of wesn. This defines the subregion to be cut out.

## OPTIONS

- **-V**

  Selects verbose mode, which will send progress reports to stderr \[Default runs "silently"\].

## EXAMPLES

Suppose you have used **surface** to grid ship gravity in the region between 148E - 162E and 8N - 32N, and you do not trust the gridding near the edges, so you want to keep only the area between 150E - 160E and 10N - 30N, then:

grdcut grav\_148\_162\_8\_32.grd **-G**grav\_150\_160\_10\_30.grd **-R**150/160/10/30 **-V**

## SEE ALSO

*grdpaste*(l), *grdinfo*(l), *gmt*(l)
