{"id":596,"date":"2021-01-18T12:38:12","date_gmt":"2021-01-18T11:38:12","guid":{"rendered":"https:\/\/sigeo.cerege.fr\/?p=596"},"modified":"2021-01-18T12:41:37","modified_gmt":"2021-01-18T11:41:37","slug":"gps-time","status":"publish","type":"post","link":"https:\/\/sigeo.cerege.fr\/?p=596","title":{"rendered":"GPS time"},"content":{"rendered":"\n<p>GPS time system (recording the absolute number of seconds since the start of the GPS epoch at midnight on January 6th 1980)<\/p>\n\n\n\n<p>Sometimes GPS time is given with an offset (e.g. 1000000000), in this case the 0 value corresponds to 2011\/09\/14 at 01:46:25 UTC. <\/p>\n\n\n\n<p>Note also that POSIX (Unix) time is given since Jan 1st, 1970, 00:00:00 UTC. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">convert to date<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>835734.87 6250812.50 -3.04 20 0 57560982<br>835734.88 6250296.85 -8.16 30 0 46351553<br>835734.88 6250476.48 -6.97 30 0 57559145<\/p><cite>example of gps dataset<\/cite><\/blockquote>\n\n\n\n<p>The gps epoch is in the sixth field, and the values are offset by 1 billion. To convert to date one can use Python. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>>>> import datetime\n>>> datetime.date.fromtimestamp(1315964785) #posix time of the GPS epoch including the 1 billion offset\ndatetime.date(2011, 9, 14)\n>>> datetime.date.fromtimestamp(1315964782+57560982) # gps time of the dataset + the posix time\ndatetime.date(2013, 7, 11)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GPS time system (recording the absolute number of seconds since the start of the GPS epoch at midnight on January 6th 1980) Sometimes GPS time is given with an offset (e.g. 1000000000), in this case the 0 value corresponds to 2011\/09\/14 at 01:46:25 UTC. Note also that POSIX (Unix) time is given since Jan 1st, &hellip; <a href=\"https:\/\/sigeo.cerege.fr\/?p=596\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;GPS time&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,1],"tags":[],"class_list":["post-596","post","type-post","status-publish","format-standard","hentry","category-gps","category-sigeo"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/posts\/596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=596"}],"version-history":[{"count":3,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/posts\/596\/revisions"}],"predecessor-version":[{"id":599,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/posts\/596\/revisions\/599"}],"wp:attachment":[{"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}