Skip to main content
deleted 8 characters in body; edited title
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Exporting a list of lists of numbers from Google Earth Engine

I have received an output in GEE code editor in the form of a list of lists of numbers as shown below:

var list1 = ee.List([[1.7,2.4,3.1],[1.3,2.7,3.1],[1.4,2.4,3.2],[1.9,2.8,3.7]]);

I want to export this result in the form of a csv and for this, I tried the following:

Export.table.toDrive(ee.FeatureCollection(list1));

But it throws the error citing this:

Collection, argument 'features': Invalid type. Expected: List<Element>. Actual: List<List<Float>>.

PleaseCan you help as I am unable to understand where is the problem. Thanks. is?

Exporting a list of lists of numbers from Google Earth Engine

I have received an output in GEE code editor in the form of a list of lists of numbers as shown below:

var list1 = ee.List([[1.7,2.4,3.1],[1.3,2.7,3.1],[1.4,2.4,3.2],[1.9,2.8,3.7]]);

I want to export this result in the form of a csv and for this, I tried the following:

Export.table.toDrive(ee.FeatureCollection(list1));

But it throws the error citing this:

Collection, argument 'features': Invalid type. Expected: List<Element>. Actual: List<List<Float>>.

Please help as I am unable to understand where is the problem. Thanks.

Exporting list of lists of numbers from Google Earth Engine

I have received an output in GEE code editor in the form of a list of lists of numbers as shown below:

var list1 = ee.List([[1.7,2.4,3.1],[1.3,2.7,3.1],[1.4,2.4,3.2],[1.9,2.8,3.7]]);

I want to export this result in the form of a csv and for this, I tried the following:

Export.table.toDrive(ee.FeatureCollection(list1));

But it throws the error citing this:

Collection, argument 'features': Invalid type. Expected: List<Element>. Actual: List<List<Float>>.

Can you help as I am unable to understand where the problem is?

added 16 characters in body
Source Link
user95904
  • 179
  • 1
  • 8

I have received an output in GEE code editor in the form of a list of lists of numbers as shown below:

var list1 = ee.List([[1.7,2.4,3.1],[1.3,2.7,3.1],[1.4,2.4,3.2],[1.9,2.8,3.7]]);

var list1 = ee.List([[1.7,2.4,3.1],[1.3,2.7,3.1],[1.4,2.4,3.2],[1.9,2.8,3.7]]);

I want to export this result in the form of a csv and for this, I tried the following:

Export.table.toDrive(ee.FeatureCollection(list1));

Export.table.toDrive(ee.FeatureCollection(list1));

But it throws the error citing this:

Collection, argument 'features': Invalid type. Expected: List Element. Actual: List List Float

Collection, argument 'features': Invalid type. Expected: List<Element>. Actual: List<List<Float>>.

Please help as I am unable to understand where is the problem. Thanks.

I have received an output in GEE code editor in the form of a list of lists of numbers as shown below:

var list1 = ee.List([[1.7,2.4,3.1],[1.3,2.7,3.1],[1.4,2.4,3.2],[1.9,2.8,3.7]]);

I want to export this result in the form of a csv and for this, I tried the following:

Export.table.toDrive(ee.FeatureCollection(list1));

But it throws the error citing this:

Collection, argument 'features': Invalid type. Expected: List Element. Actual: List List Float

Please help as I am unable to understand where is the problem. Thanks.

I have received an output in GEE code editor in the form of a list of lists of numbers as shown below:

var list1 = ee.List([[1.7,2.4,3.1],[1.3,2.7,3.1],[1.4,2.4,3.2],[1.9,2.8,3.7]]);

I want to export this result in the form of a csv and for this, I tried the following:

Export.table.toDrive(ee.FeatureCollection(list1));

But it throws the error citing this:

Collection, argument 'features': Invalid type. Expected: List<Element>. Actual: List<List<Float>>.

Please help as I am unable to understand where is the problem. Thanks.

Source Link
user95904
  • 179
  • 1
  • 8

Exporting a list of lists of numbers from Google Earth Engine

I have received an output in GEE code editor in the form of a list of lists of numbers as shown below:

var list1 = ee.List([[1.7,2.4,3.1],[1.3,2.7,3.1],[1.4,2.4,3.2],[1.9,2.8,3.7]]);

I want to export this result in the form of a csv and for this, I tried the following:

Export.table.toDrive(ee.FeatureCollection(list1));

But it throws the error citing this:

Collection, argument 'features': Invalid type. Expected: List Element. Actual: List List Float

Please help as I am unable to understand where is the problem. Thanks.