Re: Clipping to mask NaN values

Paul Wessel <[email protected]>
Newsgroups gmane.comp.gis.gmt.user
Message-ID <[email protected]>
Probably simplest to use grdcontour -D to get the path you need.  Might be best to turn your grid into 1s and 0s (1 where there is data, 0 elsewhere), e.g.

grdmath yourgrid.nc ISFINITE = tmp.grd
grdcontour tmp.grd -J.. -Dpath -C0.5 -L0.1/0.9

etc.
-p

On Mar 4, 2014, at 5:17 AM, Christian Baillard <[email protected]> wrote:

> Hi,
> 
> I've a .grd file with NaN values in it. I don't want the NaN values to be plotted, using the -Q option works fine on .ps file but when I import it on Illustrator the colormap is altered.
> I know that, sometimes, Illustrator behaves weirdly when importing psfile (Paul already posted a comment on that) so I tried to find a workaround. 
> So what I want to do is using psclip to mask Nan Values. For that, I need to get the xy_path of the edge of my surface (see below) so I can input it into psclip.
> Any idea on how to do that? 
> 
> Regards,
> 
> Christian
> 
> 
> 
> 
> To unsubscribe, send the message "signoff gmt-help" to [email protected]
> <map.pdf>
> 
> 
> 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.