{"id":272,"date":"2023-01-11T13:57:23","date_gmt":"2023-01-11T18:57:23","guid":{"rendered":"https:\/\/blog.uvm.edu\/uvmgis\/?p=272"},"modified":"2023-01-26T13:22:32","modified_gmt":"2023-01-26T18:22:32","slug":"remote-sensing-foundations-module-3-qa-introduction-to-image-processing-and-data-visualization","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/uvmgis\/2023\/01\/11\/remote-sensing-foundations-module-3-qa-introduction-to-image-processing-and-data-visualization\/","title":{"rendered":"Remote Sensing Foundations Module 3 Q&amp;A: Introduction to Image Processing and Data Visualization"},"content":{"rendered":"\n<p>This page features troubleshooting questions students have asked for Remote Sensing Foundations Module 3: Introduction to Image Processing and Data Visualization<\/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 Fig. F1.3.7 Error:<\/span><\/strong> I was able to import the image but am having trouble renaming it (Fig. F1.3.7). I&#8217;ve attached a screenshot of the textbook instructions and my code with the error message. Anyone have ideas what I&#8217;m doing wrong? Maybe I just have a type-o in my code and don&#8217;t see it?<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"951\" height=\"535\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-5.png\" alt=\"\" class=\"wp-image-273\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-5.png 951w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-5-300x169.png 300w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-5-768x432.png 768w\" sizes=\"auto, (max-width: 951px) 100vw, 951px\" \/><\/figure>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer<\/u><\/strong>: The issue is with the line above. This code seems to be trying to import the MODIS 09A1 dataset twice. Bascially, in order to import it here you will need a container to &#8216;hold&#8217; that image collection within your code, so first define a variable (&#8220;container&#8221;) to put the collection into. Example: var mod09 = ee.ImageCollection(&#8220;MODIS\/006\/MOD09A1&#8221;)<\/p>\n\n\n\n<p>From there you can filter the image collection to include a date range, area of interest or cloud threshold, etc. You can also print this variable and see how many images it contains, which right now with this line of code, is all of them! \ud83d\ude42<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><u>Question False Color Composites:<\/u><\/strong>\u00a0 I&#8217;m working on my false color composites. I&#8217;ve got it so the maps are no longer all black. But I can&#8217;t seem to get the colors to look like I think they should. For example, for a Color Infrared composite, I set the bands to B4, B3, and B2 for Landsat 7. And I get the GEE screenshot attached. I know this area is arid, but there is vegetation, so I&#8217;m wondering why there is so little red. Then I looked at the EO Browser to get a sense of whether my colors are way off. It&#8217;s a neat tool. With it \u2014 selecting false color composite for Landsat 7, Bands B4, B3, and B2, I get what&#8217;s in the EO screenshot below. Very different colors \u2014 much more red. I keep messing around with which bands are showing (though I&#8217;m fairly sure I need B4, B3, and B2 in that order). And with the visualization settings \u2014 stretch and custom \u2014 just trying it all out. But I never get much red at all. These images are from about the same point in time. This is why I thought I needed to set a max and min for the addLayer arguments \u2014 but not sure what to set there. The tutorial has 8000 to 17000 for some other images \u2014 but those are a different image source, I believe. And they result in a black map here.\u00a0 This is what I was asking about \u2014 though probably not describing it very well. Any hints on how to make this image a little more red like it seems it should be? Here&#8217;s the <a href=\"https:\/\/code.earthengine.google.com\/2fc6dc4aef16f6a7a8af91765c0b27dd\" data-type=\"URL\" data-id=\"https:\/\/code.earthengine.google.com\/2fc6dc4aef16f6a7a8af91765c0b27dd\">link<\/a> to the script.<br \/><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"943\" height=\"491\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-6.png\" alt=\"\" class=\"wp-image-274\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-6.png 943w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-6-300x156.png 300w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-6-768x400.png 768w\" sizes=\"auto, (max-width: 943px) 100vw, 943px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"951\" height=\"477\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-7.png\" alt=\"\" class=\"wp-image-275\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-7.png 951w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-7-300x150.png 300w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-7-768x385.png 768w\" sizes=\"auto, (max-width: 951px) 100vw, 951px\" \/><\/figure>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer<\/u><\/strong>: The short answer is that the image is as red as it should be. I took a look at your images and everything seems to be right so I&#8217;m not sure why it wouldn&#8217;t give you a redder color; that&#8217;s the reason I think that it&#8217;s as red as it can go. If you really want to proof this, you can take a look at another image that has a similar climate, maybe even more arid\/dry, just to see how it compares, although I don&#8217;t think it&#8217;s necessary.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><u>Question 2:<\/u><\/strong> After watching this week&#8217;s lecture, I&#8217;m guessing that this difference I saw between my images and the Earth Observatory images had to do with Image Enhancement. But I don&#8217;t know how the Earth Observatory image might have been enhanced. Seems like maybe a contrast stretch? Is that something we&#8217;ll cover more later? Or is there a reference to learn how to do that and what those different types of stretch are in the visualization panel in GEE?<\/p>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer 2<\/u><\/strong>: Yes, all of this falls under the data visualization section in GEE. I&#8217;ll attach a link below. We&#8217;ll be doing more with this but it&#8217;s essentially a way to customize and mess around with palettes\/visuals on the images. <a rel=\"noreferrer noopener\" href=\"https:\/\/developers.google.com\/earth-engine\/tutorials\/tutorial_api_02\" data-type=\"URL\" data-id=\"https:\/\/developers.google.com\/earth-engine\/tutorials\/tutorial_api_02\" target=\"_blank\">Here&#8217;s <\/a>a great resource. Also, check out the &#8220;False Color Composites&#8221; Topic on Yellowdig to see what others have done. Here, I attached a <a rel=\"noreferrer noopener\" href=\"https:\/\/developers.google.com\/earth-engine\/guides\/image_visualization\" data-type=\"URL\" data-id=\"https:\/\/developers.google.com\/earth-engine\/guides\/image_visualization\" target=\"_blank\">guide on imagery color<\/a> from GEE.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><u>Question about module 3 assignment false-color composite:<\/u><\/strong> The module 3 assignment says to: &#8220;Display 2 false-color composites, zoom into the ROI in the exercise.&#8221; I think I&#8217;m being dense here \u2014 but what does &#8220;zoom into the ROI in the exercise&#8221; mean? Does it mean the ROI from last week&#8217;s posting to YellowDig? Or something in the tutorial we did this week?<\/p>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer<\/u><\/strong>: Yes, you can use last week&#8217;s ROI. If you want to change to a new one that&#8217;s ok, too.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><u>Question filtering by date&#8230; what gets displayed?:<\/u><\/strong> I&#8217;ve noticed filters that set-date ranges for images, but they are ranges. When we add a map layer \u2014 for the image that gets displayed \u2014 how does GEE decide which date gets displayed?&nbsp;<\/p>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer<\/u><\/strong>: If you filter an image collection and try to display it, unless you specify an image to display, it will automatically display the first image in the collection. Typically, you would use a reducer to get from an image collection to one image \u2013 e.g. take the mean or max value per pixel.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><u>Question <strong>Code import and Mod9 renaming issue<\/strong>:<\/u><\/strong> I see this note on MOD09A1.006 that this dataset has been superseded:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"410\" height=\"247\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-8.png\" alt=\"\" class=\"wp-image-279\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-8.png 410w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-8-300x181.png 300w\" sizes=\"auto, (max-width: 410px) 100vw, 410px\" \/><\/figure>\n\n\n\n<p>Try to download the 006 version, and it&#8217;s not available &#8211; only the updated 061 version, which is fine. But then the first line of code doesn&#8217;t match the textbook<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-10.png\" alt=\"\" class=\"wp-image-281\" width=\"805\" height=\"116\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-10.png 978w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-10-300x43.png 300w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-10-768x111.png 768w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/figure>\n\n\n\n<p>Tried to substitute &#8220;dataset =&#8221; with mod9: doesn&#8217;t work:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-11.png\" alt=\"\" class=\"wp-image-282\" width=\"819\" height=\"96\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-11.png 964w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-11-300x35.png 300w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-11-768x90.png 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/figure>\n\n\n\n<p>Put &#8220;mod9 = &#8221; and that is accepted put puts an error further down the code<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"964\" height=\"361\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-12.png\" alt=\"\" class=\"wp-image-283\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-12.png 964w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-12-300x112.png 300w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-12-768x288.png 768w\" sizes=\"auto, (max-width: 964px) 100vw, 964px\" \/><\/figure>\n\n\n\n<p>please advise &#8211; cannot get past this!<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><\/p>\n<\/blockquote>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer<\/u><\/strong>: &nbsp;This is a great find (textbook error-wise!). I will make sure the editor knows this issue so the textbook can be updated! Sorry for the trouble! I think you are still getting errors because you are asking for images in 2018 and the start date of 061 is 2020. Try changing the year!<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><u>Question part 2:<\/u><\/strong>&nbsp;I ran into trouble finding the 006 as well, and ended up using 061. I did find 006 when I searched on it specifically, but it looks like I went with 061. When I cut and pasted code from the text I had to fix some of the lines that went onto a second line to get them to work, like your line 23-24. Maybe??<\/p>\n\n\n\n<p>I have a question for both of you \u2014 do you put the var mod09= ee.ImageCollection (&#8220;MODIS\u2026.. within your numbered lines script area? For me \u2014 they are in the Imports area just above the rest of the numbered lines area of the script. See screenshot. Should I be moving those into the numbered lines area?&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"959\" height=\"614\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-13.png\" alt=\"\" class=\"wp-image-284\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-13.png 959w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-13-300x192.png 300w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-13-768x492.png 768w\" sizes=\"auto, (max-width: 959px) 100vw, 959px\" \/><\/figure>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer part 2:<\/u><\/strong> It is okay in either place (script or imports list). Perhaps play around with both? But for our purposes, either will be accepted. In the broad sense, the script will be more portable if the call for the image collection (or import) is in the script.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><u>Question <strong>Almost There?, False-Color Composites<\/strong>:<\/u><\/strong> I could use some help clarifying how to change the bands to a false color composite. I completed the tutorial and included two screen shots of different layers that we created in this portion of the module (naip in turquoise &amp; MSI in red). To alter the color scheme for these are we just adjusting the band numbers in the code editor? Aren&#8217;t these already a false color? Very confused on this.&nbsp;Thank you for helping me sort this out.<\/p>\n\n\n\n<p>\/\/ Display the MSI image as a&nbsp;<strong>false color composite<\/strong>.<br \/>Map.addLayer(msiImage, {bands: [&#8216;B8&#8217;, &#8216;B4&#8217;, &#8216;B3&#8217;], min: 0, max:<br \/>2000}, &#8216;MSI&#8217;);<br \/>\/\/ Get the scale of the MSI data from its projection:<br \/>var msiScale = msiImage.select(&#8216;B8&#8217;)<br \/>.projection().nominalScale();<br \/>print(&#8216;MSI scale:&#8217;, msiScale);<br \/>\/\/ NAIP<br \/>\/\/ Get NAIP images for the study period and region of interest.<br \/>var naipImage = naip<br \/>.filterBounds(Map.getCenter())<br \/>.filterDate(&#8216;2018-01-01&#8217;, &#8216;2018-12-31&#8217;)<br \/>.first();<br \/>\/\/ Display the NAIP mosaic as a color-IR composite.<br \/>Map.addLayer(naipImage, {bands: [&#8216;N&#8217;, &#8216;R&#8217;, &#8216;G&#8217;]}, &#8216;NAIP&#8217;);<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"967\" height=\"478\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-14.png\" alt=\"\" class=\"wp-image-285\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-14.png 967w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-14-300x148.png 300w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-14-768x380.png 768w\" sizes=\"auto, (max-width: 967px) 100vw, 967px\" \/><\/figure>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"953\" height=\"478\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-15.png\" alt=\"\" class=\"wp-image-286\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-15.png 953w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-15-300x150.png 300w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-15-768x385.png 768w\" sizes=\"auto, (max-width: 953px) 100vw, 953px\" \/><\/figure>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer<\/u><\/strong>: I see what you&#8217;re saying here. This already looks like a false color composite so that\u2019s good, probably can get redder if you wanted! To answer your other question in conjunction; you are basically changing the bands and their color assignments, in order to get a more saturated image. You can refer to this <a rel=\"noreferrer noopener\" href=\"https:\/\/developers.google.com\/earth-engine\/guides\/image_visualization\" data-type=\"URL\" data-id=\"https:\/\/developers.google.com\/earth-engine\/guides\/image_visualization\" target=\"_blank\">guide<\/a> by GEE to get a better idea on what I mean.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><u>Question <strong>False-Color Composites<\/strong>:<\/u><\/strong> Well after a couple of hours messing around, I finally was able to find a usable satellite image that captures my ROI (albeit a small area within my ROI). First, I figured out how to display the Lake Champlain Basin, using a dataset of watershed boundaries in the US. I have attached the link to the tutorial that I found on that process below.<\/p>\n\n\n\n<p>Then I spent way too much time messing around with various GEE code I found on the internet and trying to adapt it for my ROI. That was unsuccessful because I kept getting errors that I didn&#8217;t know how to fix. Also, any Landsat images I was able to find didn&#8217;t appear to show anything when they were displayed\u2026 Probably too much cloud cover? Finally, I returned to the text book example in F1.3, and adapted the code for the NAIP imagery for my ROI, because it was the highest resolution dataset I know of. See the attached images for my color-IR composite and my true-color composite.<\/p>\n\n\n\n<p>Here are the things I&#8217;m still struggling to understand:<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\">\n<li>I still don&#8217;t understand the process of importing images. I feel like I only know about very few of the imagery datasets that are available on GEE, and even if I had a good dataset in mind, I don&#8217;t understand the coding language that actually makes the image appear on the map once you hit the import button.<\/li>\n\n\n\n<li>I wish I better understood the methods for filtering the image collections by location, date, cloud cover, etc. All the tutorials that I find on the internet give an example of the code you can use, but it doesn&#8217;t explain what each section of code actually does and how you would replicate it.<\/li>\n\n\n\n<li>I&#8217;m also still confused on how you generate the false-color composites. I don&#8217;t have a grasp on how you write code that assigns different colors to different bands. I only used the example from the textbook for this assignment.<\/li>\n<\/ol>\n\n\n\n<p><a href=\"https:\/\/geohackweek.github.io\/GoogleEarthEngine\/03-load-imagery\/#:~:text=To%20use%20the%20inspector%20tool,map%20layers%20at%20that%20point.\" data-type=\"URL\" data-id=\"https:\/\/geohackweek.github.io\/GoogleEarthEngine\/03-load-imagery\/#:~:text=To%20use%20the%20inspector%20tool,map%20layers%20at%20that%20point.\" target=\"_blank\" rel=\"noreferrer noopener\">Link<\/a> to watershed boundary tutorial.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"897\" height=\"362\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-16.png\" alt=\"\" class=\"wp-image-287\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-16.png 897w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-16-300x121.png 300w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-16-768x310.png 768w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/figure>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"967\" height=\"386\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-17.png\" alt=\"\" class=\"wp-image-288\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-17.png 967w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-17-300x120.png 300w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-17-768x307.png 768w\" sizes=\"auto, (max-width: 967px) 100vw, 967px\" \/><\/figure>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer<\/u><\/strong>:&nbsp; You are not the only one who is struggling to understand this material. I can try to shed light here a little but but it&#8217;s probably going to be best to have an online session to sort through some of this with you. You can think of the import calls in your GEE script as basically checking out a book from the library. Each time you import a dataset, you&#8217;ve taken a book from the stacks in the library and put it on your work table in the library (think one book per dataset import). But in order to get in any information, you&#8217;ve got to open the book and read through it, sort through pages, look at pictures, etc. The script in GEE is that table in the library. When you display it on the map it&#8217;s like you are looking at the pretty pictures in the book. In order to really understand the content of the book, that&#8217;s where you read it. In this case &#8220;reading&#8221; the book is writing a function or doing some band math or perhaps querying the data contained in the image to derive a new image. This is done in your GEE script (in this metaphor at the table in the library).<\/p>\n\n\n\n<p>The map display in GEE is just looking at the pictures of the book without reading it. It&#8217;s simply displaying what&#8217;s there as it is without actually manipulating the image. When you are displaying it, you have options for what bands to display, what stretches to apply and what colors to see it with, but this is simply for visualization, the dataset itself is not altered.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><u>Question <strong>Cloud cover coding issues from Wk3 submission<\/strong>:<\/u><\/strong> In the week 3 assignment, I added in a line of code .sort(&#8220;CLOUD_COVER&#8221;) &#8211; this was based on reviewing the code of others, so I tried adding it in. The code ran, but I couldn&#8217;t see any meaningful output.<\/p>\n\n\n\n<p>Q1: How do I view the percentage cloud cover output?<\/p>\n\n\n\n<p>So I removed the line of code and my false color images went from displaying the full extent of the ROI (a defined square area) to a small cutoff of the top right corner. I tried clearing my cache and re-running, but still the same.<\/p>\n\n\n\n<p>Q2: Why is this happening (see image), why is removing a line of (arbitrary) cloud cover code affecting the clip to the defined ROI?<\/p>\n\n\n\n<p>I need your help explaining\/resolving these issues, please. I&#8217;ve dug through some materials online, particularly the GEE developer guidance, but I can&#8217;t find any explanations.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"310\" height=\"264\" src=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-18.png\" alt=\"\" class=\"wp-image-289\" srcset=\"https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-18.png 310w, https:\/\/blog.uvm.edu\/uvmgis\/files\/2023\/01\/image-18-300x255.png 300w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/><\/figure>\n<\/blockquote>\n\n\n\n<p><strong><u>Answer:<\/u><\/strong> Can you link me to your code here so I can have a look? Without seeing your code my first thought is that you are somehow only selecting one image, the boundaries of which do not line up with your ROI (i.e. your ROI straddles more than one image). But this is just based on the image only. I am sure we can get to the bottom of it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This page features troubleshooting questions students have asked for Remote Sensing Foundations Module 3: Introduction to Image Processing and Data Visualization Answer: The issue is with the line above. This code seems to be trying to import the MODIS 09A1 dataset twice. Bascially, in order to import it here you will need a container to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.uvm.edu\/uvmgis\/2023\/01\/11\/remote-sensing-foundations-module-3-qa-introduction-to-image-processing-and-data-visualization\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Remote Sensing Foundations Module 3 Q&amp;A: Introduction to Image Processing and Data Visualization&#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":[702991,702989,702985,702990,1],"tags":[],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-false-color-composites","category-gee","category-google-earth-engine","category-image-processing","category-uncategorized","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\/272","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=272"}],"version-history":[{"count":6,"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/posts\/272\/revisions"}],"predecessor-version":[{"id":371,"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/posts\/272\/revisions\/371"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/media?parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/categories?post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/uvmgis\/wp-json\/wp\/v2\/tags?post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}