Re: extracting polygonal subgrid from a larger grid file using gmtselect

Joaquim Luis <[email protected]>
Newsgroups gmane.comp.gis.gmt.user
Message-ID <[email protected]>
You can use grdmask to create a mask grid from the polygon file and than 
apply that mask to the grid with grdmath

> Dear All,
>
> I'm wondering if there is a way to extract a polygonal region of 
> interest from a grid file. I used gmtselect, but it seems like it 
> selects only a rectangular grid based on minmax values of polygon 
> file. Is there a way to extract a polygonal grid file instead? I use 
> gmt 5.1 with the following command.
>
> gmtselect input.xyz -Fpolygon.xy > output.xyz
>
> Thank you very much and look forward to your response.
>
> Cheers
> To unsubscribe, send the message "signoff gmt-help" to 
> [email protected] 


To unsubscribe, send the message "signoff gmt-help" to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.