Re: calculate the mean(middle) of points with the format dd:mm:ss.x

"Eduardo A. Suárez" <[email protected]>
Newsgroups gmane.comp.gis.gmt.user
Message-ID <[email protected]>
Hi Takaya,

put your values in a 1-column data file, and then:

gmtmath -fg -S -T your_file MEAN = --FORMAT_GEO_OUT='+ddd:mm:ss.x'

BTW, If you someday read gmtmath man page, there is an example of this  
kind of calculation using MODE instead of MEAN.

Eduardo.-


Quoting Namba Takaya <[email protected]>:

> Dear Sir
> I would like to calculate the mean(middle) of points such as polygon  
>  with the format dd:mm:ss.x by GMT command.
> For example, this is data of longitudes as below and I wish to   
> calculate the mean of all the longitudes by GMT.
> 04:14:36.004:23:33.604:34:52.504:14:27.004:14:10.5...............
> regards,
> takaya



-- 
Eduardo A. Suarez
Facultad de Ciencias Astronómicas y Geofísicas - UNLP
FCAG: (0221)-4236593 int. 172/Cel: (0221)-15-4557542/Casa: (0221)-4526589


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

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.