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
1
vote
1 answer

calculating percentage of different bands within polygons

I am currently working with a dataset from GEE (USGS/GFSAD1000_V0) with the purpose of transposing it onto a set of polygons that I already have determined before all of this. I am now trying to calculate the percentage of pixels of different values…
1
vote
1 answer

How to re-number Landsat 8 bands so that I can merge with Landsat 4-7 images?

I am wanting to merge Landsat 4, 5, 7, and 8 imagery. I need to adjust the Landsat 8 bands so that they match the other Landsat imagery bands. This is the basic structure of my code: // L4 collection var L4 =…
Lola
  • 41
  • 2
  • 6
1
vote
2 answers

How to select specific images for an image collection using metadata properties in Google Earth Engine?

I am very new to Google Earth Engine. I want to create image collections with specific images that I have pre-selected. I think that maybe I should filter by metadata properties - either date or product_ID. It's not working and I need to figure out…
Lola
  • 41
  • 2
  • 6
1
vote
0 answers

property 'pc2' of feature '1_1_1_1_0_0' is missing

while using google earth engine to classify the land use of an area, the error of property 'pc2' of feature '1_1_1_1_0_0' is missing, appears. actually this error appears for all bands of my testing data. here is my code: var classesT =…
1
vote
1 answer

How to create a single Feature by selecting from a FeatureCollection?

I have a FeatureCollection of the Burmese state and region boundaries. As my study site only includes one state (the Ayeyarwady Region), I would like to mask my other data (mangrove cover, in this case) by this state. I tried the following: // Load…
Sytze
  • 345
  • 2
  • 12
1
vote
1 answer

How to sum up the first 5 list values in the list of numbers in the earth engine

Let the var t = [1,2,3,4,5,6,7,8,9]. I want to sum up the first 5 values in the list and print the number. I want the number 15.
1
vote
2 answers

How to clip an image collection to a feature collection's geometry

I'm trying to clip an image collection to the province of Alberta, but filterBounds is not working. Thank you for any help you can offer! I would like the image collection to be clipped, not just the layer on the map, so when I perform operations on…
Carrie Ann Adams
  • 43
  • 1
  • 1
  • 5
1
vote
2 answers

Iterate over a list and remove their elements multiple times

I have the following script in Python, each 30 seconds is checking all the tasks in a list, when a task is completed (FAILED, CANCEL or COMPLETED), the task is removed from the original task and then will track again the other tasks. The code is…
dguerrero
  • 359
  • 2
  • 10
1
vote
0 answers

Google Earth Engine - Buffer around Cloud Mask Sentinel2

I'm trying to create a cloud free S2 Image. Now this code works, but I want to add a buffer of 20 or 30 meters around the cloud mask, because there still is the edge of the clouds in my image. [![Example image][1]][1] * Function to mask clouds…
Max
  • 45
  • 3
1
vote
1 answer

How can I copy a value from server to client in Google Earth Engine?

On Google Earth Engine, suppose I have a Number on the server side. How can I get it as an integer on the client side? var x = ee.Number(42) typeof(x) // yields "object", i.e. server side var y = ??? // what function of x will get me a local 42…
mspices
  • 335
  • 2
  • 11
1
vote
2 answers

Getting the key with largest value from aggregate_histogram result in Google Earth Engine

In Google Earth Engine, I am getting an object obj from an aggregate_histogram call, and print(obj) shows the following: { "115.0": 1, "137.0": 1, "35.0": 137, "42.0": 164 } I would like to extract the key for which the value is largest, so…
mspices
  • 335
  • 2
  • 11
1
vote
1 answer

Google Earth Engine download problems, is this caused by immutable server side objects?

I have a function that will download an image collection as a TFrecord or a geotiff. Heres the function - def download_image_collection_to_drive(collection, aois, bands, limit, export_format): if collection.size().lt(ee.Number(limit)): …
Javrel
  • 65
  • 6
1
vote
1 answer

Selecting an image from an ee.ImageCollection based on the median value of an attribute

I am attributing an image collection with a value, I want to select the image with the median value of that image collection. Currently I am doing this by creating a list of images with the value clientside, padding the list to be odd then using…
Javrel
  • 65
  • 6
1
vote
1 answer

I want to produce NDVI time series chart in GEE and I'm encountering an error "Error generating chart: User memory limit exceeded."

The following is the code I used, please help me out to solve this error so that I can be able to produce the time series plot. thanks in advance! when I run this code I get this error "Error generating chart: User memory limit exceeded." var…
Teehaysh
  • 11
  • 2
1
vote
0 answers

Google EarthEngine: No command named earthengine

I am trying to install Google EarthEngine for Python. I am following the instructions listed out in this tutorial: https://www.earthdatascience.org/tutorials/intro-google-earth-engine-python-api/. When I run Python shell, and execute import ee, it…
Henry Zhu
  • 2,488
  • 9
  • 43
  • 87