Questions tagged [google-earth-engine]

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

Filter by
Sorted by
Tagged with
16
votes
7answers
17k 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 ...
9
votes
1answer
4k 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 ...
7
votes
1answer
4k 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 ...
6
votes
2answers
965 views

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

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 ...
6
votes
1answer
1k views

Mosaicking a 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 ...
6
votes
1answer
221 views

How can I estimate a Least Cost Path in Google Earth Engine?

I'm using Google Earth Engine to estimate walking time based on slope, using the Google tutorial and this example based on a DEM. My code actually runs, but I don't know what units the output raster ...
6
votes
3answers
192 views

Landsat 8 striping/banding citation

Does anyone have or know a citation for the Landsat 8 striping that affects some scenes (Brazil shown here). It's apparent in all bands (B3 here at 100% stretch) and is present in both RAW and ...
6
votes
1answer
410 views

NDVI chart using sentinel 2 image in Google Earth Engine

I want to make a chart in google earth engine based on monthly NDVI value of one plot. For that i am using the following codes function maskS2clouds(image) { var qa = image.select('QA60'); // ...
6
votes
2answers
1k 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(...
6
votes
1answer
2k views

Google Earth Engine: label objects on map

In my Google Earth Engine script, the user can click on a point on the map, and then a time series history chart of that pixel value is displayed in the console. However, after the user has clicked on ...
5
votes
2answers
6k views

Export each image from a 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 ...
5
votes
1answer
3k views

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

Can you suggest the code to select only January data from year 2000 to 2010 of Landsat 5 and calculate its mean? Mean of the all Januray image from 2000 to 2010.
5
votes
1answer
2k views

Google Earth Engine: Extract values from FeatureCollection as list

I'm trying to extract values from a FeatureCollection as a list. Here's some example code that I'm using in Earth Engine's code editor: var viirs = ee.Image('NOAA/VIIRS/DNB/MONTHLY_V1/VCMCFG/...
5
votes
1answer
709 views

Calculate the area covered by a pixel in Google Earth Engine?

I am doing a project on calculating the growth of urban areas in different cities located in different parts of India. I have been able to classify the area into urban, vegetation and water. I ...
5
votes
2answers
2k views

Importing Sentinel-1 Image Collection to Google Earth Engine API

I'm currently having an issue with trying to import the Sentinel-1 image collection into the Earth Engine API. My script is as follows: var imgSentinel1 = ee.ImageCollection('COPERNICUS/S1'); Map....
5
votes
1answer
109 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 ...
5
votes
1answer
1k views

Timelapse Google Earth Engine and QGIS

Any chance somebody is working on plugin for QGIS or know about any project trying to get Timelapse Google Earth Engine (imagery) into QGIS? There was a major update recently and it looks really ...
4
votes
1answer
4k views

Cloud mask in Surface Reflectance Landsat 8 test

I've noticed that my cloud mask wasn't working, so I've tried this simple test: https://code.earthengine.google.com/50699c2eaa1a873ccd28f26c583c5a45 But my data uses the Surface Reflectance Landsat 8 ...
4
votes
1answer
6k 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'...
4
votes
2answers
4k views

Filter Landsat images base on cloud cover over a 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 ...
4
votes
1answer
276 views

Google Earth Engine: Javascript to Python conversion: syntax error with `image1.and(image2)`

I need to convert my Earth Engine javascript code into the Python API. Most of it works, but when using the following in Python (2.7): mask = image1.and(image2) I get: File "<ipython-input-65-...
4
votes
1answer
3k 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 ...
4
votes
1answer
1k 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 ...
4
votes
1answer
4k views

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

I realise that this question has been asked before link to previous question; however, I can't get the code to work. It runs, but the value of the raster isn't added to the table it just prints the ...
4
votes
1answer
1k views

Image Export fails in Google Earth Engine because "export region contains no valid (un-masked) pixels

I want to export Sentinel-2 mosaics for rectangular ROIs. For this, I intend to use a script following this example: https://code.earthengine.google.com/ce1a151ce06497b20cf1793715cb0120 However, ...
4
votes
2answers
1k views

Filter least cloudy image per each tile in GEE

Is there a “quick" way in Google Earth Engine to show in an image collection (Sentinel 2) the least cloudy image per each path/row or tile (multiple tiles) for a given timeframe? So far I managed to ...
4
votes
1answer
871 views

Reducing image collection to get daily sum from hourly precipitation and extraction of polygon data?

I'm using GSMaP image collection in Google Earth Engine, which has hourly precipitation data from 2000 to present. I have a script which helps getting mean pcp data (as a table) from polygon from each ...
4
votes
1answer
1k views

Google Earth Engine Reprojection to non-EPSG defined CRS

Is it possible to reproject an image in earth engine to non-EPSG defined coordinates? In particular either Goode Homosline (SR-ORG:7619) or Mollweide (ESRI:54009). Passing either to .reproject() ...
4
votes
1answer
148 views

Thresholding Hansen Forest Cover/Global Forest watch treecover in earth Engine

I want to threshold the treecover2000 layer (i.e., tree cover in year 2000) at 25% using GEE. How would I do that? Below is code I wrote to load the gfc tree cover dataset var gfcImage = ee.Image('...
4
votes
1answer
865 views

Add each Landsat image as a seperate image band in Google Earth Engine

I would like to stack all Landsat 8 images from a certain time frame in Google Earth Engine by adding the blue band from each image as a separate band and exporting as a single image. How would I go ...
4
votes
1answer
2k views

Iterate over ImageCollection returning pandas dataframe using earth engine & python

I'm trying to extract values from an ImageCollection to a series of points. My goal is to create a pandas dataframe that includes the values from each image & band of the ImageCollection for each ...
4
votes
2answers
77 views

Can't get Landsat-8 images after 2017-06-01 in Google Earth Engine Python

Using the Google Earth Engine Python API, I can get a Landsat-8 TOA image for anytime before 2017-06-01 but not for any dates after that. Getting a Landsat-8 TOA image for before 2017-06-01: from ...
4
votes
2answers
82 views

Using Google Earth Engine to exclude upper 1% of data?

I would like to exclude the upper 1% of my Data ('VV' Band) because of noise reduction var s1_data = ee.ImageCollection('COPERNICUS/S1_GRD') var s1_grd_iw_vv_des = s1_data .filterDate(begin,end) ...
4
votes
1answer
142 views

What's 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 ...
4
votes
1answer
373 views

Aggregating properties over features, and handling null using Google Earth Engine?

I have a FeatureCollection where I would like to take the mean of multiples properties for each feature. I did not find so far an elegant way to do this, currently I am using using the map function, ...
4
votes
1answer
2k views

How to apply a Cloud Mask in a collection?

I am trying to apply a mask cloud in a SAVI collection (LANDSAT) to get a chart with time variations between pixels. var region = table3 Map.addLayer(table3) var col = ee.ImageCollection('...
4
votes
1answer
1k 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 ...
4
votes
1answer
370 views

Black vertical lines on exported image from Google Earth Engine

I tried to export the NDVI obtained from the Landsat 8 Surface Reflectance Collection in Google Earth Engine and I keep on getting black lines in my final export. Everything looks fine when displaying ...
4
votes
1answer
1k views

I need to add a sentinel 2 image into Google Earth Engine Explorer graphical user interface

I am using the graphical user interface of Google Earth Engine (Explorer) to carry out classification of land cover using sentinel 2. My study site is somewhere in Kenya with an id: ...
4
votes
1answer
761 views

Use Google Earth Engine to read MODIS NDVI into python

I'm trying to adapt this example for my needs: https://mygeoblog.com/2017/10/06/from-gee-to-numpy-to-geotiff/ The difference is that I'm using the MODIS NDVI image collection. # define the image img ...
4
votes
0answers
63 views

Earth Engine import record, why?

When I paste the following on EE online code editor then if offers me the option to convert to an import record. var l8sr = ee.ImageCollection("LANDSAT/LC08/C01/T1_SR"); var roi = /* color: #d63000 */...
4
votes
1answer
138 views

Chart of cloud cover over time

I am trying to create a graph with the cloud cover over time, per year. The following code gives me a graph, but I don't manage to get the dates on the x-axis line up chronological. Am I doing ...
4
votes
1answer
380 views

Pickling a Classifier in Google Earth Engine

I'm busy trying to create a widely applicable reedbed vegetation classifier that could potentially classify any given area within Europe. I already have training data for an area around the Balaton ...
4
votes
1answer
445 views

Missing features from featureCollection in Google Earth Engine but present in Fusion Table

I am using google earth engine code editor to extract some band values at specific point locations. To do so I have loaded my .csv file with point IDs and coordinates into Fusion Tables and the Map ...
3
votes
1answer
6k views

Drawing polygon and extracting land cover inside using Google Earth Engine?

A new question derived from my Seeking website to do geoprocessing online? In Google Earth Engine, is it possible (if so, how?) to draw a polygon and extract the land cover inside? I would guess so, ...
3
votes
3answers
1k 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 ...
3
votes
2answers
8k views

How do I find Sentinel-2 dataset ID on Google Earth Engine?

I'm new at Google Earth Engine and Javascript. I'm trying to use Sentinel-2 data in the API following this tutorial of Landsat data (https://developers.google.com/earth-engine/tutorial_api_01). ...
3
votes
3answers
449 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 ...
3
votes
3answers
2k views

Creating Sentinel-2 cloud free, cloud-shadow free composite or scene on Google Earth Engine (GEE)?

Using this code, I am able to get a cloud-free composite, but it still includes shadows in my image. var collection = ee.ImageCollection("COPERNICUS/S2") .filterBounds(ee.Geometry.Rectangle(-85....
3
votes
1answer
2k 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 ...