How to get min value from a multisegment file

Added by Federico 8 months ago

I have an ascii table file (with Long Lat Depth) and I want to get only the locations of the deepest points (with long lat depth).

In the file attach (temp_data) I put only two segments. When I run this command I get the minimum value of the first segment repeated. What am I doing wrong? Is this a bug?
I am using the GMT 5.4.3 (r19528) for Windows 64-bit.

gmt info "temp_data" -El -As > "Data_Min_As.txt"

Result that I get:
-58.2047721888 -47.7022402537 -2643.94262448
-58.2047721888 -47.7022402537 -2643.94262448

Correct result:
-58.2047721888 -47.7022402537 -2643.94262448
-58.3207317849 -47.7189670458 -2542.15488367

temp_data - Ascii file (long, lat, depth) (14 KB)


Replies (1)

RE: How to get min value from a multisegment file - Added by Paul 8 months ago

Good one; fixed in r19654 (trunk).

(1-1/1)