I am trying to export an image to Assets after adding a band representing time using the following code:

//Function to add a timestamp as a new band//
var createTimeBand = function(image) {
  return image.addBands(image.metadata('system:time_start').divide(3.154e10));

var img = ee.Image('LANDSAT/LC08/C01/T1_TOA/LC08_062011_20130719');
var img = createTimeBand(img);

  image: img,
  scale: 30

but I am getting this error after a few seconds when I try and run the task:

enter image description here

There seem to be no problems exporting without the timestamp band, but it is not clear to me why the timestamp causes this error.


Unlike property names, band names cannot contain the colon character. Try renaming the band you are adding:

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.