{"id":247,"date":"2015-03-15T13:14:42","date_gmt":"2015-03-15T11:14:42","guid":{"rendered":"http:\/\/tuijasonkkila.fi\/?p=247"},"modified":"2024-09-20T13:22:47","modified_gmt":"2024-09-20T10:22:47","slug":"birds-on-a-map","status":"publish","type":"post","link":"https:\/\/tuijasonkkila.fi\/?p=247","title":{"rendered":"Birds on a map"},"content":{"rendered":"<p><a href=\"http:\/\/atlas3.lintuatlas.fi\/english\/\">Lintuatlas<\/a> aka Finnish Breeding Bird Atlas is the flagship of longitudinal observations on avian fauna in Finland. And it&#8217;s not just one atlas but many. The first covers years 1974-79, second 1986-89, and third 2006\u20132010. Since February this year, <a href=\"https:\/\/www.avoindata.fi\/data\/en\/dataset\/lintuatlas\">the data from the first ones are open<\/a>. Big news, and asks for an experiment on how to make use of the data.<\/p>\n<p>One of the main ideas behind the Atlases is to give a tool for comparison, to visualize possible shifts in the population. I decided to do a simple old-school web app, a snapshot from a given species: select, and see observations plotted on a map.<\/p>\n<p>The hardest part in the data were the coordinates. How to transform the KKJ Uniform Coordinate System values to something that a layman like me finds more familiar, like ETRS89? After a few hours of head-banging, I had to turn to the data provider. Thanks to advice from <a href=\"https:\/\/twitter.com\/mikkohei13\">Mikko Heikkinen<\/a>, the wizard behind many a nature-related web application in this country &#8211; including the Atlas pages &#8211; the batch transformation was easy. <a href=\"http:\/\/ws.luomus.fi\/util\/coordinate-mass-conversion\">Excellent service!<\/a>.<\/p>\n<p><a href=\"https:\/\/tuijasonkkila.fi\/wp-content\/uploads\/2015\/03\/heikkinen.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tuijasonkkila.fi\/wp-content\/uploads\/2015\/03\/heikkinen-300x126.png\" alt=\"advice on Lintuatlas coordinates\" class=\"alignnone size-medium wp-image-250\" width=\"300\" height=\"126\" srcset=\"https:\/\/tuijasonkkila.fi\/wp-content\/uploads\/2015\/03\/heikkinen-300x126.png 300w, https:\/\/tuijasonkkila.fi\/wp-content\/uploads\/2015\/03\/heikkinen.png 618w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>All that was left was few joins between the datasets, and data was ready for an interactive R Shiny application. To reflect the reliability of observations on one particular area (scale from 1 to 4), I used four data classes from the <a href=\"http:\/\/colorbrewer2.org\/\">PuBu ColorBrewer scheme<\/a> to color the circles.<\/p>\n<p>The application is <a href=\"https:\/\/ttso.shinyapps.io\/lintuatlas\/\">here<\/a>, and <a href=\"https:\/\/gist.github.com\/tts\/924b764e7607db5d0a57\">the code<\/a> for those of you more inclined to R.<\/p>\n<p>Note that the application is on a <del datetime=\"2015-09-01T11:09:18+00:00\">freemium<\/del> Basic account of shinyapps.io so I cannot guarantee its availability. There is a monthly <del datetime=\"2015-09-01T11:09:18+00:00\">25<\/del> 500 hour use limit.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lintuatlas aka Finnish Breeding Bird Atlas is the flagship of longitudinal observations on avian fauna in Finland. And it&#8217;s not just one atlas but many. The first covers years 1974-79, second 1986-89, and third 2006\u20132010. Since February this year, the data from the first ones are open. Big news, and asks for an experiment on &hellip; <a href=\"https:\/\/tuijasonkkila.fi\/?p=247\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Birds on a map<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149],"tags":[85,91,13,7],"class_list":["post-247","post","type-post","status-publish","format-standard","hentry","category-diverse-coding","tag-leaflet","tag-lintuatlas","tag-r","tag-shiny"],"_links":{"self":[{"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=\/wp\/v2\/posts\/247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=247"}],"version-history":[{"count":10,"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=\/wp\/v2\/posts\/247\/revisions"}],"predecessor-version":[{"id":978,"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=\/wp\/v2\/posts\/247\/revisions\/978"}],"wp:attachment":[{"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}