{"id":1966,"date":"2017-11-06T05:36:37","date_gmt":"2017-11-06T05:36:37","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=1966"},"modified":"2022-02-03T11:24:28","modified_gmt":"2022-02-03T17:24:28","slug":"dealing-double-precision-applanix-data-times-links-make-work","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/","title":{"rendered":"Dealing with Double Precision Applanix data times &#8211; all the links to make it work"},"content":{"rendered":"<p>I was asked to look into why 1 of 3 parts of data was 6 days earlier than the other 2 parts. Well it turned out to NOT be IGES data &#8211; but it was raw binary data dumps from a LiDAR system. The data was <a href=\"ftp:\/\/nic2b.whoi.edu\/pub\/instruments\/posmv\/info_from_knorr\/POSMV_320_V3_Ethernet_SCSI_ICD_V2_10.pdf\">Applanix proprietary data format<\/a> that is likely written the way it is to allow high speed data writing. First, all the data is bound by $GRPXX and $# where XX is a hex group code. To undo all the data and make some sense of the time stamps it took an awful lot of digging. Here are the links and learning I found.<!--more--><\/p>\n<p>Here is the header data &#8211; the $GRP[XX][LL][T1][T2] which $GRP (4 bytes) XX=datatype or group code (2bytes), LL is the packet length (2 bytes), T1 (8bytes double <a href=\"https:\/\/en.wikipedia.org\/wiki\/IEEE_754\">IEEE744<\/a> format) \u00a0is the 1st time stamp and T2 is the 2nd timestamp (8 byte IEEE744 format) . Here is the hex for this.<\/p>\n<p>2447 5250 0400 3c00 2bca ed97 0928 2241 2bca ed97 2d28 2241<\/p>\n<p>What is most annoying but understandable is that everything is reversed when it needs to be. 2447 5250 = $GRP (not reversed) , 0004 is the group code (note it is reversed) , 3c00 is the length (not sure if it is reversed) 4122280997edca2b is the BYTE reversed T1 timestamp in IEE 744 format. To get the decimal value from the hex- go to this <a href=\"http:\/\/www6.uniovi.es\/~antonio\/uned\/ieee754\/IEEE-754hex64.html\">website to convert it<\/a>\u00a0(<a href=\"http:\/\/www.binaryconvert.com\/convert_double.html?hexadecimal=2BCAED9709282241\">or this<\/a>) and it is in seconds from the last time the machine was (re)started. To see what seconds might look like in days, hours, seconds &#8211; <a href=\"https:\/\/www.epochconverter.com\">we use this website.<\/a>\u00a0To <a href=\"http:\/\/www.rapidtables.com\/convert\/number\/hex-to-decimal.htm\">convert hex\/bin\/dec all ways I used this website<\/a>.<\/p>\n<p>There is some <a href=\"http:\/\/www.gpsinformation.org\/dale\/nmea.htm\">NMEA<\/a> GPS and <a href=\"http:\/\/xenon.colorado.edu\/rinex.html\">RINEX<\/a> data embedded but that was not necessary to decompose it. IF we need to convert etc. the data from any of these formats &#8211; the teqc tool and <a href=\"http:\/\/www.rtklib.com\">RTKLIB<\/a> will help.<\/p>\n<p>Did you know that there are many time &#8220;0&#8217;s&#8221;? .NET uses Jan 1, 0001, there is Jan 1, 1970, Jan 6, 1980 etc. <a href=\"http:\/\/www.leapsecond.com\/java\/gpsclock.htm\">Weird &#8211; check this sites out.\u00a0<\/a>\u00a0T<a href=\"https:\/\/www.timeanddate.com\/date\/timeduration.html\">o get time differences &#8211; use this website<\/a>\u00a0(most handiest of web tools).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was asked to look into why 1 of 3 parts of data was 6 days earlier than the other 2 parts. Well it turned out to NOT be IGES data &#8211; but it was raw binary data dumps from a LiDAR system. The data was Applanix proprietary data format that is likely written the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1966","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Dealing with Double Precision Applanix data times - all the links to make it work - ELB Solutions.com Inc.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dealing with Double Precision Applanix data times - all the links to make it work - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"I was asked to look into why 1 of 3 parts of data was 6 days earlier than the other 2 parts. Well it turned out to NOT be IGES data &#8211; but it was raw binary data dumps from a LiDAR system. The data was Applanix proprietary data format that is likely written the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-06T05:36:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:24:28+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/dealing-double-precision-applanix-data-times-links-make-work\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/dealing-double-precision-applanix-data-times-links-make-work\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"Dealing with Double Precision Applanix data times &#8211; all the links to make it work\",\"datePublished\":\"2017-11-06T05:36:37+00:00\",\"dateModified\":\"2022-02-03T17:24:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/dealing-double-precision-applanix-data-times-links-make-work\\\/\"},\"wordCount\":357,\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/dealing-double-precision-applanix-data-times-links-make-work\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/dealing-double-precision-applanix-data-times-links-make-work\\\/\",\"name\":\"Dealing with Double Precision Applanix data times - all the links to make it work - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2017-11-06T05:36:37+00:00\",\"dateModified\":\"2022-02-03T17:24:28+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/dealing-double-precision-applanix-data-times-links-make-work\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/dealing-double-precision-applanix-data-times-links-make-work\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/dealing-double-precision-applanix-data-times-links-make-work\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dealing with Double Precision Applanix data times &#8211; all the links to make it work\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dealing with Double Precision Applanix data times - all the links to make it work - ELB Solutions.com Inc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/","og_locale":"en_US","og_type":"article","og_title":"Dealing with Double Precision Applanix data times - all the links to make it work - ELB Solutions.com Inc.","og_description":"I was asked to look into why 1 of 3 parts of data was 6 days earlier than the other 2 parts. Well it turned out to NOT be IGES data &#8211; but it was raw binary data dumps from a LiDAR system. The data was Applanix proprietary data format that is likely written the [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2017-11-06T05:36:37+00:00","article_modified_time":"2022-02-03T17:24:28+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"Dealing with Double Precision Applanix data times &#8211; all the links to make it work","datePublished":"2017-11-06T05:36:37+00:00","dateModified":"2022-02-03T17:24:28+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/"},"wordCount":357,"articleSection":["General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/","url":"https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/","name":"Dealing with Double Precision Applanix data times - all the links to make it work - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2017-11-06T05:36:37+00:00","dateModified":"2022-02-03T17:24:28+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/dealing-double-precision-applanix-data-times-links-make-work\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"Dealing with Double Precision Applanix data times &#8211; all the links to make it work"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=1966"}],"version-history":[{"count":6,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1966\/revisions"}],"predecessor-version":[{"id":1972,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1966\/revisions\/1972"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=1966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=1966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=1966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}