Questions tagged [google-earth-engine]

Google's cloud computing platform for geospatial data & analysis at earthengine.google.com, which can be programmed using either Python or JavaScript client libraries.

Earth Engine has client libraries in both and .

807 questions
3
votes
1 answer

Uploading Shapefile to Google Earth Engine Assets "Error: Invalid property name: No. of for."

Trying to upload a Shapefile (with files .shp, .shx, .cpg, .dbf, .prj) to my assets as a new shape file, I get the following error: "Error: Invalid property name: No. of for.". Can someone help me what this error means in GEE? Thanks in advance!
Chris
  • 31
  • 1
3
votes
2 answers

GEE do not import data into array

I am having problems importing data from Google Earth Engine to a local array using Python API. A simplified version of my code: import ee ee.Initialize() #Load a collection TERRA = ee.ImageCollection("MODIS/006/MOD09A1").select(['sur_refl_b02',…
Lacococha
  • 128
  • 8
3
votes
1 answer

Google Earth Engine: trying to get an array of values from a feature collection but I'm getting an empty array out

I have a point feature which I've used to reduce values from an image collection. The values are obtained as a new feature's property by mapping over the images with this code (specifically getting ndvi values): var my_vals = images.map(function…
3
votes
0 answers

Reduce Regions, some features dont contains centroid of pixel, in consecuence extracts of min or max obtains null value

I have some problems to extract min or max statistcs from stack image to FeatureCollection. ----var results_max = ee.Image(lc_stack).select(bandas).reduceRegions(fc ,ee.Reducer.max(),10); Specification of problem 1 When i use min or max reducers,…
szaprza
  • 31
  • 3
3
votes
1 answer

raster is split in multiple files when exporting to drive from Earth Engine

When I export a raster file to my drive, it gets split into 4 parts. Why is this happening? It might be related to the dimensions attribute, which I don't use. But a default value is not given. I used this command: Export.image.toDrive({ image:…
3
votes
1 answer

Creating a transparent color within a string palette

I am working within Google Earth Engine and am trying to create a no-color/completely transparent color (no boarder and no fill). Below is a line of code where the first color should be the transparent "color". Basically I want my min value to not…
Binx
  • 382
  • 7
  • 22
3
votes
0 answers

How to Upload Asset to Google Earth Engine from Google Drive/Colab

As you know, there is a command line tool, earthengine, one of which capabilities is that it allows you to upload images/tables to Google Earth Engine (GEE) from Google Cloud Storage (GCS): earthengine upload image…
Fardo
  • 107
  • 1
  • 1
  • 9
3
votes
0 answers

GEE Python API: Export table fails with unexpected error

I am converting a process that works in the Javascript code editor into Python and it fails at the point of export but the documentation seems very sparse. There is a similar question here but the solution doesn't seem to apply in my case…
MappaGnosis
  • 1,179
  • 1
  • 11
  • 25
3
votes
1 answer

Splitting a feature collection by system index in Google Earth Engine?

I am trying to export a large feature collection from GEE. I realize that the Python API allows for this more easily than the Java does, but given a time constraint on my research, I'd like to see if I can extract the feature collection in pieces…
C. Ashley
  • 150
  • 1
  • 5
3
votes
2 answers

Installing earth engine on Ubuntu

I want to install Earth Engine API on Python on Ubuntu 18.04. I have both Python 2.7 and Python 3.6 installed on my system, and I install Earth Engine using both pip and pip3 as instructed (installing google-api-python-client, oauth2client, and…
Shahriar49
  • 621
  • 1
  • 5
  • 18
3
votes
2 answers

Aggregate GPM hourly data to daily in GEE

I need to aggregate the sum of 48 half-hourly images per day of a GPM collection getting an imageCollection with the band "precipitationCal" and daily images I've tried to fill and iterate an empty featureCollection but I get an empty collection…
tmsppc
  • 107
  • 3
  • 10
3
votes
4 answers

Can I map a function with more then one argument?

In EE (Google Earth Engine Javascript API) I can do var listOfNumbers = [0, 1, 1, 2, 3, 5]; print('List of numbers:', listOfNumbers); var add_ten = function(n) { var m = n + 10; return m; } var listOfNumbers_ =…
KcFnMi
  • 5,516
  • 10
  • 62
  • 136
3
votes
2 answers

GEE Python API: Export image to Google Drive fails

Using GEE Python API in an application running with App Engine (on localhost), I am trying to export an image to a file in Google Drive. The task seems to start and complete successfully but no file is created in Google Drive. I have tried to…
Particimon
  • 31
  • 1
  • 2
3
votes
1 answer

Which function is correct for cloud masking

I was writing a function to mask cloudy pixels of the Sentinel-2 data. Function 1: function cloudMask(image) { var qa = image.select('QA60'); var cloudBitMask = 1 << 10; ### var cirrusBitMask = 1 << 11; ### var mask =…
user10772275
3
votes
2 answers

Google Earth Engine ee.Number to integer

This is probably a simple question for people familiarized with the Code Editor of Google Earth Engine (https://code.earthengine.google.com/) or generally Javascript. In my code, I need to use the size of an object for a boolean conditional (e.g.…
1 2
3
53 54