Landsat 8 BQA band has smaller extent than other bands (Earth Engine)Using GDAL/Python to stack georeferenced...

Six real numbers so that product of any five is the sixth one

Contradiction with Banach Fixed Point Theorem

What is the wife of a henpecked husband called?

Is my plan for fixing my water heater leak bad?

Can you 'upgrade' leather armor to studded leather armor without purchasing the new armor directly?

Auto Insert date into Notepad

Easy code troubleshooting in wordpress

How to deny access to SQL Server to certain login over SSMS, but allow over .Net SqlClient Data Provider

Is there a frame of reference in which I was born before I was conceived?

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

Understanding Kramnik's play in game 1 of Candidates 2018

How do ISS astronauts "get their stripes"?

Most significant research articles for practical investors with research perspectives

Multiplication via squaring and addition

Significance and timing of "mux scans"

Is it 40% or 0.4%?

Borrowing Characters

CBP Reminds Travelers to Allow 72 Hours for ESTA. Why?

I encountered my boss during an on-site interview at another company. Should I bring it up when seeing him next time?

How would we write a misogynistic character without offending people?

What am I? I am in theaters and computer programs

What to do when being responsible for data protection in your lab, yet advice is ignored?

What do the pedals on grand pianos do?

What type of postprocessing gives the effect of people standing out



Landsat 8 BQA band has smaller extent than other bands (Earth Engine)


Using GDAL/Python to stack georeferenced images of different sizesGoogle Earth Engine, Landsat scene extraction?How to combine bands and band ratios using earth engineEarth Engine ImageCollection filter alternative temoporal bandsee.Algorithm.EEFlux Evapotranspiration (ET) Landsat Google Earth EngineRemoving images based on band threshold using Google Earth Engine?Set property disappears in ImageCollection mapped function (Earth Engine)Earth Engine mismatched type for bandSelecting Landsat bands to download from Google Earth Engine?Iterate Add Band Google Earth Engine













0















I am using Landsat 8 TOA imagery and noticed that image.geometry() returns an area larger than the BQA band, resulting in gaps along the edges where there are no values. This is a problem for me because when I export a binary image masked with the BQA band, these gaps are automatically filled with zeroes and easily confused with real data zeroes.



Is this a known issue with Landsat imagery, or is it a GEE thing? And are there any ideas for how I could get around this? I am trying to clip to the BQA band using image.select('BQA').geometry() but it gives the same extent as the image.



Here is some code showing the problem:
https://code.earthengine.google.com/f64e94126d3835241f8202adad4f5539



In the code above, I am stacking a bunch of data into an image for export into Python for predicting floods. I'm retrieving a Landsat 8 TOA image, detecting flood waters, masking out clouds with the BQA band, and stacking the flood image and other auxiliary data into one output image.



I then export this image to do classifier training in Python. I noticed the exported image had a lot of padded zeros along the side, and realized that this is due to the BQA band in the Landsat image having a smaller extent than the other bands.



Thanks for any possible insight.









share



























    0















    I am using Landsat 8 TOA imagery and noticed that image.geometry() returns an area larger than the BQA band, resulting in gaps along the edges where there are no values. This is a problem for me because when I export a binary image masked with the BQA band, these gaps are automatically filled with zeroes and easily confused with real data zeroes.



    Is this a known issue with Landsat imagery, or is it a GEE thing? And are there any ideas for how I could get around this? I am trying to clip to the BQA band using image.select('BQA').geometry() but it gives the same extent as the image.



    Here is some code showing the problem:
    https://code.earthengine.google.com/f64e94126d3835241f8202adad4f5539



    In the code above, I am stacking a bunch of data into an image for export into Python for predicting floods. I'm retrieving a Landsat 8 TOA image, detecting flood waters, masking out clouds with the BQA band, and stacking the flood image and other auxiliary data into one output image.



    I then export this image to do classifier training in Python. I noticed the exported image had a lot of padded zeros along the side, and realized that this is due to the BQA band in the Landsat image having a smaller extent than the other bands.



    Thanks for any possible insight.









    share

























      0












      0








      0








      I am using Landsat 8 TOA imagery and noticed that image.geometry() returns an area larger than the BQA band, resulting in gaps along the edges where there are no values. This is a problem for me because when I export a binary image masked with the BQA band, these gaps are automatically filled with zeroes and easily confused with real data zeroes.



      Is this a known issue with Landsat imagery, or is it a GEE thing? And are there any ideas for how I could get around this? I am trying to clip to the BQA band using image.select('BQA').geometry() but it gives the same extent as the image.



      Here is some code showing the problem:
      https://code.earthengine.google.com/f64e94126d3835241f8202adad4f5539



      In the code above, I am stacking a bunch of data into an image for export into Python for predicting floods. I'm retrieving a Landsat 8 TOA image, detecting flood waters, masking out clouds with the BQA band, and stacking the flood image and other auxiliary data into one output image.



      I then export this image to do classifier training in Python. I noticed the exported image had a lot of padded zeros along the side, and realized that this is due to the BQA band in the Landsat image having a smaller extent than the other bands.



      Thanks for any possible insight.









      share














      I am using Landsat 8 TOA imagery and noticed that image.geometry() returns an area larger than the BQA band, resulting in gaps along the edges where there are no values. This is a problem for me because when I export a binary image masked with the BQA band, these gaps are automatically filled with zeroes and easily confused with real data zeroes.



      Is this a known issue with Landsat imagery, or is it a GEE thing? And are there any ideas for how I could get around this? I am trying to clip to the BQA band using image.select('BQA').geometry() but it gives the same extent as the image.



      Here is some code showing the problem:
      https://code.earthengine.google.com/f64e94126d3835241f8202adad4f5539



      In the code above, I am stacking a bunch of data into an image for export into Python for predicting floods. I'm retrieving a Landsat 8 TOA image, detecting flood waters, masking out clouds with the BQA band, and stacking the flood image and other auxiliary data into one output image.



      I then export this image to do classifier training in Python. I noticed the exported image had a lot of padded zeros along the side, and realized that this is due to the BQA band in the Landsat image having a smaller extent than the other bands.



      Thanks for any possible insight.







      python google-earth-engine





      share












      share










      share



      share










      asked 8 mins ago









      la_lechela_leche

      576




      576






















          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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f314371%2flandsat-8-bqa-band-has-smaller-extent-than-other-bands-earth-engine%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
















          draft saved

          draft discarded




















































          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%2f314371%2flandsat-8-bqa-band-has-smaller-extent-than-other-bands-earth-engine%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

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

          Венесуэла на летних Олимпийских играх 2000 Содержание Состав...

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