Questions tagged [google-earth-engine]

Google's cloud computing platform for geospatial data & analysis at earthengine.google.com.

Filter by
Sorted by
Tagged with
24 votes
2 answers
9k views

Mosaicking Image Collection by Date (day) in Google Earth Engine

I have an image collection of Sentinel-1 data over 3 years filtered by a region of interest that spans 3-4 tiles, and want to know the best way to mosaic all the images (tiles) that were taken on the ...
deepsky's user avatar
  • 469
20 votes
5 answers
21k views

Source for high-resolution satellite images free/low-cost?

I am doing a household survey in Kenya, and I need to ensure that my survey team visits every house within a given area. I've been going to google maps and right-clicking on roofs to get coordinates ...
generic_user's user avatar
18 votes
2 answers
2k views

Concatenating export path in Google Earth Engine

My goal is to store different exports from Earth Engine projects in separate subfolders of a main GEE_export folder on my Google Drive. I'm using Export.image.toDrive: Export.image.toDrive({ ...
Basile's user avatar
  • 3,533
15 votes
2 answers
11k views

Moving from Earth Engine image to array for use in sklearn

I've produced a very large multiband image in EE with the goal of classifying it using the classifiers implemented in sklearn (the native ones implemented in EE don't provide enough flexibility for my ...
LAT's user avatar
  • 559
15 votes
2 answers
24k views

Clipping vs Filtering Images with a Polygon - Google Earth Engine

I need to analyze the area defined by a polygon that I drew (call it 'X') of the images of Modis Terrra. What is the difference between filtering bounds and clipping to define the area of interest? I'...
Raimundo's user avatar
  • 657
13 votes
1 answer
19k views

Extracting pixel values by points and converting to table in Google Earth Engine?

I realise that this question has been asked before as Extract pixel values by points and convert to a table in Google Earth Engine at Stack Overflow. However, I can't get the code to work. It runs, ...
Thomas Worthington's user avatar
12 votes
2 answers
10k views

What are the min and max values of Map.addLayer on Google Earth Engine? [closed]

I'm starting to play with Google Earth Engine. Following https://developers.google.com/earth-engine/image_visualization I see its possible to set min/max values. May I ask the meaning of this and ...
KcFnMi's user avatar
  • 563
12 votes
1 answer
12k views

Adding Properties to a feature in Google Earth Engine

Is there a way to add a property to a feature in the GEE. I know that you can edit existing properties with set(), but haven't found a way to add a property.
Kai's user avatar
  • 188
11 votes
2 answers
35k views

Exporting each image from collection in Google Earth Engine

I am trying to export each image in a filtered stack of Sentinel-1 images and cannot seem to get it right. Think link suggests using imageCollection.map() and a custom function (such as a geometric ...
ThrushJacket's user avatar
11 votes
3 answers
14k views

How to stack bands in Google Earth Engine?

I have created an Image collection in GEE and with the help of a function I have computed NDVI index and mapped it to create another collection with NDVI as a band. Now I want the create a stacked ...
Rawail Naeem's user avatar
11 votes
1 answer
13k views

Selecting bands of image collection in Google Earth Engine? [closed]

I want to use the Landsat 8 surface reflection collection (LANDSAT/LC08/C01/T1_SR), which contains the 7 spectral bands plus some extra mask bands. I want to run my algorithm on just the 7 spectral ...
user6072577's user avatar
  • 1,552
11 votes
1 answer
5k views

Understanding tileScale in Earth Engine [closed]

In many Earth Engine functions such as Image.reduceRegions or Image.sample, there is an argument called tileScale. The API documentation generally interprets it as: A scaling factor used to reduce ...
Liman's user avatar
  • 420
11 votes
2 answers
8k views

How do I visualize points in a FeatureCollection based on feature properties using Google Earth Engine?

New user of Earth Engine and Javascript here. I have a FeatureCollection of points. These points are field observations where researchers have marked water sources, and noted whether or not they were ...
Anson Call's user avatar
11 votes
3 answers
4k views

Extracting pixel time series from Google Earth Engine

I have written a short program in Python to extract a time series for any given pixel for MODIS data stored in the Google Earth Engine. The code is working fine and returns a data frame containing the ...
tda's user avatar
  • 531
11 votes
1 answer
5k views

What is the difference between sample, sampleRegions, and stratifiedSample in Google Earth Engine?

According to the documentation of GEE ee.Image.sample() samples the pixels of an image and returns them as a FeatureCollection, in which each feature has 1 property per band in the input image. You ...
Michael's user avatar
  • 1,176
11 votes
1 answer
793 views

How to use a custom function inside GEE ee.Reducer?

I have generated a segmentation using SNIC on GEE and calculated some statistics/features for each segment, using ee.Reducer e.g. mean, std, median, etc. I want to calculate more features based on my ...
Federico's user avatar
  • 367
10 votes
6 answers
16k views

Batch task execution in Google Earth Engine

I need to make tens of clipped portions of an image, so I uploaded the boundaries in my assets and then loaded them all in code editor and did the clips with a for loop and exported them to the cloud. ...
Shahriar49's user avatar
10 votes
1 answer
5k views

GEE ImageCollection.map() with multiple-input function

I have an Image Collection, I want to Calculate a Normalized difference and got this Function called ND /////normalized Differense/////// function ND(Im,B1,B2){ var four = Im.select(B1) var eight = Im....
Alexander Vocaet's user avatar
10 votes
1 answer
4k views

Tile error: Expected a homogeneous image collection, but an image with an incompatible band was encountered

It is a very simple script, but I cannot figure it out. The script is to create a list containing the constant images from 0 to 32, and then display them. var test = ee.List.sequence(0,32).map(...
Cliff Zhang's user avatar
10 votes
3 answers
7k views

Get Earth Engine Object Type

For debugging it would be great to figure out which EE object type an object is. Example code which adds a buffer to a point in a random area: var polygon = ee.Geometry.Point([0,51.477]).buffer(...
Joooeey's user avatar
  • 525
9 votes
1 answer
14k views

Selection of only monthly data on Google Earth Engine? [closed]

Can you suggest an approach to select January Landsat 5 data between 2000 to 2010 and calculate its mean? In other words, the mean of the all January images from 2000 to 2010.
P_P's user avatar
  • 99
9 votes
3 answers
8k views

LS7 filling the gaps image with Google Earth Engine

I would like to work with Landsat 7 images, but most of them have gaps... I would like to fill the Gaps by aggregate images bands by month. So I'm looking for a way to deal with this problem. I have ...
delaye's user avatar
  • 729
9 votes
1 answer
14k views

Exported bands must have compatible data types; found inconsistent types: UInt16 and UInt32

What are the possible reasons for this error? Exported bands must have compatible data types; found inconsistent types: UInt16 and UInt32 This is the code: Map.addLayer(PuntoQuellaveco1); Map....
Alvaro Morales's user avatar
9 votes
1 answer
6k views

GEE - reduceRegions for an image collection

I am relatively new to Google Earth Engine, currently working on finding mean NDVI for command areas of different tube wells in my study area. What I have done so far is: Filtered L8 image ...
NOUFA 's user avatar
  • 103
9 votes
2 answers
6k views

Exporting Geometry Collection as Shapefile on Earth Engine

I have a FeatureCollection that I cannot export as a shapefile on Earth Engine — I get the following error: Error: Shapefiles cannot contain multiple geometry types; found 'LineString', 'Polygon'. ...
Julia R.'s user avatar
  • 137
9 votes
2 answers
8k views

Resampling image or imagecollection to higher resolution in Google Earth Engine Python API

I try to use resample and reproject function in GEE to downscale the MODIS 250 products into 240m in order to correspond the 8*8 Landsat 30m pixels for furture purpose. I used a Landsat image for ...
myzhenghr's user avatar
  • 113
9 votes
1 answer
3k views

EarthEngine: average/reduce a raster at resolution of coarser raster?

I want to average a 30m raster at the resolution of a 1000m one. Specifically, I want to computer, for each Daymet raster cell, the percentage of cultivated land from the 30m CDL. How can I do that ...
Matifou's user avatar
  • 1,981
8 votes
4 answers
17k views

Selecting every image of collection using Google Earth Engine?

I am currently working on google earth engine and I have created an image collection with 15 images in it. What i want to do is to create an image for every single image in my collection. I was able ...
Étienne's user avatar
8 votes
2 answers
6k views

Add/display all images of mycollection in google earth engine

I started with GoogleEngine recently and I was wondering how I can display all images of my collection as layers. I guess there is a better way than manually copy past / typing: var img1 = ee.Image('...
Andreas Eugster's user avatar
8 votes
1 answer
24k views

Creating Sentinel-2 NDVI time series chart in Google Earth Engine?

I am exploring Sentinel-2 time-series NDVI with Google Earth Engine. In another post (here) I calculated and exported NDVI values from Sentinel-2. Now I would like to create a NDVI time series chart, ...
Michele Bolognesi's user avatar
8 votes
1 answer
9k views

Add a date (day of year) band to each image in a collection using Google Earth Engine

I would like to add a date (day of year)band to each image in a collection. This will be used as a variable in supervised classification of sentinel-2 imagery along with peak NDVI. I built a function ...
Kevin's user avatar
  • 451
8 votes
1 answer
5k views

Removing property from Feature (or FeatureCollection) using Google Earth Engine?

How do I remove a property from a Feature (or FeatureCollection), by only specifying the name of the properties I want to remove? I know I can "remove" by selecting only properties I want, ...
Matifou's user avatar
  • 1,981
8 votes
3 answers
7k views

How to add color-map scale in Google Earth Engine?

I want to add a colormap scale like below in my Earth Engine app. I cannot find a UI component for this. Can I do this in any other way in Earth Engine?
Nazmul Ahasan's user avatar
8 votes
1 answer
14k views

Performing object based image classification in Google Earth Engine?

I am trying to perform an image segmentation using Google Earth Engine. I have performed OBIA in the past using python and scikit-image (skimage.segmentation.felzenszwalb) , but not sure how to do ...
user44796's user avatar
  • 1,903
8 votes
4 answers
7k views

How to filter image collection by date, excluding a date from a date range in Google Earth Engine

I am using air surface temp data from 2015 in Google Earth Engine but there is missing data for June 19, 2015 which is assigned the value 9.9621e+36. So I need to create a date range from Jan 1 2015 ...
Darcy Gray's user avatar
8 votes
1 answer
379 views

Creating multiple buffers in a loop in GEE

I would like to do 50 buffers from a known point. I know to do one by one, but I would like to do in a Loop. Is there any way to do it? This is part of my code: var buff1 = ee.Geometry.Point([-46....
Fabian Moreno's user avatar
8 votes
2 answers
6k views

Getting latest image from imageCollection using Google Earth Engine JavaScript API

I'm trying to get the last image available in an image collection but I can't find any function that works. I've tried also to sort the collection in the reverse order, but it doesn't work. here is ...
Giox's user avatar
  • 253
8 votes
1 answer
3k views

Handling null inside .map in Google Earth Engine

I want to map over an ImageCollection and calculate percentiles of a region. Some images are empty for my area of interest, due to cloud masking. How do I handle something like: if variable ==null : ...
Alexander Vocaet's user avatar
8 votes
1 answer
10k views

Counting number of pixel identified as water from a collection of landsat image using Google Earth Engine

My objective is to count the number of pixel identified as water from a collection of landsat images. The following function masks out non-water area for each image in the image collection, it also ...
Minh Shines's user avatar
8 votes
1 answer
8k views

Iterating over years for features in feature collection using Google Earth Engine?

I am currently working with the Hansen data (Global Forest Change) in Earth Engine. I have also imported a fusion table representing districts in a specific country. My goal is as follows: I would ...
Sergei's user avatar
  • 137
8 votes
2 answers
2k views

Can you store a Classifier in Google Earth Engine for later use?

Training a classifier in Google Earth Engine is slow and can sometimes show temporary errors like "Capacity exceeded". To combat this, I would like to train the classifier, store it, and ...
Johannes Hoff's user avatar
8 votes
1 answer
2k views

Multiple reducers Google Earth Engine

How can we apply more than 2 reducers to an Image? The following link shows for 2 reducers https://developers.google.com/earth-engine/reducers_intro But the following won't work: // Load a Landsat ...
Raimundo's user avatar
  • 657
8 votes
1 answer
5k views

Exporting classification error matrix Google Earth Engine

I did a supervised classification of land cover and I need to export the Validation error matrix to .csv file. When using 'Export.table.toDrive' an error message 'Invalid argument: 'collection' must ...
roubalma's user avatar
  • 105
8 votes
1 answer
575 views

Getting different "Layer Errors" every time for the same code in GEE

I am running a classification code and getting different errors every time. classification: Layer error: The service is currently unavailable. classification: Layer error: Computation timed out. ...
Elif Dnmz's user avatar
  • 137
7 votes
2 answers
14k views

Cloud mask for Landsat8 on Google Earth Engine

I'm creating a composite image, in order to create a timeseries. I've already created the composited image, but i am having difficulty masking the clouds of the composite image. I've followed the code ...
Isaaqm's user avatar
  • 113
7 votes
2 answers
10k views

Reclassifying raster values in Google Earth Engine?

I need to reclassify slope raster (val: 0-90) to 9 classes (1-9). I used this code but the output raster cannot be displayed. What did I do wrong? // Add features var sumatera = ee.FeatureCollection("...
Putraditama's user avatar
7 votes
3 answers
6k views

Google Earth Engine: different stretch options

I'm working on a map view that detects new ice using Sentinel-1 together with Google Earth Engine. When adding images to Google Earth Engine I can set the min and max values for my layer in numbers ...
oskarlin's user avatar
  • 1,941
7 votes
2 answers
2k views

Counting number of unmasked pixels per image in collection using Google Earth Engine

I'm trying to count the number of pixels that are masked by the cloud mask of the image collection given by the Earth Engine dataset. I have clipped my collection with a ROI and now I want to keep the ...
laurent's user avatar
  • 71
7 votes
3 answers
13k views

Filtering Landsat images base on cloud cover over region of interest

My goal is to create an image collection that has 100% free cloud over a small region of interest, for example a lake. This script filters landsat 8 images based on location and cloud cover: var ...
Minh Shines's user avatar
7 votes
1 answer
8k views

How to Combine Two Image Overlaying Into One Image in Google Earth Engine?

I have two images of different sizes. I can make them overlay each other using Map.addLayer() for each. But I want to combine them into one image as shown in illustration below. How to achieve this?
Waleed93's user avatar
  • 322

1
2 3 4 5
110