Creating cloud free imagery and applying NDVI calculation to NAIP, Sentinel 2, and L8 collections using...

Are small insurances worth it?

Why is there an extra space when I type "ls" on the Desktop?

I reported the illegal activity of my boss to his boss. My boss found out. Now I am being punished. What should I do?

How can I portion out frozen cookie dough?

Locked Away- What am I?

Is divide-by-zero a security vulnerability?

Is this Paypal Github SDK reference really a dangerous site?

Too soon for a plot twist?

School performs periodic password audits. Is my password compromised?

Use Mercury as quenching liquid for swords?

Can the Witch Sight warlock invocation see through the Mirror Image spell?

How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?

What is the purpose of a disclaimer like "this is not legal advice"?

Is there stress on two letters on the word стоят

"If + would" conditional in present perfect tense

If sound is a longitudinal wave, why can we hear it if our ears aren't aligned with the propagation direction?

Movie: boy escapes the real world and goes to a fantasy world with big furry trolls

Which country has more?

Cycles on the torus

What is better: yes / no radio, or simple checkbox?

Can I take the the bonus-action attack from Two-Weapon Fighting without taking the Attack action?

How should I solve this integral with changing parameters?

Can one live in the U.S. and not use a credit card?

Do Paladin Auras of Differing Oaths Stack?



Creating cloud free imagery and applying NDVI calculation to NAIP, Sentinel 2, and L8 collections using Google Earth Engine?


How do I create a Sentinel-2 cloud free, cloud-shadow free composite or scene on Earth Engine (GEE)?GEE cloud-free Sentinel2 and linear RegressionHow do I create a Sentinel-2 cloud free, cloud-shadow free composite or scene on Earth Engine (GEE)?Google Earth Engine, how to distinguish between rivers/streams and ponds/lakes in a water maskComputation Timed out error when creating a cloud-free composite of Sentinel-2













0















I'm trying to get cloud and shadow-free (or as close to cloud free) scenes for Landsat 8, NAIP, and Sentinel 2 (specifically sentinel 2 10 meter resolution), and then apply the NDVI calculation to each set.



After that, I'd like to look at those values within specific polygon geometries I've created, but that's a separate thing I'd like to try on my own first!



I'm fairly new to GEE, and though I've watched the tutorials I still have some trouble with basic things it seems.



Here is just the portion I have so far for Landsat 8, though it's not running error-free.



// add three imagery layers to neighborhoods and filter date
var l8filtered = landsat8.filterDate('2016-10-01', '2016-10-31');
.sort('CLOUD_COVER');
.first());

// send to console/add to map
print(l8filtered, "l8 filter")
Map.addLayer(l8filtered,{},"L8")

//create NDVI image
var l8_ndvi = l8filtered.normalizedDifference(['B5','B4']);
Map.addLayer(l8_ndvi,{min:-0.1, max:0.1, palette:['FFFFFF', '339900']},'L8 NDVI');


For the cloud shadow - I've been sleuthing a did come across this post, however it's not quite making sense to me.



For the Landsat 8 imagery specifically - am I right in defining the bands in the l8_ndvi variable, or should I be calling the bands out before that?










share|improve this question









New contributor




Chris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I'm trying to get cloud and shadow-free (or as close to cloud free) scenes for Landsat 8, NAIP, and Sentinel 2 (specifically sentinel 2 10 meter resolution), and then apply the NDVI calculation to each set.



    After that, I'd like to look at those values within specific polygon geometries I've created, but that's a separate thing I'd like to try on my own first!



    I'm fairly new to GEE, and though I've watched the tutorials I still have some trouble with basic things it seems.



    Here is just the portion I have so far for Landsat 8, though it's not running error-free.



    // add three imagery layers to neighborhoods and filter date
    var l8filtered = landsat8.filterDate('2016-10-01', '2016-10-31');
    .sort('CLOUD_COVER');
    .first());

    // send to console/add to map
    print(l8filtered, "l8 filter")
    Map.addLayer(l8filtered,{},"L8")

    //create NDVI image
    var l8_ndvi = l8filtered.normalizedDifference(['B5','B4']);
    Map.addLayer(l8_ndvi,{min:-0.1, max:0.1, palette:['FFFFFF', '339900']},'L8 NDVI');


    For the cloud shadow - I've been sleuthing a did come across this post, however it's not quite making sense to me.



    For the Landsat 8 imagery specifically - am I right in defining the bands in the l8_ndvi variable, or should I be calling the bands out before that?










    share|improve this question









    New contributor




    Chris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I'm trying to get cloud and shadow-free (or as close to cloud free) scenes for Landsat 8, NAIP, and Sentinel 2 (specifically sentinel 2 10 meter resolution), and then apply the NDVI calculation to each set.



      After that, I'd like to look at those values within specific polygon geometries I've created, but that's a separate thing I'd like to try on my own first!



      I'm fairly new to GEE, and though I've watched the tutorials I still have some trouble with basic things it seems.



      Here is just the portion I have so far for Landsat 8, though it's not running error-free.



      // add three imagery layers to neighborhoods and filter date
      var l8filtered = landsat8.filterDate('2016-10-01', '2016-10-31');
      .sort('CLOUD_COVER');
      .first());

      // send to console/add to map
      print(l8filtered, "l8 filter")
      Map.addLayer(l8filtered,{},"L8")

      //create NDVI image
      var l8_ndvi = l8filtered.normalizedDifference(['B5','B4']);
      Map.addLayer(l8_ndvi,{min:-0.1, max:0.1, palette:['FFFFFF', '339900']},'L8 NDVI');


      For the cloud shadow - I've been sleuthing a did come across this post, however it's not quite making sense to me.



      For the Landsat 8 imagery specifically - am I right in defining the bands in the l8_ndvi variable, or should I be calling the bands out before that?










      share|improve this question









      New contributor




      Chris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I'm trying to get cloud and shadow-free (or as close to cloud free) scenes for Landsat 8, NAIP, and Sentinel 2 (specifically sentinel 2 10 meter resolution), and then apply the NDVI calculation to each set.



      After that, I'd like to look at those values within specific polygon geometries I've created, but that's a separate thing I'd like to try on my own first!



      I'm fairly new to GEE, and though I've watched the tutorials I still have some trouble with basic things it seems.



      Here is just the portion I have so far for Landsat 8, though it's not running error-free.



      // add three imagery layers to neighborhoods and filter date
      var l8filtered = landsat8.filterDate('2016-10-01', '2016-10-31');
      .sort('CLOUD_COVER');
      .first());

      // send to console/add to map
      print(l8filtered, "l8 filter")
      Map.addLayer(l8filtered,{},"L8")

      //create NDVI image
      var l8_ndvi = l8filtered.normalizedDifference(['B5','B4']);
      Map.addLayer(l8_ndvi,{min:-0.1, max:0.1, palette:['FFFFFF', '339900']},'L8 NDVI');


      For the cloud shadow - I've been sleuthing a did come across this post, however it's not quite making sense to me.



      For the Landsat 8 imagery specifically - am I right in defining the bands in the l8_ndvi variable, or should I be calling the bands out before that?







      google-earth-engine






      share|improve this question









      New contributor




      Chris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Chris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 1 min ago









      PolyGeo

      53.6k1781243




      53.6k1781243






      New contributor




      Chris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 18 mins ago









      ChrisChris

      12




      12




      New contributor




      Chris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Chris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Chris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Chris is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f314955%2fcreating-cloud-free-imagery-and-applying-ndvi-calculation-to-naip-sentinel-2-a%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Chris is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Chris is a new contributor. Be nice, and check out our Code of Conduct.













          Chris is a new contributor. Be nice, and check out our Code of Conduct.












          Chris is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f314955%2fcreating-cloud-free-imagery-and-applying-ndvi-calculation-to-naip-sentinel-2-a%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

          Meter-Bus Содержание Параметры шины | Стандартизация |...