物探论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 909|回复: 0

[GMT] GMT 经度表示方法差异的问题

[复制链接]
发表于 2013-2-23 10:09:38 | 显示全部楼层 |阅读模式
纬度通常有2中表示方式:0:360和-180:180。如果不注意在使用GMT做数据运算的时候可能出问题。比如gmttrack对地理坐标数据进行采样,如果元数据是0:360这种方法记录的,而采样轨迹数据是-180:180表示的,那么在采样的时候则只能对0:180的部分起到作用,导致结果出错。
对此解决方法是在程序之后添加-fg命令,其解释如下:
Special formatting of input and/or output columns (time or geographical data). Specify i or o to make this apply only to input or output [Default applies to both]. Give one or more columns (or column ranges) separated by commas. Append T (absolute calendar time), t (relative time in chosen  since ), x (longitude), y (latitude), or f (floating point) to each column or column range item. Shorthand −f[i|o]g means −f[i|o]0x,1y (geographic coordinates).
即明确所用数据为地理坐标数据,即使经度表示方法不一样,GMT也可以识别,从而准确的处理数据。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|物探论坛 ( 鄂ICP备12002012号 微信号:iwutan )

GMT+8, 2024-5-6 06:16 , Processed in 0.089790 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表