Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mask grd files by polygon #40

Open
David-Loibl opened this issue Jun 13, 2018 · 0 comments
Open

Mask grd files by polygon #40

David-Loibl opened this issue Jun 13, 2018 · 0 comments
Assignees
Projects

Comments

@David-Loibl
Copy link
Collaborator

Create a generic script to mask GMT grid files by a polygon provided in a .gmt or .shp file.
Parameters:

  • Input grd file
  • Polygon file
  • Mask inside / mask outside
  • Output grd file
  • Buffer (optional, default 0)

Use GMT grdmask to create a mask grid. Subsequently, use GMT grdmath with the 'INSIDE' operator to set data points inside/outside the mask area to NaN.
Shapefiles should be feasible input polygon files as well and automatically converted to .gmt files with to GDAL ogr2ogr (cf. routine in module 'Create Summary Report').

@David-Loibl David-Loibl self-assigned this Jun 13, 2018
@David-Loibl David-Loibl added this to To Do in OSARIS dev via automation Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
OSARIS dev
  
To Do
Development

No branches or pull requests

1 participant