Get 10 days period, max NDSI from MODIS/Terra 500m resolution daily product(MOD09GA)? Planned...

How to override model in magento2?

Can an alien society believe that their star system is the universe?

Is it fair for a professor to grade us on the possession of past papers?

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

Seeking colloquialism for “just because”

Why aren't air breathing engines used as small first stages

porting install scripts : can rpm replace apt?

List *all* the tuples!

Do I really need recursive chmod to restrict access to a folder?

English words in a non-english sci-fi novel

Novel: non-telepath helps overthrow rule by telepaths

How to find all the available tools in mac terminal?

How to call a function with default parameter through a pointer to function that is the return of another function?

How does debian/ubuntu knows a package has a updated version

How to bypass password on Windows XP account?

How to answer "Have you ever been terminated?"

Okay to merge included columns on otherwise identical indexes?

How to find out what spells would be useless to a blind NPC spellcaster?

What is Wonderstone and are there any references to it pre-1982?

In predicate logic, does existential quantification (∃) include universal quantification (∀), i.e. can 'some' imply 'all'?

51k Euros annually for a family of 4 in Berlin: Is it enough?

Sci-Fi book where patients in a coma ward all live in a subconscious world linked together

Echoing a tail command produces unexpected output?

What does this icon in iOS Stardew Valley mean?



Get 10 days period, max NDSI from MODIS/Terra 500m resolution daily product(MOD09GA)?



Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Maximum ndvi for 3 months average in Google Earth EngineAccess joined Image using ee.Join.saveFirst() in GEECombine bands from two image collectionsExtract rows and columns from a raster in Google Earth EngineTrying to map through and reduce regions of image using Google Earth Engine?Extracting index/position of maximum value in annual time series in Google Earth Engine?Google Earth Engine, how to distinguish between rivers/streams and ponds/lakes in a water maskExporting entire ImageCollection in Google Earth Engine using geetools for JavaScript or Python for Windows?Creating a script to track down the source image of a pixel within an imagecollection in GGENDVI Scaling in Google Earth Engine?Tile error Google Earth Engine “Some bands might require explicit casts”





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I want to make a NDSI with a ten days period from daily MOD09GA with Google Earth Engine.
The code is a adaptation from this code Maximum ndvi for 3 months average in Google Earth Engine and with this i want to thank Nicholas Clinton for his efforts to help the community.



When I use the code(the comment in the code) for renaming images after their dates, all goes well but when i try to download it, gives me error. The error is Error: Expected a homogeneous image collection, but an image with incompatible bands was encountered: First image type: 1 bands ([2001_01_21]). Current image type: 1 bands ([2001_01_22]). Image ID: 2001_01_22 Some bands might require explicit casts.



My doubts are how can I rename those NDSI's with the date name so I can export it right ??



var pol3=ee.FeatureCollection('users/georgeboldeanu20/front_WGS');
var batch = require('users/fitoprincipe/geetools:batch')

var NDSI = ee.ImageCollection('MODIS/006/MOD09GA').map(function(image) {
return image.select().addBands(image.normalizedDifference(['sur_refl_b04','sur_refl_b07'])).rename('NDSI').clip(pol3);
});
//This is the rename code
////var NDSI_name = NDSI.map( function(img){
/// var id = img.id()
///img = img.select('NDSI').rename(id);
///return img.copyProperties(img,['system:time_start','system:time_end']); });
//print(NDSI_name);

var COLlection = function(collection, start, count, interval, units) {
var sequence = ee.List.sequence(0, ee.Number(count).subtract(1));

var originalStartDate = ee.Date(start);

return ee.ImageCollection(sequence.map(function(i) {
var startDate = originalStartDate.advance(ee.Number(interval).multiply(i), units);

var endDate = originalStartDate.advance(
ee.Number(interval).multiply(ee.Number(i).add(1)), units);

return collection.filterDate(startDate, endDate)
.reduce(ee.Reducer.max());
}));
};

var days= COLlection(NDSI_name, ee.Date('2001-01-01'),10, 10, 'day');

var test = ee.Image(days.first());
print(test)
print(days)

batch.Download.ImageCollection.toDrive(luni, "Folder", {region:pol3.geometry().bounds(),crs:'EPSG:4326', scale:300});










share|improve this question































    1















    I want to make a NDSI with a ten days period from daily MOD09GA with Google Earth Engine.
    The code is a adaptation from this code Maximum ndvi for 3 months average in Google Earth Engine and with this i want to thank Nicholas Clinton for his efforts to help the community.



    When I use the code(the comment in the code) for renaming images after their dates, all goes well but when i try to download it, gives me error. The error is Error: Expected a homogeneous image collection, but an image with incompatible bands was encountered: First image type: 1 bands ([2001_01_21]). Current image type: 1 bands ([2001_01_22]). Image ID: 2001_01_22 Some bands might require explicit casts.



    My doubts are how can I rename those NDSI's with the date name so I can export it right ??



    var pol3=ee.FeatureCollection('users/georgeboldeanu20/front_WGS');
    var batch = require('users/fitoprincipe/geetools:batch')

    var NDSI = ee.ImageCollection('MODIS/006/MOD09GA').map(function(image) {
    return image.select().addBands(image.normalizedDifference(['sur_refl_b04','sur_refl_b07'])).rename('NDSI').clip(pol3);
    });
    //This is the rename code
    ////var NDSI_name = NDSI.map( function(img){
    /// var id = img.id()
    ///img = img.select('NDSI').rename(id);
    ///return img.copyProperties(img,['system:time_start','system:time_end']); });
    //print(NDSI_name);

    var COLlection = function(collection, start, count, interval, units) {
    var sequence = ee.List.sequence(0, ee.Number(count).subtract(1));

    var originalStartDate = ee.Date(start);

    return ee.ImageCollection(sequence.map(function(i) {
    var startDate = originalStartDate.advance(ee.Number(interval).multiply(i), units);

    var endDate = originalStartDate.advance(
    ee.Number(interval).multiply(ee.Number(i).add(1)), units);

    return collection.filterDate(startDate, endDate)
    .reduce(ee.Reducer.max());
    }));
    };

    var days= COLlection(NDSI_name, ee.Date('2001-01-01'),10, 10, 'day');

    var test = ee.Image(days.first());
    print(test)
    print(days)

    batch.Download.ImageCollection.toDrive(luni, "Folder", {region:pol3.geometry().bounds(),crs:'EPSG:4326', scale:300});










    share|improve this question



























      1












      1








      1








      I want to make a NDSI with a ten days period from daily MOD09GA with Google Earth Engine.
      The code is a adaptation from this code Maximum ndvi for 3 months average in Google Earth Engine and with this i want to thank Nicholas Clinton for his efforts to help the community.



      When I use the code(the comment in the code) for renaming images after their dates, all goes well but when i try to download it, gives me error. The error is Error: Expected a homogeneous image collection, but an image with incompatible bands was encountered: First image type: 1 bands ([2001_01_21]). Current image type: 1 bands ([2001_01_22]). Image ID: 2001_01_22 Some bands might require explicit casts.



      My doubts are how can I rename those NDSI's with the date name so I can export it right ??



      var pol3=ee.FeatureCollection('users/georgeboldeanu20/front_WGS');
      var batch = require('users/fitoprincipe/geetools:batch')

      var NDSI = ee.ImageCollection('MODIS/006/MOD09GA').map(function(image) {
      return image.select().addBands(image.normalizedDifference(['sur_refl_b04','sur_refl_b07'])).rename('NDSI').clip(pol3);
      });
      //This is the rename code
      ////var NDSI_name = NDSI.map( function(img){
      /// var id = img.id()
      ///img = img.select('NDSI').rename(id);
      ///return img.copyProperties(img,['system:time_start','system:time_end']); });
      //print(NDSI_name);

      var COLlection = function(collection, start, count, interval, units) {
      var sequence = ee.List.sequence(0, ee.Number(count).subtract(1));

      var originalStartDate = ee.Date(start);

      return ee.ImageCollection(sequence.map(function(i) {
      var startDate = originalStartDate.advance(ee.Number(interval).multiply(i), units);

      var endDate = originalStartDate.advance(
      ee.Number(interval).multiply(ee.Number(i).add(1)), units);

      return collection.filterDate(startDate, endDate)
      .reduce(ee.Reducer.max());
      }));
      };

      var days= COLlection(NDSI_name, ee.Date('2001-01-01'),10, 10, 'day');

      var test = ee.Image(days.first());
      print(test)
      print(days)

      batch.Download.ImageCollection.toDrive(luni, "Folder", {region:pol3.geometry().bounds(),crs:'EPSG:4326', scale:300});










      share|improve this question
















      I want to make a NDSI with a ten days period from daily MOD09GA with Google Earth Engine.
      The code is a adaptation from this code Maximum ndvi for 3 months average in Google Earth Engine and with this i want to thank Nicholas Clinton for his efforts to help the community.



      When I use the code(the comment in the code) for renaming images after their dates, all goes well but when i try to download it, gives me error. The error is Error: Expected a homogeneous image collection, but an image with incompatible bands was encountered: First image type: 1 bands ([2001_01_21]). Current image type: 1 bands ([2001_01_22]). Image ID: 2001_01_22 Some bands might require explicit casts.



      My doubts are how can I rename those NDSI's with the date name so I can export it right ??



      var pol3=ee.FeatureCollection('users/georgeboldeanu20/front_WGS');
      var batch = require('users/fitoprincipe/geetools:batch')

      var NDSI = ee.ImageCollection('MODIS/006/MOD09GA').map(function(image) {
      return image.select().addBands(image.normalizedDifference(['sur_refl_b04','sur_refl_b07'])).rename('NDSI').clip(pol3);
      });
      //This is the rename code
      ////var NDSI_name = NDSI.map( function(img){
      /// var id = img.id()
      ///img = img.select('NDSI').rename(id);
      ///return img.copyProperties(img,['system:time_start','system:time_end']); });
      //print(NDSI_name);

      var COLlection = function(collection, start, count, interval, units) {
      var sequence = ee.List.sequence(0, ee.Number(count).subtract(1));

      var originalStartDate = ee.Date(start);

      return ee.ImageCollection(sequence.map(function(i) {
      var startDate = originalStartDate.advance(ee.Number(interval).multiply(i), units);

      var endDate = originalStartDate.advance(
      ee.Number(interval).multiply(ee.Number(i).add(1)), units);

      return collection.filterDate(startDate, endDate)
      .reduce(ee.Reducer.max());
      }));
      };

      var days= COLlection(NDSI_name, ee.Date('2001-01-01'),10, 10, 'day');

      var test = ee.Image(days.first());
      print(test)
      print(days)

      batch.Download.ImageCollection.toDrive(luni, "Folder", {region:pol3.geometry().bounds(),crs:'EPSG:4326', scale:300});







      google-earth-engine






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 mins ago







      George Boldeanu

















      asked 1 hour ago









      George BoldeanuGeorge Boldeanu

      63




      63






















          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%2f319066%2fget-10-days-period-max-ndsi-from-modis-terra-500m-resolution-daily-productmod0%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%2f319066%2fget-10-days-period-max-ndsi-from-modis-terra-500m-resolution-daily-productmod0%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 Содержание Параметры шины | Стандартизация |...