Re: calculate the mean(middle) of points with the format dd:mm:ss.x
Namba Takaya <[email protected]>
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <[email protected]> |
Dear Eduardo Thank you very much for your help.I made it using --OUTPUT_DEGREE_FORMAT=ddd:mm:ss.x in stead of --FORMAT_GEO_OUT='+ddd:mm:ss.x' because I use ver.4 GMT. regards, takaya > Date: Tue, 10 Dec 2013 01:21:41 -0300 > From: [email protected] > Subject: Re: [GMT-HELP] calculate the mean(middle) of points with the format dd:mm:ss.x > To: [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] To unsubscribe, send the message "signoff gmt-help" to [email protected]