{"id":310,"date":"2023-01-18T14:51:05","date_gmt":"2023-01-18T19:51:05","guid":{"rendered":"https:\/\/blog.uvm.edu\/uvmgis\/?p=310"},"modified":"2023-01-26T13:25:28","modified_gmt":"2023-01-26T18:25:28","slug":"remote-sensing-foundations-module-4-qa-image-interpretation-quantifying-masking-and-classification","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/uvmgis\/2023\/01\/18\/remote-sensing-foundations-module-4-qa-image-interpretation-quantifying-masking-and-classification\/","title":{"rendered":"Remote Sensing Foundations Module 4 Q&amp;A: Image Interpretation: Quantifying, Masking, and Classification"},"content":{"rendered":"\n<p>This page features troubleshooting questions students have asked for Remote Sensing Foundations Module 4: Image Interpretation: Quantifying, Masking, and Classification<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><u>Question:<\/u> At the end of the file when you are selecting an image for a certain day with Landsat 5, say at the end you see 20000606 in the code we build following the tutorial F1.1. This selects June 6, 2000, but I can&#8217;t tell from this example if it is YYYYDDMM or YYYYMMDD. The later makes more sense to me, but I can&#8217;t find it online in a clear way, because maybe Google fixed all the images to be more uniform with a certain format?&nbsp;<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer<\/u><\/strong>:&nbsp; Its YYYYMMDD<strong><\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><span style=\"text-decoration: underline\">Question<\/span>: I worked through the tutorial in F1.1 and I have a question about the visualization parameters described on page 23. In\u00a0<a href=\"https:\/\/university-of-vermont.yellowdig.app\/community\/6283c3c4-744c-3e0d-0508-9dd360c6c4d6?communityFeed=%7B%22filters%22%3A%7B%22hashtag%22%3A%223%22%7D%7D\">#3<\/a>\u00a0on that page, &#8220;min, max&#8221; \u2014 The text says these numbers (here set at 8000 and 17000) represent the min and max value for band SR_B1. Where can I get that information for a different band or dataset? When I look in the bands information in the GEE catalog for this dataset (at least I think I have the right one) the min and max are 1 and 65455, respectively. Where do 8000 and 17000 come from? Here&#8217;s a <a rel=\"noreferrer noopener\" href=\"https:\/\/developers.google.com\/earth-engine\/datasets\/catalog\/LANDSAT_LT05_C02_T1_L2\" data-type=\"URL\" data-id=\"https:\/\/developers.google.com\/earth-engine\/datasets\/catalog\/LANDSAT_LT05_C02_T1_L2\" target=\"_blank\">link<\/a> to the catalog page<\/strong>.<\/p>\n\n\n\n<p><strong>On the other hand, on pages 35-36, it describes the range for the nighttime lights data as coming from the catalog or &#8221; with other Earth Engine methods. &#8221; When I searched on this dataset in the catalog, it said it was not available, but when I did my own search for using similar terms, I came up with what I think is a match to this set. It&#8217;s min and max DO match what is listed on the bands tab in this catalog entry (0 and 63).<\/strong><\/p>\n\n\n\n<p><strong>So why for the Landsat 5 are the numbers different from what is listed on the catalog page for min and max?<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p><strong><span style=\"text-decoration: underline\">Answer<\/span>: <\/strong>I think you are confusing image datasets. On pg 35 there is the line: <\/p>\n\n\n\n<p>var lights93 = ee.Image(&#8216;NOAA\/DMSP-OLS\/NIGHTTIME_LIGHTS\/F101993&#8217;);<\/p>\n\n\n\n<p>This is where you are importing a different dataset than Landsat 5, as you used earlier in this chapter to make the composites. Now, you are importing a new image to look at the nighttime lights. The range of this is as you say, found in the band information on the EE catalogue page. The next few lines in the tutorial are having you look at different night time images to compare.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><span style=\"text-decoration: underline\">Question<\/span>:<\/strong> <strong>I loaded the nighttime lights dataset you reference. And that all works fine and the min and max match what I think is the correct catalog listing for that one. My question is about the Landsat 5 dataset on p. 23(ish) \u2014 why are the min and max 8000 and 17000? Those are not the numbers in the band tab in GEE catalog for that dataset: The min and max for that dataset at 1 and 65455 in the catalog, respectively. But we set them at 8000 and 17000 in the tutorial code. Why?<\/strong><\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1003\" height=\"1024\" data-id=\"314\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/Picture1-1-1003x1024.jpg\" alt=\"\" class=\"wp-image-314\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/Picture1-1-1003x1024.jpg 1003w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/Picture1-1-294x300.jpg 294w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/Picture1-1-768x784.jpg 768w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/Picture1-1.jpg 1054w\" sizes=\"auto, (max-width: 1003px) 100vw, 1003px\" \/><\/figure>\n<\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" data-id=\"315\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/Picture2-1024x557.jpg\" alt=\"\" class=\"wp-image-315\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/Picture2-1024x557.jpg 1024w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/Picture2-300x163.jpg 300w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/Picture2-768x418.jpg 768w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/Picture2.jpg 1208w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/figure>\n<\/div>\n<\/div>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer<\/u><\/strong>:&nbsp; I&#8217;m pretty sure this is done to skim off the minimum\/maximum values, so you have more median values. Thus, the values are less linearly stretched and the bands now have &#8220;assignments&#8221; on how to organize themselves. If you put in 1 &#8211; 65, 455; you&#8217;d be jumbling up the data and there are no clear assignments for the bands. When you add 8,000 &#8211; 17,000; it also means that everything below 8,000 and everything above 17,000 now have an assignment.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><u>Question:<\/u> Ok but where did the numbers 8000 and 17000 come from? Why those numbers? How can I find such numbers to do this with if they are not in the metadata or catalog (as 8000 and 17000 are not)? Trying to figure out how to swim on my own!<\/strong><\/p>\n\n\n\n<p><strong>And what do you mean by assignments for the bands? In this case the bands of interest all have the same min and max numbers \u2014 either the 1 to 65,455 as listed in the catalog or the 8000 to 17000 that are assigned in the tutorial. So how does that help split things out into bands if they all have the same min and max numbers?<\/strong><\/p>\n\n\n\n<p><strong>AND what is the assignment that goes to everything above and below 8000 and 17000?<\/strong><\/p>\n\n\n\n<p><strong>If I&#8217;m asking too many questions, please just direct me toward a reference or something. Again, just want to be able to do this on my own and I have no idea why 8000 and 17000 are the numbers that were used in this example. Would like to figure that out so I can do it myself. Thanks.<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p><strong><span style=\"text-decoration: underline\">Answer<\/span>:<\/strong> I don&#8217;t think I can fully answer your first parted question; these are just values that the tutorial decides is best. Most tutorials do this and make you input certain numbers at certain places.<\/p>\n\n\n\n<p>Second part of your question is actually answered in that image you posted last. In step 3, it mentions &#8220;The values between minimum and maximum are mapped linearly to grayscale between black and white. Values below 8000 are drawn as black. Values about 17,000 are drawn as white.&#8221;<\/p>\n\n\n\n<p>I know you are ambitious to get all of this and swim on your own. It&#8217;s great to see your interest in these topics. For now though, we&#8217;re simply following the tutorials and getting the fundamentals down which are; concepts, code and familiarization with tools\/ideas. Those numbers chosen to set this range won&#8217;t come from an experienced user until probably years later. <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><span style=\"text-decoration: underline\">Question<\/span>: Thanks! I&#8217;ll take a look and glad to hear that we&#8217;ll be doing more of this later. That&#8217;s really good to know. Right now, I am working on this week&#8217;s assignment and having bigtime issues with this \u2014 part of why I&#8217;m asking. I&#8217;m trying to look at MSI data for an area of interest for the assignment and when I add the data to the map to see it, it&#8217;s all white! I&#8217;m using the min and max used in the tutorial for MSI data on p. 85 (0 to 2000). I&#8217;ve been messing around with those numbers, but I can&#8217;t seem to change much. And when I do \u2014 the numbers I put in there seem to have no relationship to what&#8217;s listed for those bands, and all the active farm fields are green instead of red (I&#8217;m making a IR false color composite). Totally confused and feel like I&#8217;m shooting in the dark to randomly pick these numbers for visualization. I&#8217;ll see if this helps. But let me know if you have any clues!! Here&#8217;s my code. I put the layers on the map \u2014 just to take a look at them \u2014 at the end. I&#8217;m also having trouble with another question I&#8217;ve posted here \u2014 how do I know which image is displayed by date in the map when I do this? It would be really helpful to know the date to understand it in terms of the crop year. I&#8217;m using the &#8220;first&#8221; function (I think!).<\/strong><\/p>\n\n\n\n<p><strong>Thanks. That&#8217;s a very helpful perspective. I&#8217;m happy to do trial and error (though I still have an all white map!). I just feel like \u2014 when I&#8217;m guessing \u2014 that I don&#8217;t know what is ok to do. I could put in random numbers until something looks right, but will that be meaningful when anyone else looks at it? Will it be comparable to other maps made with the same information? I guess I&#8217;m asking \u2014 are there standard practices (for example, for a false color IR map)? Or is it ok to shoot from the hip in how I visualize it?<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p><strong><span style=\"text-decoration: underline\">Answer<\/span><\/strong>:&nbsp; With the white image is to load it into the map and do a 100% stretch on the visualization box\u2026the tutorial has us coding everything thing, hard code, but you can also find the range by manually doing it on the map by clicking on the settings icon of the layer. By doing it manually, you don&#8217;t have to hard code anything. Hope this helps!<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><span style=\"text-decoration: underline\">Question<\/span><\/strong>:<strong> I think I get it. Do you mean that by clicking on the 100% stretch in the visualization settings \u2014 that will fill the range (min and max) into the boxes? And then use those numbers? (Not sure what you mean by hard coding exactly.)<\/strong><\/p>\n\n\n\n<p><strong>Also \u2014 I guess the min\/max numbers in the catalog aren&#8217;t very useful then? That&#8217;s what I thought I should use. What do you think? Ignore them?<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p><strong><span style=\"text-decoration: underline\">Answer<\/span><\/strong>: Great! And yes I meant by clicking the 100% stretch on the visualization settings. Hard coding is just using strictly code to get what you want &#8211; whereas here, you can use the settings directly built into GEE and use those numbers to fill min\/max boxes.<\/p>\n\n\n\n<p>The min\/max catalog is only useful depending on what you&#8217;re trying to do. In this case, you can ignore them or choose to ignore them based on what you&#8217;re trying to perform.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Final Project Ideas, Q &amp; A<\/strong><\/p>\n\n\n\n<p><strong><u>Question:<\/u> Identifying social hiking trails on federal public lands:<\/strong>&nbsp;<strong>It seems like remote sensing is a perfect tool to identify the prevalence of social trails (non-sanctioned hiking trails) when paired with a high enough resolution dataset. Would it be possible to apply this to a place like Joshua Tree National Park, CA or Calico Basin Recreation area next to Red Rocks in NV? Would anyone have suggestions for how to conduct this process or further how to measure the mileage of social trails vs. approved trails? Is that even a function in GEE?&nbsp;Potential for Wildfire impacts to recreation resources:&nbsp;Curious if folks have any ideas regarding looking at historical wildfire in a region and comparing that to current vegetation in a landscape? This could be useful or considering active forest management plans and comparing with recreation resources on the ground?<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer<\/u><\/strong>:&nbsp; I may be able to help a little with this one. I was lucky enough to do multiple timber cruises\/inventory for state forests here in CT along with other foresters. One thing that is always reoccurring with ideas within Forestry are: invasive species, recreational use, fires and certain tree regeneration capacities. That being said, the idea you have are good but let me know if something really stands out to you or if you can zero in on something more specifically. This way, we can circle back and see what can work. I think these ideas are both doable, especially the wildfire data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This page features troubleshooting questions students have asked for Remote Sensing Foundations Module 4: Image Interpretation: Quantifying, Masking, and Classification Question: At the end of the file when you are selecting an image for a certain day with Landsat 5, say at the end you see 20000606 in the code we build following the tutorial &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.uvm.edu\/uvmgis\/2023\/01\/18\/remote-sensing-foundations-module-4-qa-image-interpretation-quantifying-masking-and-classification\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Remote Sensing Foundations Module 4 Q&amp;A: Image Interpretation: Quantifying, Masking, and Classification&#8221;<\/span><\/a><\/p>\n","protected":false},"author":4311,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[296900,702990,702992],"tags":[29581],"class_list":["post-310","post","type-post","status-publish","format-standard","hentry","category-gis","category-image-processing","category-remote-sensing","tag-qa","entry"],"featured_image_src":null,"featured_image_src_square":null,"author_info":{"display_name":"Learn @ UVM","author_link":"https:\/\/blog.uvm.edu\/uvmgis\/author\/distance\/"},"_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/posts\/310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/users\/4311"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/comments?post=310"}],"version-history":[{"count":8,"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/posts\/310\/revisions"}],"predecessor-version":[{"id":373,"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/posts\/310\/revisions\/373"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/media?parent=310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/categories?post=310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/tags?post=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}