{"id":477,"date":"2014-05-12T10:12:38","date_gmt":"2014-05-12T14:12:38","guid":{"rendered":"http:\/\/www.cloppermillweather.org\/blog\/?p=477"},"modified":"2014-05-12T10:12:38","modified_gmt":"2014-05-12T14:12:38","slug":"humidity-fix","status":"publish","type":"post","link":"https:\/\/www.cloppermillweather.org\/blog\/2014\/05\/12\/humidity-fix\/","title":{"rendered":"Humidity Fix"},"content":{"rendered":"<p>My weather data has been flagged as having an issue on the quality checking from CWOP.\u00a0 Specifically, the humidity readings have been too high compared to neighboring stations.\u00a0 I had purchased a replacement humidity sensor chip several months ago, but never had the opportunity to install it.\u00a0 Yesterday that opportunity presented itself.\u00a0 I shut down the station, took it apart enough to get to the old sensor and brought it inside to the workbench.\u00a0 It wasn&#8217;t very difficult to unsolder the old sensor and solder the new one in its&#8217; place.\u00a0 Then I reassembled the station and started it back up.\u00a0 The humidity readings appear to be more reasonable.\u00a0 I&#8217;ll have to wait a few days and see how the quality checking goes.<\/p>\n<p>While i was at it, I modified the code to use System.nanoTime() rather than System.currentTimeMillis() for calculating the wind speed.\u00a0 The reason for the change wasn&#8217;t specifically to gain additional precision (although that is an OK bonus). My concern is that it is possible for the time to be corrected (such as via NTP or by the admin) in the midst of doing the timing for the wind speed.\u00a0 This could cause an incorrect value to be calculated, and has led to readings of wind speeds in excess of 100 mph in some other weather software packages.\u00a0 Mine is most likely susceptible to this bug as well.\u00a0 While this is a rare occurrence and the probability of it happening is slim, the Java recommended method for doing timing is using nanoTime(), which is based on a relative time and is only useful for comparing to other nanoTime() values.\u00a0 Again, I&#8217;ll follow my data for the next few days and see\u00a0 how it looks.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My weather data has been flagged as having an issue on the quality checking from CWOP.\u00a0 Specifically, the humidity readings have been too high compared to neighboring stations.\u00a0 I had purchased a replacement humidity sensor chip several months ago, but &hellip; <a href=\"https:\/\/www.cloppermillweather.org\/blog\/2014\/05\/12\/humidity-fix\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-477","post","type-post","status-publish","format-standard","hentry","category-weather"],"_links":{"self":[{"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/posts\/477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/comments?post=477"}],"version-history":[{"count":0,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/posts\/477\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/media?parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/categories?post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/tags?post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}