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

Identify plant with long narrow paired leaves and reddish stems

Should I discuss the type of campaign with my players?

Can a non-EU citizen traveling with me come with me through the EU passport line?

Denied boarding although I have proper visa and documentation. To whom should I make a complaint?

What is known about the Ubaid lizard-people figurines?

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?

Why was the term "discrete" used in discrete logarithm?

When were vectors invented?

Generate an RGB colour grid

Error "illegal generic type for instanceof" when using local classes

How come Sam didn't become Lord of Horn Hill?

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

When do you get frequent flier miles - when you buy, or when you fly?

How to find all the available tools in mac terminal?

What exactly is a "Meth" in Altered Carbon?

How to react to hostile behavior from a senior developer?

How to deal with a team lead who never gives me credit?

Why is my conclusion inconsistent with the van't Hoff equation?

What would be the ideal power source for a cybernetic eye?

ListPlot join points by nearest neighbor rather than order

Why do we bend a book to keep it straight?

List of Python versions

Bete Noir -- no dairy



Get 10 days period, max NDVI 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;
}







0















I want to make a NDVI 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





























    0















    I want to make a NDVI 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

























      0












      0








      0








      I want to make a NDVI 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














      I want to make a NDVI 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












      share










      share



      share










      asked 1 min ago









      George BoldeanuGeorge Boldeanu

      12




      12






















          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-ndvi-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-ndvi-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

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

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

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