Skip to main content
naming; English usage
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

Error in exporting image GeotiffGeoTIFF from GEE to Drive

I am trying to export Geotiffa GeoTIFF from GEE to my drive and I have gotten this error messege: Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image<unknown bands>. Actual type: ImageCollection.

This is my code:

// defining Thailand polygon----
var thailand = ee.Geometry.Polygon(
         [[[97.3113107563326, 20.46454530076102],
           [97.3113107563326, 5.601181272588201],
           [105.6389474750826, 5.601181272588201],
           [105.6389474750826, 20.46454530076102]]], null, false);

// loading GPM: Monthly Global Precipitation Measurement (GPM) v6----
var gpm = ee.ImageCollection('NASA/GPM_L3/IMERG_MONTHLY_V06');

// Thailand precipitation since 2019-04-01 to 2020-04-01----
var preci_th = gpm
          .select('precipitation')
          .filterBounds(thailand)
          .filterDate('2019-04-01','2020-05-01');
print(preci_th);

// exporting precipitation of Thailand Geotiff image----
Export.image.toDrive({
  image:preci_th,
  description: 'TH-MonthlyPreci_2019-04_2020-04',
  folder: 'G:/My Drive/Google earth engine',
  fileFormat: 'GeoTIFF'
});

How should I do it?

Error in exporting image Geotiff from GEE to Drive

I am trying to export Geotiff from GEE to my drive and I have gotten this error messege: Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image<unknown bands>. Actual type: ImageCollection.

This is my code:

// defining Thailand polygon----
var thailand = ee.Geometry.Polygon(
         [[[97.3113107563326, 20.46454530076102],
           [97.3113107563326, 5.601181272588201],
           [105.6389474750826, 5.601181272588201],
           [105.6389474750826, 20.46454530076102]]], null, false);

// loading GPM: Monthly Global Precipitation Measurement (GPM) v6----
var gpm = ee.ImageCollection('NASA/GPM_L3/IMERG_MONTHLY_V06');

// Thailand precipitation since 2019-04-01 to 2020-04-01----
var preci_th = gpm
          .select('precipitation')
          .filterBounds(thailand)
          .filterDate('2019-04-01','2020-05-01');
print(preci_th);

// exporting precipitation of Thailand Geotiff image----
Export.image.toDrive({
  image:preci_th,
  description: 'TH-MonthlyPreci_2019-04_2020-04',
  folder: 'G:/My Drive/Google earth engine',
  fileFormat: 'GeoTIFF'
});

How should I do?

Error in exporting image GeoTIFF from GEE to Drive

I am trying to export a GeoTIFF from GEE to my drive and I have gotten this error messege: Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image<unknown bands>. Actual type: ImageCollection.

This is my code:

// defining Thailand polygon----
var thailand = ee.Geometry.Polygon(
         [[[97.3113107563326, 20.46454530076102],
           [97.3113107563326, 5.601181272588201],
           [105.6389474750826, 5.601181272588201],
           [105.6389474750826, 20.46454530076102]]], null, false);

// loading GPM: Monthly Global Precipitation Measurement (GPM) v6----
var gpm = ee.ImageCollection('NASA/GPM_L3/IMERG_MONTHLY_V06');

// Thailand precipitation since 2019-04-01 to 2020-04-01----
var preci_th = gpm
          .select('precipitation')
          .filterBounds(thailand)
          .filterDate('2019-04-01','2020-05-01');
print(preci_th);

// exporting precipitation of Thailand Geotiff image----
Export.image.toDrive({
  image:preci_th,
  description: 'TH-MonthlyPreci_2019-04_2020-04',
  folder: 'G:/My Drive/Google earth engine',
  fileFormat: 'GeoTIFF'
});

How should I do it?

deleted 14 characters in body
Source Link
Kadir Şahbaz
  • 78k
  • 57
  • 257
  • 404

I am trying to export Geotiff from GEE to my drive and I have gotten this error messege: Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection.Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image<unknown bands>. Actual type: ImageCollection.

This is my code:

// defining Thailand polygon----
var thailand = ee.Geometry.Polygon(
         [[[97.3113107563326, 20.46454530076102],
           [97.3113107563326, 5.601181272588201],
           [105.6389474750826, 5.601181272588201],
           [105.6389474750826, 20.46454530076102]]], null, false);

// loading GPM: Monthly Global Precipitation Measurement (GPM) v6----
var gpm = ee.ImageCollection('NASA/GPM_L3/IMERG_MONTHLY_V06');

// Thailand precipitation since 2019-04-01 to 2020-04-01----
var preci_th = gpm
          .select('precipitation')
          .filterBounds(thailand)
          .filterDate('2019-04-01','2020-05-01');
print(preci_th);

// exporting precipitation of Thailand Geotiff image----
Export.image.toDrive({
  image:preci_th,
  description: 'TH-MonthlyPreci_2019-04_2020-04',
  folder: 'G:/My Drive/Google earth engine',
  fileFormat: 'GeoTIFF'
});

How should I do? Thank you.

I am trying to export Geotiff from GEE to my drive and I have gotten this error messege: Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection.

This is my code:

// defining Thailand polygon----
var thailand = ee.Geometry.Polygon(
         [[[97.3113107563326, 20.46454530076102],
           [97.3113107563326, 5.601181272588201],
           [105.6389474750826, 5.601181272588201],
           [105.6389474750826, 20.46454530076102]]], null, false);

// loading GPM: Monthly Global Precipitation Measurement (GPM) v6----
var gpm = ee.ImageCollection('NASA/GPM_L3/IMERG_MONTHLY_V06');

// Thailand precipitation since 2019-04-01 to 2020-04-01----
var preci_th = gpm
          .select('precipitation')
          .filterBounds(thailand)
          .filterDate('2019-04-01','2020-05-01');
print(preci_th);

// exporting precipitation of Thailand Geotiff image----
Export.image.toDrive({
  image:preci_th,
  description: 'TH-MonthlyPreci_2019-04_2020-04',
  folder: 'G:/My Drive/Google earth engine',
  fileFormat: 'GeoTIFF'
});

How should I do? Thank you.

I am trying to export Geotiff from GEE to my drive and I have gotten this error messege: Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image<unknown bands>. Actual type: ImageCollection.

This is my code:

// defining Thailand polygon----
var thailand = ee.Geometry.Polygon(
         [[[97.3113107563326, 20.46454530076102],
           [97.3113107563326, 5.601181272588201],
           [105.6389474750826, 5.601181272588201],
           [105.6389474750826, 20.46454530076102]]], null, false);

// loading GPM: Monthly Global Precipitation Measurement (GPM) v6----
var gpm = ee.ImageCollection('NASA/GPM_L3/IMERG_MONTHLY_V06');

// Thailand precipitation since 2019-04-01 to 2020-04-01----
var preci_th = gpm
          .select('precipitation')
          .filterBounds(thailand)
          .filterDate('2019-04-01','2020-05-01');
print(preci_th);

// exporting precipitation of Thailand Geotiff image----
Export.image.toDrive({
  image:preci_th,
  description: 'TH-MonthlyPreci_2019-04_2020-04',
  folder: 'G:/My Drive/Google earth engine',
  fileFormat: 'GeoTIFF'
});

How should I do?

Source Link

Error in exporting image Geotiff from GEE to Drive

I am trying to export Geotiff from GEE to my drive and I have gotten this error messege: Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection.

This is my code:

// defining Thailand polygon----
var thailand = ee.Geometry.Polygon(
         [[[97.3113107563326, 20.46454530076102],
           [97.3113107563326, 5.601181272588201],
           [105.6389474750826, 5.601181272588201],
           [105.6389474750826, 20.46454530076102]]], null, false);

// loading GPM: Monthly Global Precipitation Measurement (GPM) v6----
var gpm = ee.ImageCollection('NASA/GPM_L3/IMERG_MONTHLY_V06');

// Thailand precipitation since 2019-04-01 to 2020-04-01----
var preci_th = gpm
          .select('precipitation')
          .filterBounds(thailand)
          .filterDate('2019-04-01','2020-05-01');
print(preci_th);

// exporting precipitation of Thailand Geotiff image----
Export.image.toDrive({
  image:preci_th,
  description: 'TH-MonthlyPreci_2019-04_2020-04',
  folder: 'G:/My Drive/Google earth engine',
  fileFormat: 'GeoTIFF'
});

How should I do? Thank you.