{"id":3260,"date":"2021-08-24T21:22:58","date_gmt":"2021-08-24T09:22:58","guid":{"rendered":"http:\/\/blogs.lincoln.ac.nz\/gis\/?p=3260"},"modified":"2021-08-24T21:22:58","modified_gmt":"2021-08-24T09:22:58","slug":"jacindas-heat-map","status":"publish","type":"post","link":"https:\/\/blogs.lincoln.ac.nz\/gis\/jacindas-heat-map\/","title":{"rendered":"Jacinda&#8217;s Heat Map"},"content":{"rendered":"<p><em>We look at recent heat maps in the news and work with some publicly available Ministry of Health data on Covid.<\/em><\/p>\n<p>In a recent Covid-19 update, the Prime Minister showed us a &#8220;heat map&#8221; of Covid-19 contacts.<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/JacindaHeatMap.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3261\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/JacindaHeatMap.jpg\" alt=\"\" width=\"700\" height=\"438\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/JacindaHeatMap.jpg 700w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/JacindaHeatMap-300x188.jpg 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>Be still my beating heart!\u00a0 Maps to the rescue!\u00a0 Imagine if she had read out a list of all those locations?\u00a0 No nearly the same impact, I would argue.\u00a0 I have to admit that my first thought was that that wasn&#8217;t a heat map per se, so I tried to dig a bit deeper.\u00a0 The map (or rather an image of the map) turned up on Stuff the next day:<\/p>\n<figure id=\"attachment_3263\" aria-describedby=\"caption-attachment-3263\" style=\"width: 745px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.stuff.co.nz\/national\/health\/coronavirus\/300389854\/covid19-heat-map-shows-spread-of-close-contacts-isolating-across-new-zealand\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3263\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/HeatMap-1.jpg\" alt=\"\" width=\"745\" height=\"851\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/HeatMap-1.jpg 745w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/HeatMap-1-263x300.jpg 263w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/a><figcaption id=\"caption-attachment-3263\" class=\"wp-caption-text\"><span style=\"font-size: 8pt\"><em>https:\/\/www.stuff.co.nz\/national\/health\/coronavirus\/300389854\/covid19-heat-map-shows-spread-of-close-contacts-isolating-across-new-zealand<\/em><\/span><\/figcaption><\/figure>\n<p>Let&#8217;s be very clear about what this map shows.\u00a0 These are the locations where close contacts are self-isolating &#8211; NOT where cases have been found.\u00a0 As I said above, my first impression was that this wasn&#8217;t a true heat map but more something just showing locations.\u00a0 Upon seeing this image, I felt that, yes, this was probably a heat map, albeit a fairly simple one.<\/p>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Heat_map\" target=\"_blank\" rel=\"noopener noreferrer\">Heat maps<\/a> are good at showing spatial intensities of a phenomenon.\u00a0 Ages ago we saw one used to show the distribution of <a href=\"http:\/\/blogs.lincoln.ac.nz\/gis\/2016\/03\/16\/fun-with-cholera\/\" target=\"_blank\" rel=\"noopener noreferrer\">Cholera cases<\/a> in 1850s London:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3264\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/CholeraHotSpots.jpg\" alt=\"\" width=\"1361\" height=\"725\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/CholeraHotSpots.jpg 1361w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/CholeraHotSpots-300x160.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/CholeraHotSpots-1024x545.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/CholeraHotSpots-768x409.jpg 768w\" sizes=\"auto, (max-width: 1361px) 100vw, 1361px\" \/><\/p>\n<p>You could use a heat map to show something like crimes, amongst others, to more easily pick out places with higher or lower levels of crime, like this:<\/p>\n<figure id=\"attachment_3265\" aria-describedby=\"caption-attachment-3265\" style=\"width: 512px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3265 size-full\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/unnamed.jpg\" alt=\"\" width=\"512\" height=\"323\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/unnamed.jpg 512w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/unnamed-300x189.jpg 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><figcaption id=\"caption-attachment-3265\" class=\"wp-caption-text\"><span style=\"font-size: 8pt\"><em>https:\/\/giscrimemap.com\/spatial-analysis\/hot-spot-mapping\/<\/em><\/span><\/figcaption><\/figure>\n<p>The MOE map\u00a0is a much more low-key heat map &#8211; the depth of colour relates to density of contacts &#8211; light colours (e.g. on the West Coast) relate to low density while deeper blues signify higher densities (Tamaki Makaurau north anyone?).<\/p>\n<p>(<em>Ed. shouldn&#8217;t we say something about the choice of colours?\u00a0 Why not use a standard green-orange-red stoplight schema?\u00a0 Eh?<\/em>)<\/p>\n<p>It&#8217;s a fairly limited colour palate, three at most (and likely only two) but it does clearly show 1) the geographic spread of contacts, and 2) areas where there are\u00a0high densities of contacts.\u00a0 While it doesn&#8217;t give us any magnitudes, it&#8217;s pretty effective at reminding us that we can not be complacent about Delta.\u00a0 We&#8217;ll be very lucky if those contacts turn out to be negative.<\/p>\n<p>So I&#8217;m presuming that each of those points on the map relates to a contact, or a group of contacts.\u00a0 We&#8217;ll probably never see a version of that as a webmap or freely available data because of privacy issues, and rightfully so.\u00a0 What we can get our hands on, though, is the list of &#8220;locations of interest&#8221; from the <a href=\"https:\/\/www.health.govt.nz\/our-work\/diseases-and-conditions\/covid-19-novel-coronavirus\/covid-19-health-advice-public\/contact-tracing-covid-19\/covid-19-contact-tracing-locations-interest\/covid-19-contact-tracing-locations-interest-map\" target=\"_blank\" rel=\"noopener noreferrer\">Ministry of Health&#8217;s<\/a> website:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3268\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/locations2.jpg\" alt=\"\" width=\"1069\" height=\"805\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/locations2.jpg 1069w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/locations2-300x226.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/locations2-1024x771.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/locations2-768x578.jpg 768w\" sizes=\"auto, (max-width: 1069px) 100vw, 1069px\" \/><\/p>\n<p>Sure looks like someone was on a road trip to Wellington&#8230;\u00a0 Clicking on a point gives us more detail about that location:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3267\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Popup.jpg\" alt=\"\" width=\"557\" height=\"542\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Popup.jpg 557w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Popup-300x292.jpg 300w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/p>\n<p>My guess about how these points came to life was that some human collected data on each location, including the address, which was then <a href=\"http:\/\/blogs.lincoln.ac.nz\/gis\/2015\/03\/04\/the-spatial-smoking-gun-part-1\/\" target=\"_blank\" rel=\"noopener noreferrer\">geocoded <\/a>and mapped.\u00a0 There&#8217;s an intriguing piece of clickable text at the bottom of this map:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3269\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/flie.jpg\" alt=\"\" width=\"501\" height=\"43\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/flie.jpg 501w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/flie-300x26.jpg 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/p>\n<p>We&#8217;ve talked a little about <a href=\"http:\/\/blogs.lincoln.ac.nz\/gis\/2021\/07\/23\/json-and-the-argonauts\/\" target=\"_blank\" rel=\"noopener noreferrer\">JSON <\/a>files previously &#8211; they are light-weight, sort of human readable text files for transferring data, sometimes spatial data.\u00a0 If I click that link and open it in a new tab, I can see the contents of the file:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3270\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/browse.jpg\" alt=\"\" width=\"1882\" height=\"356\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/browse.jpg 1882w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/browse-300x57.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/browse-1024x194.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/browse-768x145.jpg 768w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/browse-1536x291.jpg 1536w\" sizes=\"auto, (max-width: 1882px) 100vw, 1882px\" \/><\/p>\n<p>Lots of gobbledygook, yes, (and this is only one small part) but with a little bit of time we can make some sense of it.<\/p>\n<p>The file opens with a curly bracket.\u00a0 The &#8220;type&#8221; tells us what kind of data it contains (features) and the file name is repeated next.\u00a0 Inside the square brackets\u00a0are the data associated with each point: its name, address, city&#8230;all those entries we saw in the pop up window above, and finally the spatial payoff:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3271\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/coords.jpg\" alt=\"\" width=\"666\" height=\"28\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/coords.jpg 666w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/coords-300x13.jpg 300w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/p>\n<p>These are the coordinates of the point (in <a href=\"http:\/\/blogs.lincoln.ac.nz\/gis\/2021\/08\/20\/whats-so-primo-about-the-prime-meridian\/\" target=\"_blank\" rel=\"noopener noreferrer\">longitude and latitude<\/a> respectively) which we can use for mapping.\u00a0 How do we do this?\u00a0 From the browser tab, I can save this file, changing its extension to &#8220;.json&#8221;, and then use the <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/tool-reference\/conversion\/json-to-features.htm\" target=\"_blank\" rel=\"noopener noreferrer\">JSON to Feature<\/a> tool (I can&#8217;t add the JSON file directly to the map but the tool honours it):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3272\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Pro.jpg\" alt=\"\" width=\"1538\" height=\"741\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Pro.jpg 1538w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Pro-300x145.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Pro-1024x493.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Pro-768x370.jpg 768w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Pro-1536x740.jpg 1536w\" sizes=\"auto, (max-width: 1538px) 100vw, 1538px\" \/><\/p>\n<p>Clicking <span style=\"color: #0000ff\"><strong>Run<\/strong><\/span> gets me the points on the map:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3273\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Points.jpg\" alt=\"\" width=\"1381\" height=\"741\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Points.jpg 1381w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Points-300x161.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Points-1024x549.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2021\/08\/Points-768x412.jpg 768w\" sizes=\"auto, (max-width: 1381px) 100vw, 1381px\" \/><\/p>\n<p>I could use these now to create my own heat map of locations of interest, which I&#8217;ll leave for you as a homework task.<\/p>\n<p>We&#8217;re very much in the territory of pictures telling a thousand words with these maps.\u00a0 For many, this would be an easier way to decide if it&#8217;s time for a Covid test or not.\u00a0 There are enough points on this map already; let&#8217;s hope they don&#8217;t multiply.<\/p>\n<p>Don&#8217;t forget to scan!<\/p>\n<p>C<\/p>\n<p>&nbsp;    \t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We look at recent heat maps in the news and work with some publicly available Ministry of Health data on Covid. In a recent Covid-19 update, the Prime Minister showed us a &#8220;heat map&#8221; of Covid-19 contacts. Be still my beating heart!\u00a0 Maps to the rescue!\u00a0 Imagine if she had read out a list of [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3260","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/3260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/comments?post=3260"}],"version-history":[{"count":0,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/3260\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/media?parent=3260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/categories?post=3260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/tags?post=3260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}