{"id":2435,"date":"2019-07-25T10:00:18","date_gmt":"2019-07-24T22:00:18","guid":{"rendered":"http:\/\/blogs.lincoln.ac.nz\/gis\/?p=2435"},"modified":"2023-05-07T00:47:22","modified_gmt":"2023-05-07T00:47:22","slug":"the-grass-is-always-greener-isnt-it","status":"publish","type":"post","link":"https:\/\/blogs.lincoln.ac.nz\/gis\/the-grass-is-always-greener-isnt-it\/","title":{"rendered":"The grass is always greener, isn&#8217;t it?"},"content":{"rendered":"<p><em>This post looks at the NDVI vegetation index that can be derived from multispectral images and give us useful information about the state of plant health for an area.<\/em><\/p>\n<p>We&#8217;ve been talking about <a href=\"http:\/\/blogs.lincoln.ac.nz\/gis\/wavelengths\/\" target=\"_blank\" rel=\"noopener noreferrer\">satellite images recently<\/a> and in this post we&#8217;ll start going over some of the beneficial information we can get from those images beyond just a pretty picture.\u00a0 In particular, with the right bands, we can do some simple calculations and that tell us useful things about vegetation health and land cover.\u00a0 Many of you will probably be familiar with the NDVI, or the normalised difference vegetation index.\u00a0 We&#8217;ll first cover what it tells us and then cover how we derive it.<\/p>\n<p>To get our heads around this, we&#8217;ve got to go back to the very basics of remote sensing, starting\u00a0with <a href=\"https:\/\/www.windows2universe.org\/sun\/spectrum\/multispectral_sun_overview.html\" target=\"_blank\" rel=\"noopener noreferrer\">the sun<\/a>.\u00a0 We are literally bathed in radiation across an immensely wide range of wavelengths and frequencies from moment to moment by this essential part of human life.\u00a0 We&#8217;ve seen it before, but here&#8217;s the electromagnetic spectrum diagram again:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/05\/electromagneticspectrum.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2398\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/05\/electromagneticspectrum.jpg\" alt=\"\" width=\"1024\" height=\"454\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/05\/electromagneticspectrum.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/05\/electromagneticspectrum-300x133.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/05\/electromagneticspectrum-768x341.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>As remote sensors, our eyes only work with the small range of visible light but other types of sensors give us access to a wider range of wavelengths (energy).\u00a0 The sun emits radiation across the whole range of frequencies and wavelengths shown above and it is primarily this energy the remote sensing works off of &#8211; particularly with how different materials reflect different amounts of energy.\u00a0 (It&#8217;s worth a quick note to say that there are two kinds of signals we work with in remotes sensing: passive (reflected energy) and active (a signal is sent out and we work with its reflection, e.g. <a href=\"http:\/\/blogs.lincoln.ac.nz\/gis\/lidar-data-thousands-of-tiny-luminous-spheres\/\" target=\"_blank\" rel=\"noopener noreferrer\">LiDAR<\/a>, radar, sonar.\u00a0 In this post were working with passive reflected energy.)<\/p>\n<p>Different materials reflect different amounts of energy.\u00a0 In the\u00a0figure below, the responses of bare soil, vegetation and water\u00a0are shown across a range of wavelengths:<a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/SpectralSigs.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2436\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/SpectralSigs.jpg\" alt=\"\" width=\"1370\" height=\"798\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/SpectralSigs.jpg 1370w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/SpectralSigs-300x175.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/SpectralSigs-1024x596.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/SpectralSigs-768x447.jpg 768w\" sizes=\"auto, (max-width: 1370px) 100vw, 1370px\" \/><\/a><\/p>\n<p>We might refer to these lines as spectral signatures and they allow us to differentiate between the materials.\u00a0 For instance, the range of wavelengths that clear water reflects is much smaller than that for vegetation or soil.\u00a0 In other words, at longer wavelengths,\u00a0water would show very low values of reflectance.\u00a0 Bare soil and vegetation reflect across a wider range of\u00a0wavelengths but at differing amounts.\u00a0 So if we had some imagery for wavelengths between, say, 2.2 and 2.6 micrometers, we should be able to differentiate one from the other.\u00a0 That&#8217;s the basis for how we use a lot of remotely sensed imagery.<\/p>\n<p>Let&#8217;s now look at plants specifically.\u00a0 Most plants appear green to us because they reflect a lot of green light (as well as higher wavelengths as we see above) that our eyes detect.\u00a0 It turns out they also reflect a lot of infrared energy.\u00a0 The energy they absorb is used for photosynthesis.\u00a0 When a sensor in a satellite (or a UAV for that matter) captures an image, it stores what it sees as intensities.\u00a0 For instance, have a look at a Landsat 7 satellite image below covering much of the area around Christchurch.\u00a0 This is a six band image but for now we&#8217;ll just focus on the blue, green, red and infrared bands.\u00a0 Here&#8217;s the RGB image:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/CHCMultiWithBox.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2445\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/CHCMultiWithBox.jpg\" alt=\"\" width=\"948\" height=\"491\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/CHCMultiWithBox.jpg 948w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/CHCMultiWithBox-300x155.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/CHCMultiWithBox-768x398.jpg 768w\" sizes=\"auto, (max-width: 948px) 100vw, 948px\" \/><\/a><\/p>\n<p>Below I&#8217;ll show all four bands for an\u00a0area zoomed in to the blue box above &#8211;\u00a0they are\u00a0greyscale images so a pixel&#8217;s level of\u00a0 brightness shows how much energy is reflected in that band: total absorption appears black while total reflection is white.<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/CHCImages.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2444\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/CHCImages.jpg\" alt=\"\" width=\"965\" height=\"303\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/CHCImages.jpg 965w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/CHCImages-300x94.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/CHCImages-768x241.jpg 768w\" sizes=\"auto, (max-width: 965px) 100vw, 965px\" \/><\/a><\/p>\n<p>Looking at the intensities, there are subtle differences between the first three, but perhaps the greatest difference is with the infrared band.\u00a0 Lyttelton Harbour and the estuary are black, showing that water absorbs infrared energy.\u00a0 Areas of vegetation in the RGB image appear brighter in the infrared as well and there appears to be more red reflected than blue or green in general.\u00a0 Industrial areas of Christchurch (roofs, mainly) reflect a lot in blue, green and red (i.e. they&#8217;re brighter) but absorb\u00a0much\u00a0of the\u00a0infrared.<\/p>\n<p>As a next step we can do a simple raster calculation that allows us to better distinguish vegetation from other materials.\u00a0 We&#8217;ll use a standard vegetation index called the <a href=\"https:\/\/eos.com\/ndvi\/\" target=\"_blank\" rel=\"noopener noreferrer\">NDVI<\/a><\/p>\n<p>NDVI stands for <a href=\"https:\/\/gisgeography.com\/ndvi-normalized-difference-vegetation-index\/\" target=\"_blank\" rel=\"noopener noreferrer\">normalised difference vegetation index<\/a>.\u00a0 We derive it by subtracting the value of the red band from the near infrared band (NIR) and dividing that by the two bands added together (that&#8217;s the normalising bit), pixel by pixel, i.e.<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVI.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2440\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVI.jpg\" alt=\"\" width=\"180\" height=\"56\" \/><\/a><\/p>\n<p>As a result, we get pixel values that range between -1 and 1.\u00a0 Going further, we can roughly classify the type of surface material in that pixel based on this value.\u00a0 Negative values can usually be classified as snow, cloud or water while values close to zero are usually rock or bare soil.\u00a0 Shrubs and low vegetation often has values between 0.2 and 0.3 while larger values (0.6 &#8211; 0.8) may be temperate or tropical forests.\u00a0 The closer the value is to one, the denser or healthier that vegetation is.\u00a0 If we run\u00a0an NDVI analysis for our Christchurch image, here&#8217;s what we get:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVIWithLegend.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2447\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVIWithLegend.jpg\" alt=\"\" width=\"479\" height=\"533\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVIWithLegend.jpg 479w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVIWithLegend-270x300.jpg 270w\" sizes=\"auto, (max-width: 479px) 100vw, 479px\" \/><\/a><\/p>\n<p>The legend is quite rough &#8211; there&#8217;s no set symbology for this index and I&#8217;ve taken some liberties in the interpretation.\u00a0 The nice thing about this result is that is allows us to map the state of health of the vegetation while distinguishing other land covers.\u00a0 Which also brings us to a key point in not just NDVI, but remote sensing in general.\u00a0 Any imagery we work with is a snapshot in time &#8211; the results above capture the state of vegetation at this moment in time only.\u00a0 As anyone remotely familiar with the growth stages of plants will tell you, things change.\u00a0 Thus, any NDVI result will very\u00a0much depend on the point in the growth stage that the imagery was captured.\u00a0 In the image below, we can see that the amounts of reflected energy can change depending on where we are in that process:<\/p>\n<figure id=\"attachment_2448\" aria-describedby=\"caption-attachment-2448\" style=\"width: 350px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/earthobservatory.nasa.gov\/features\/MeasuringVegetation\/measuring_vegetation_2.php\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2448 size-full\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/ndvi_example.jpg\" alt=\"\" width=\"350\" height=\"389\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/ndvi_example.jpg 350w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/ndvi_example-270x300.jpg 270w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/a><figcaption id=\"caption-attachment-2448\" class=\"wp-caption-text\"><a href=\"https:\/\/earthobservatory.nasa.gov\/features\/MeasuringVegetation\/measuring_vegetation_2.php\" target=\"_blank\" rel=\"noopener noreferrer\"><em>https:\/\/earthobservatory.nasa.gov\/features\/MeasuringVegetation\/measuring_vegetation_2.php<\/em><\/a><\/figcaption><\/figure>\n<p>At the height of this plant&#8217;s growth it&#8217;s reflecting half of it&#8217;s infrared energy and absorbing most of its red.\u00a0 Later, the infrared percentage drops off and the amount of red reflected increases &#8211; with noticeable changes in the NDVI value.\u00a0 Of course, the changes could also be due to a\u00a0differences between\u00a0plants&#8217; health from drought or disease, so we&#8217;d need a bit\u00a0more context to determine what&#8217;s driving the difference.\u00a0 While this is a bit of a blessing and a curse, it does allow us to monitor changes in plant health over time.<\/p>\n<p>So the NDVI is a powerful index for mapping vegetation health and is widely used.\u00a0 There are two primary ways we can derive this using ArcGIS:<\/p>\n<ul>\n<li>A raster calculation,\u00a0or<\/li>\n<li>The NDVI button on the Image Analysis window<\/li>\n<\/ul>\n<p>The first is quite straightforward as long as you know which band is which:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVICalc.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2449\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVICalc.jpg\" alt=\"\" width=\"565\" height=\"390\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVICalc.jpg 565w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVICalc-300x207.jpg 300w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/a><\/p>\n<p><em>(Note &#8211; the individual bands of an image can be added to a map by double-clicking on the image name in the Add Data window &#8211; you&#8217;ll then be able to see the individual bands and add the ones you need.\u00a0 To use the tool above I added the individual bands to a map and relabeled them with a more sensible name.)<\/em><\/p>\n<p>The second method is probably not as widely known.\u00a0 When working with imagery, the Image Analysis window provides some useful shortcuts for a lot of common workflows.\u00a0 In ArcMap it can be added by going to Windows &gt; Image Analysis &#8211; this adds a new window to work with which can be docked at the side to keep handy:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/ImageAnalysisWindow.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2450 alignleft\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/ImageAnalysisWindow.jpg\" alt=\"\" width=\"328\" height=\"645\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/ImageAnalysisWindow.jpg 328w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/ImageAnalysisWindow-153x300.jpg 153w\" sizes=\"auto, (max-width: 328px) 100vw, 328px\" \/><\/a><\/p>\n<p>Images on your map are available at the top of the window: etm42rex_multi.img is the image I want to run the NDVI on.\u00a0\u00a0When I click on it, the NDVI button, <a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/Button.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2451\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/Button.jpg\" alt=\"\" width=\"20\" height=\"22\" \/><\/a>, in the Processing section becomes active.<\/p>\n<p>Before my next step, I should open up the Options menu, <a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/Options.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2452\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/Options.jpg\" alt=\"\" width=\"23\" height=\"20\" \/><\/a>, and\u00a0check a few settings:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/OptionsMenu.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2453\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/OptionsMenu.jpg\" alt=\"\" width=\"351\" height=\"294\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/OptionsMenu.jpg 351w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/OptionsMenu-300x251.jpg 300w\" sizes=\"auto, (max-width: 351px) 100vw, 351px\" \/><\/a><\/p>\n<p>Here&#8217;s where knowing which band is which is important &#8211; for this image, I&#8217;ve set them to the correct bands as shown above and also ticked &#8220;Scientific Output&#8221; &#8211; this means the result will show the actual index values.\u00a0 Clicking on the NDVI button is how I got the image shown earlier in the post.\u00a0 I then changed the symbology to reflect the range of values and label them:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVISymbology.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2454\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVISymbology.jpg\" alt=\"\" width=\"656\" height=\"500\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVISymbology.jpg 656w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2019\/07\/NDVISymbology-300x229.jpg 300w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/a><\/p>\n<p>Well, this post went on a lot longer than I had anticipated at the start, but hopefully the ground we&#8217;ve covered has been enlightening, if not irradiating.\u00a0 The NDVI is not the only index we can use &#8211; there are <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/help\/data\/imagery\/band-arithmetic-function.htm\" target=\"_blank\" rel=\"noopener noreferrer\">scads of others<\/a>, but it is one of the more commonly used ones.\u00a0 If there&#8217;s time (and interest), we could certainly cover them in a separate post.\u00a0 In a later post I&#8217;ll cover image classification and how we can use that to map different land covers (amongst other things).<\/p>\n<p>C<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post looks at the NDVI vegetation index that can be derived from multispectral images and give us useful information about the state of plant health for an area. We&#8217;ve been talking about satellite images recently and in this post we&#8217;ll start going over some of the beneficial information we can get from those images [&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-2435","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/2435","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=2435"}],"version-history":[{"count":1,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/2435\/revisions"}],"predecessor-version":[{"id":4016,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/2435\/revisions\/4016"}],"wp:attachment":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/media?parent=2435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/categories?post=2435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/tags?post=2435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}