{"id":4296,"date":"2023-09-14T04:46:26","date_gmt":"2023-09-14T04:46:26","guid":{"rendered":"https:\/\/blogs.lincoln.ac.nz\/gis\/?p=4296"},"modified":"2023-09-14T04:46:27","modified_gmt":"2023-09-14T04:46:27","slug":"the-heights-of-folly","status":"publish","type":"post","link":"https:\/\/blogs.lincoln.ac.nz\/gis\/the-heights-of-folly\/","title":{"rendered":"The Heights of Folly"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"447\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clearcut-1024x447.jpg\" alt=\"\" class=\"wp-image-4299\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clearcut-1024x447.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clearcut-300x131.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clearcut-768x335.jpg 768w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clearcut.jpg 1243w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I won&#8217;t say I&#8217;m a great fan of clear cutting but I suppose some may find this image inspiring (from a recent walk to the <a href=\"https:\/\/www.doc.govt.nz\/parks-and-recreation\/places-to-go\/canterbury\/places\/banks-peninsula-area\/things-to-do\/huts\/packhorse-hut\/\" target=\"_blank\" rel=\"noreferrer noopener\">Sign of the Packhorse<\/a>).  We start with this as it will later help to illustrate some of the analysis the GIS courses have been doing lately.  We&#8217;ve been spending a bit of time with LiDAR data; more specifically, we&#8217;ve been looking at how to use data like these to determine the amount of tree cover within a given area, along the lines of what the Auckland Council did a few years ago with mapping the urban forest in the Waitemata Local Board area, an example of which is shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"530\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Waitemata.jpg\" alt=\"\" class=\"wp-image-4300\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Waitemata.jpg 842w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Waitemata-300x189.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Waitemata-768x483.jpg 768w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" \/><\/figure>\n\n\n\n<p>Here they&#8217;ve used LiDAR data to map vegetation greater than 3 m in height at high resolution, down to individual trees in some cases.  We aimed to recreate this analysis for various places across the motu.<\/p>\n\n\n\n<p>As <a rel=\"noreferrer noopener\" href=\"https:\/\/blogs.lincoln.ac.nz\/gis\/lidar-data-thousands-of-tiny-luminous-spheres\/\" data-type=\"post\" data-id=\"1164\" target=\"_blank\">you may recall<\/a>, LiDAR data give us high-resolution elevation data as a cloud of points, with these points often spaced around 0.5 m apart across large areas.  These data have transformed a lot of what we can do <a rel=\"noreferrer noopener\" href=\"https:\/\/blogs.lincoln.ac.nz\/gis\/viva-la-resolution\/\" data-type=\"post\" data-id=\"3644\" target=\"_blank\">analysis-wise<\/a>, and this is just one small taste of it.  While the main benefit of LiDAR is elevation, depending on how the data are processed, we can also identify specific types of features on the ground.  Amongst the wide variety of <a href=\"https:\/\/desktop.arcgis.com\/en\/arcmap\/latest\/manage-data\/las-dataset\/lidar-point-classification.htm\" target=\"_blank\" rel=\"noreferrer noopener\">possible codes<\/a>, points can be classified into things like vegetation, buildings, road surfaces and even transmission towers and wires.  As an example, we&#8217;ll look at a data set captured in over <a rel=\"noreferrer noopener\" href=\"https:\/\/portal.opentopography.org\/datasetMetadata?otCollectionID=OT.072022.2193.2\" target=\"_blank\">2020 and 2021<\/a> over the area shown below: <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"599\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/dataset.jpg\" alt=\"\" class=\"wp-image-4297\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/dataset.jpg 900w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/dataset-300x200.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/dataset-768x511.jpg 768w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/dataset-330x220.jpg 330w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<p>This dataset has a limited number of classification codes, but the ones available are quite pertinent to our analysis:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"678\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/codes.jpg\" alt=\"\" class=\"wp-image-4298\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/codes.jpg 555w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/codes-246x300.jpg 246w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><\/figure>\n\n\n\n<p>We can use the Low, Medium and High Vegetation points to map out where the vegetation is and how tall it is. For this post, I thought I&#8217;d show how this can be done for Quail Island:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"758\" height=\"602\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Quail.jpg\" alt=\"\" class=\"wp-image-4301\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Quail.jpg 758w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Quail-300x238.jpg 300w\" sizes=\"auto, (max-width: 758px) 100vw, 758px\" \/><\/figure>\n\n\n\n<p>Of course I&#8217;m not going to need all 10+ billion points for just Quail Island.  From the <a rel=\"noreferrer noopener\" href=\"https:\/\/opentopography.org\/\" target=\"_blank\">OpenTopography <\/a>site I can crop out what I need and download the raw LiDAR point cloud for use in Pro.  Even with that, I end up with 35+ million.  Shown in 3D, my LiDAR points are clearly picking out trees and surface features as well as areas of open grassland:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"837\" height=\"475\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/3DQuail.jpg\" alt=\"\" class=\"wp-image-4302\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/3DQuail.jpg 837w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/3DQuail-300x170.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/3DQuail-768x436.jpg 768w\" sizes=\"auto, (max-width: 837px) 100vw, 837px\" \/><\/figure>\n\n\n\n<p>With these points, I&#8217;ve got high-precision locations with x, y and z coordinates &#8211; a very important facet is that the elevations are all with respect to mean sea level (and we know <a rel=\"noreferrer noopener\" href=\"https:\/\/blogs.lincoln.ac.nz\/gis\/keeping-our-heads-above-water\/\" data-type=\"post\" data-id=\"1350\" target=\"_blank\">how fraught that can be<\/a>).  We can use the LiDAR data to create two elevation models: a Digital Elevation Model (DEM) which has the bare earth elevations, i.e. the ground with no features (trees, buildings, etc) and the Digital Surface Model (DSM) which includes the tops of trees and buildings and anything else above ground level.  To put that in the context of our analysis, let&#8217;s return to the clear cut image above.<\/p>\n\n\n\n<p>Below, the white line at the base of the trees shows us a profile of the bare earth DEM while the blue line shows the profile along the DSM &#8211; the tops of the trees.  Clearly, most of these trees are around the same height, but the elevation of the tops of the trees (above sea level) depends on where on the landscape they are.  We need to take this into account somehow.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"447\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clearcut2-1024x447.png\" alt=\"\" class=\"wp-image-4303\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clearcut2-1024x447.png 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clearcut2-300x131.png 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clearcut2-768x335.png 768w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clearcut2.png 1243w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>What we get from the LiDAR data are the DEM and DSM elevations above sea level.  So,<\/p>\n\n\n\n<p class=\"has-text-align-center\">Actual Tree Height = DSM Elevation &#8211; DEM Elevation<\/p>\n\n\n\n<p>This ends up being pretty easy once we&#8217;ve created our respective DEMs and DSMs &#8211; it&#8217;s just a quick raster calculation.  Then we know the height of any vegetation at each grid cell.  For Quail Island, my result looked something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"611\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/QuailVeg.jpg\" alt=\"\" class=\"wp-image-4304\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/QuailVeg.jpg 751w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/QuailVeg-300x244.jpg 300w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><\/figure>\n\n\n\n<p>The darker green areas are vegetation greater than 3 m in height &#8211; for this analysis, it amounts to roughly 34% of the total island&#8217;s area.  Not bad for (gulp) 26 years worth of hard mahi planting trees (Kia ora <a rel=\"noreferrer noopener\" href=\"https:\/\/www.quailisland.org.nz\/\" target=\"_blank\">Quail Island Ecological Restoration Trust<\/a>!).  Given these data, we&#8217;ve actually got enough resolution to break these trees down into further height classes if we wanted to and, if we had data over time, we could track the rate at which trees are going in different areas.  Nice.  <\/p>\n\n\n\n<p>Along the way in this analysis, I noticed a few interesting bits, which are actually the reason I&#8217;ve done this post at all &#8211; two things in particular.  <\/p>\n\n\n\n<p>When looking at the raw data points, I noticed that the range of elevations went from -1.2 m up to 539.63 m:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"169\" height=\"226\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/legelnd.jpg\" alt=\"\" class=\"wp-image-4305\" \/><\/figure>\n\n\n\n<p>The max elevation was a bit of a surprise, as I know from the topo maps that it should be around 86 m (that&#8217;s ground level, mind you):<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"375\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/QuailTopo.jpg\" alt=\"\" class=\"wp-image-4306\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/QuailTopo.jpg 775w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/QuailTopo-300x145.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/QuailTopo-768x372.jpg 768w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/figure>\n\n\n\n<p>(The negative value is less of a concern as I know the data were collected around low tide, so -1.2 m is feasible.)  But 539.63?  What&#8217;s going on here?  After a bit of visual examination, I did find a few out of kilter points:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"843\" height=\"468\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/birds.jpg\" alt=\"\" class=\"wp-image-4307\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/birds.jpg 843w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/birds-300x167.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/birds-768x426.jpg 768w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/figure>\n\n\n\n<p>See those two red balloon-like points floating high over the island?  I think those are our culprits.  There are often a few very noisy points in LiDAR data, but these seem a bit beyond the expected range.  My guess?  Birds are not an infeasible possibility.  Yep, LiDAR could capture them in flight.<\/p>\n\n\n\n<p>Another interesting tidbit &#8211; recall that to get our tree heights we&#8217;ve subtracted the DEM from the DSM &#8211; what&#8217;s left should be the tree height.  When checking out my output from this step I noticed something odd &#8211; first the whole tree canopy layer: <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"656\" height=\"432\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Canopy.jpg\" alt=\"\" class=\"wp-image-4308\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Canopy.jpg 656w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Canopy-300x198.jpg 300w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/figure>\n\n\n\n<p>No major surprises, except for a bit of an elevation hot spot along the northeastern coast:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"621\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Hotspot.jpg\" alt=\"\" class=\"wp-image-4309\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Hotspot.jpg 660w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/Hotspot-300x282.jpg 300w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<p>That oddly circular in shape at bottom right goes from around 20 m on one side to around 50 m on the other side &#8211; very odd.  Closer inspection, reveals that there&#8217;s a tree there (image from Google Maps):<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1020\" height=\"630\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/GETRee.jpg\" alt=\"\" class=\"wp-image-4310\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/GETRee.jpg 1020w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/GETRee-300x185.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/GETRee-768x474.jpg 768w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/figure>\n\n\n\n<p>(Nice place to kayak!).  At that location, the tree is a big one (a gum from memory) that <em>overhangs <\/em>the cliff, so for those branches that hang out over the cliff, the bare earth surface below is pretty much at sea level so it ends up seeming much taller there than it actually is after we subtract out the DEM.  This is a fairly special case driven by the presence of cliffs and overhanging vegetation, but a good analyst will ideally pick up on these potential issues.  One quick and easy way to deal to this was just to use a polygon layer of the island&#8217;s shoreline  to clip out just the terrestrial areas:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"596\" src=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clipped.jpg\" alt=\"\" class=\"wp-image-4311\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clipped.jpg 737w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2023\/09\/clipped-300x243.jpg 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/figure>\n\n\n\n<p>You might think that this is just a bit of sweeping the problem under the carpet, but I think it&#8217;s a legitimate thing to do in this case.  <\/p>\n\n\n\n<p>So this has been another example of how LiDAR might be used for some very high resolution mapping, all made possible by the classification codes, and really just scratching the surface of what we can do with data like these.  There was a lot of height in this post but hopefully not too much folly.<\/p>\n\n\n\n<p>C<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I won&#8217;t say I&#8217;m a great fan of clear cutting but I suppose some may find this image inspiring (from a recent walk to the Sign of the Packhorse). We start with this as it will later help to illustrate some of the analysis the GIS courses have been doing lately. We&#8217;ve been spending a [&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-4296","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/4296","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=4296"}],"version-history":[{"count":2,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/4296\/revisions"}],"predecessor-version":[{"id":4313,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/4296\/revisions\/4313"}],"wp:attachment":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/media?parent=4296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/categories?post=4296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/tags?post=4296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}