Questions tagged [google-earth-engine]

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

Filter by
Sorted by
Tagged with
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
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 ...
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 ...
5
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
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 ...
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.
1
vote
1answer
232 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
4k 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
1k 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 ...
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 ...
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, ...
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 ...
2
votes
1answer
526 views

Adding timestamp to video export in Google Earth Engine

I am exporting an image collection to video using: Export.video.toDrive({ collection: mov_EVI, description: 'Modis EVI-Classified Water', dimensions: 720, framesPerSecond: 10, region:ROI });...
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 ...
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....
2
votes
1answer
415 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
793 views

Returning image for each iteration using Google Earth Engine?

I'm trying to map the maximal amount of days without rain using the TRMM dataset in Google Earth Engine. I'm doing this by iterating over the collection and if no rain has fallen, one gets added to ...
1
vote
1answer
49 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
2answers
660 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) ....
1
vote
1answer
292 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 (...
4
votes
1answer
907 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 ...
2
votes
1answer
1k views

Exporting entire ImageCollection in Google Earth Engine using geetools for JavaScript or Python for Windows?

I am very new to ee and am trying to export a collection to my drive, after masking for clouds and clipping to myregion... tried to follow the advice in this answer https://stackoverflow.com/questions/...
6
votes
2answers
1k 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
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/...
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 ...
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
1answer
4k 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 ...
2
votes
2answers
320 views

Calculating area by classified image in Earth Engine

I want to calculate the area for each classified color in earth engine. Here are my codes. var image = ee.Image(ee.ImageCollection('LANDSAT/LC8_L1T_TOA') .filterBounds(roi) .filterDate('2015-01-...
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 ...
1
vote
1answer
1k views

How to to extract coordinates of pixels inside a polygon in Google Earth Engine as a single feature? [duplicate]

IMPORTS: var geometry = /* color: #d63000 */ee.Geometry.Polygon( [[[-67.76435852050781, -22.213792811479802], [-67.76641845703125, -22.220785143658368], [-67.75646209716797, -22....
0
votes
1answer
271 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
771 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
2answers
621 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....
3
votes
1answer
2k 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 ...
2
votes
1answer
655 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
1k 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")
2
votes
1answer
1k views

Calculating NDVI per region, month & year with Google Earth Engine?

I want to calculate the mean NDVI per region (admin level 3, also called woreda), month and year. So my end result would look something like this: regions year month NDVI ------------------...
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 ...
1
vote
1answer
825 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(['...
1
vote
2answers
2k 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
87 views

Calculate water frequency in Google Earth Engine based on time series?

I have the Landsat 8 images cover southern Florida during 2017 (from Jan 1st to Dec 31st), with the cloud, scan edges and other bad observation pixels eliminated. I have also calculated several ...
1
vote
1answer
97 views

Smoothing/interpolating across images in an ImageCollection to remove missing data

I have some code that is working properly to calculate the monthly NDVI averages for the previous two years from a date but I sometimes have missing data in some of the months and I would like to get ...
1
vote
1answer
404 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
96 views

Error: Exported bands must have compatible data types; found inconsistent types: Float32 and Float64 [closed]

Here is my link https://code.earthengine.google.com/ef1f791ab0223983a1177ddb7bd10699 It has 3 bands, all of them are float type. Why this error to exporting images? What do I need to modify?
1
vote
1answer
189 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
2answers
1k views

Export images in google earth engine with date name

I would like to export the NDVI with the date in the filename. Now I can only export them with a list of numbers, e.g. example NDVI_1, NDVI_2 (as in the code that I show below) ... and I want it so ...
1
vote
1answer
124 views

Have NDVI layer and want to Calculate area(pixel area-reduce region) .in Python API for Earth Engine

I had already asked this question for Earth Engine Javascript.The link is given below I have NDVI layer in Earth Engine. I want to assign and calculate area of good and bad ndvi area I wamted to do ...
0
votes
1answer
320 views

Reducing Land Cover Data Sets in Earth Engine

I am trying to use earth engine to reduce the USGS land cover dataset and calculate the frequency of specific land cover types in several regions. The output that I am getting creates a single ...
0
votes
1answer
292 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') // ...