Questions tagged [google-earth-engine]

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

4
votes
2answers
5k 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 ...
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 ...
4
votes
1answer
3k 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
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
761 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 ...
1
vote
1answer
3k views

reduce image collection to get annual monthly sum precipitation

I'm using GRIDMET image collection in Google Earth Engine, which has daily climate data from ~1980 to present. I would like to create an image collection of monthly (May-September: each month) sum ...
2
votes
2answers
3k views

Writing code for monthly NDVI medians in Google Earth Engine?

My goal is to get monthly NDVI medians in Google Earth Engine. This helpful post got me started: reduce image collection to get annual monthly sum precipitation However, I am using Landsat (not MODIS)...
1
vote
0answers
852 views

Extract complete pixel values inside a geometry [duplicate]

I'm trying to write an earth engine script which extracts the pixel band values inside a polygon. (geometry) Only for pixels completely within the polygon. The polygons will be quite small. (field ...
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, ...
15
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 ...
4
votes
1answer
3k 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 ...
1
vote
1answer
2k views

Exporting time series of multiple polygons to .csv without using ui.Chart.image.seriesByRegion command

Following the example provided in the GE tutorial (see below), how can I export the data to a .csv without using the ui.Chart.image.seriesByRegion? // Define a FeatureCollection: regions of the ...
2
votes
1answer
353 views

Extract Pixel Values for Multiple Polygons and Images

I have 21 polygons and for each polygon I want to extract the pixel values inside them for Sentinel 1 images from 2017-01-01 to 2017-06-30. The example below shows how this is done for one polygon. ...
2
votes
1answer
2k views

How do I create a Sentinel-2 cloud free, cloud-shadow free composite or scene on 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....
1
vote
1answer
196 views

Property with null-value disappearing from feature when creating feature-collection in Google Earth Engine?

When I create a feature with a property that has a null-value, that property disappears when adding the feature to a feature-collection. Why does this happen and how to prevent this? An example (...
1
vote
2answers
449 views

Making stack from many images in Google Earth Engine?

Using the code below, I've computed 20 ndvi images for modis data. How can I stack and save them in a single file? var mod13 = ee.ImageCollection("MODIS/006/MOD13Q1") .filterBounds(geometry) ....
8
votes
1answer
3k 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 ...
2
votes
2answers
819 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('...
6
votes
2answers
725 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 ...
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.
3
votes
1answer
3k views

Sentinel Cloud-free Collection Google Earth Engine Code Editor

I am trying to create and map an image collection (not image or mosaic if that is even possible), where QA60 defines the Cloud-mask. I have written the code below - however, it seems the Jan2016 ...
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 ...
3
votes
2answers
1k views

“Batch processing” data of multiple ROIs in Google Earth Engine

I have written a rather simple script for data selection and subsequent export in GEE: //Create region of interest -> Should be replaced by manual selection of ROIs or ROI center points and ...
2
votes
1answer
1k views

remove one image from imageCollection in google earth engine

I work with google earth engine on an imageCollection from landsat7. Some of those images are 'corrupted'. So I would like to remove one image from an image collection. Actually I have : var ...
0
votes
1answer
200 views

How to Export NDVI image using Fusion Table as featurecollection boundary in GEE python API

I am using python api of google earth engine to create NDVI raster. Now I want to export the raster in my google drive. But during exporting it is giving the following error: ee.featurecollection....
5
votes
1answer
639 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 ...
3
votes
1answer
78 views

Get Lon / Lat of a top left corner for geometry in Google Earth Engine

I want to extract latitude and longitude of a top left corner of a bounding box (bbox) for my geometry (aoi). How do I do it in Earth Engine (preferably using server-side methods)? I guess, it ...
3
votes
1answer
1k views

Earth Engine convert list with coordinates and values into a feature collection for export

I need to create a feature collection from a list containing coordinates and band values. These are extracted from a landsat image as shown in this linked script. Extract complete pixel values ...
3
votes
2answers
519 views

Maximum ndvi for 3 months average in Google Earth Engine

I have a ndvi series which I am able to plot using below code: var ndvi = l8.map(function(image) { return image.select().addBands(image.normalizedDifference(['B5', 'B4'])); }); var ndviChart = ui....
2
votes
1answer
624 views

Downloading image/exporting image to google drive from google earth engine with color palette

When I download Analysis results from Google Earth Engine, the image is exported in to google drive but it does not have a color palette. How do i add color palette with the exported image using earth ...
2
votes
1answer
614 views

How can I have the percentage instead of the Frequency in Google Earth Engine? (Edited question)

EDIT : Since I had 2 questions in one, I edited it to only have one (second part here.) EDIT 2 : I got a partial answer on another forum and made my script more universal I have yet another question ...
2
votes
1answer
905 views

Google Earth Engine: Export an entire collection

I would like to export all the images that the collection (code) contains. How can I do that? var colection = ee.ImageCollection ("MODIS/NTSG/MOD16A2/105")
1
vote
1answer
170 views

Getting Temperature Data of Given Point Using MODIS LST Data?

I am trying to get MODIS satellite data with Google Earth Engine to find temperature data of given points on a map. I would like to get an array of all the points in an area (every 1km square in ...
1
vote
1answer
32 views

“Print” and “ui.Label” return different strings in console and in the UI in Google Earth Engine

I am working on a variable label in Google Earth Engine and noticed that the label as printed in the console is not the same as the label shown on the map. Why is that? Code below: var aoi = ee....
1
vote
1answer
308 views

How to select all points of a polygon in google earth engine as a single feature?

IMPORTS: var geometry = /* color: #d63000 */ee.Geometry.Polygon( [[[-67.76435852050781, -22.213792811479802], [-67.76641845703125, -22.220785143658368], [-67.75646209716797, -22....
1
vote
1answer
100 views

Retrieving monthly rainfall averages for Feature Collection in Google Earth Engine?

I am trying to retrieve monthly rainfall averages for points stored in a feature collection. I have checked other posts with similar questions but I cannot seem to figure out how to adapt their ...
1
vote
1answer
40 views

Editing scripts outside (online) Code Editor?

While reading EE docs https://developers.google.com/earth-engine/playground, something called my attention: "Repositories can be accessed using Git, so you can manage and edit your scripts outside ...
1
vote
2answers
1k views

Using reducer over space and time in Google Earth Engine?

I am trying to use in Google Earth Engine a reducer (histogram) on an ImageCollection, computing it for multiple shapes for each image. For a given image, I use reduceRegions(..., ee.Reducer.mean()) ...
1
vote
1answer
1k views

Mask clouds in LandSat 8 surface refletance image

I would like to know how to remove the clouds in a ImageCollection of LandSat 8 Surface Reflectance (SR) image and create a single image without clouds using google earth engine, to calculate NDVI. I ...
0
votes
1answer
402 views

Uncaught TypeError: Map.addLayer is not a function earth engine javascript api

I am new to the Google Earth Engine javascript api. Sorry if my question is silly. I have included ee_api_js.js file from the git library of Google Earth Engine javascript api. I have validated the ...
0
votes
1answer
719 views

Apply a cloud mask to a Landsat8 collection in Google Earth Engine - time series [duplicate]

I have tried to apply a cloud mask for a landsat 8 collection using code1, code2, and code3 but none will work. code1 encounters the error of not working even after changing var mask = img.select(['...
0
votes
1answer
249 views

Cloud mask using pixel_qa

I need to create a cloud mask using the pixel_qa band, this is the code that I have so far: var city = ee.Geometry.Point(9.15, 45.18); var landsat8 = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR') // ...
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 ...
6
votes
1answer
186 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 ...
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'...
3
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 ...
3
votes
1answer
2k views

Extracting LANDSAT time-series data by polygon using Google Earth Engine?

importing the landsat 5 TM 32-day NDVI composite data set. I have made it as far as drawing a polygon of my ROI and extracting from a different data set, a global land cover map (ESA/...
2
votes
1answer
3k views

How can I export a set of images from Google Earth Engine?

I'm trying to export images of a bunch of latitude and longitude points, but I keep getting errors. For example, I am trying to export an image of this single point in this fusion table, but this is ...
1
vote
2answers
2k views

Extracting land cover type in Google Earth Engine?

I have a question related to Drawing polygon and extracting land cover inside using Google Earth Engine? I'm trying to work out how to calculate habitat type area from within a specific polygon in ...
5
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 ...