Questions tagged [google-earth-engine]

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

Filter by
Sorted by
Tagged with
6
votes
2answers
11k 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 ...
6
votes
2answers
6k 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 ...
8
votes
1answer
7k 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, ...
1
vote
2answers
5k 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 ...
7
votes
1answer
5k 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
1answer
5k 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 ...
7
votes
1answer
5k 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.
2
votes
2answers
5k 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
1answer
467 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 ...
10
votes
2answers
6k 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
3k 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
1answer
1k 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 });...
3
votes
2answers
4k 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 ...
3
votes
1answer
694 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. ...
3
votes
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 ...
0
votes
3answers
740 views

Getting Error: exported bands must be compatible from Google Earth Engine

I'm trying to export a tiff map and gave the following error: Error: Exported bands must have compatible data types; found inconsistent types: Float64 and Float32. How can I solve this? Code: /...
4
votes
1answer
7k 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, ...
9
votes
2answers
3k 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 ...
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 ...
6
votes
1answer
1k 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
555 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 ...
5
votes
2answers
848 views

Earth Engine: Simplest way to move from EE 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 ...
4
votes
3answers
4k 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
3k views

Extracting coordinates of pixels inside polygon in Google Earth Engine as single feature [duplicate]

IMPORTS: var geometry = /* color: #d63000 */ee.Geometry.Polygon( [[[-67.76435852050781, -22.213792811479802], [-67.76641845703125, -22.220785143658368], [-67.75646209716797, -22....
4
votes
2answers
1k 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
1k 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 ...
2
votes
1answer
291 views

Any way to have variable min and max in one visualization parameter?

What I mean is: I'm using the "3 standard deviations" value to visualize my data, but this changes seasonally so I need to update what the values actually are for each image. Can I create a "3 ...
2
votes
1answer
591 views

Getting weekly mean composite in Google Earth Engine?

I am currently working on a time-series in Google Earth Engine. Iam still quite inexperienced, especially when it comes to functions. I want to extract the mean values of Sentinel1-images for each ...
2
votes
1answer
161 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
529 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
2k 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) ....
0
votes
1answer
52 views

Population in upstream area (looping over FeatureCollection)

I want to calculate the sum of the population living in the upstream area of stations using the hydro package by gena. I think I will have to loop over the stations (using the identifier "GEMS_Stati")....
5
votes
1answer
6k 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 ...
5
votes
3answers
8k 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 ...
3
votes
2answers
2k 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
1answer
11k 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'...
5
votes
2answers
3k 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 ...
4
votes
1answer
3k 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 ...
2
votes
1answer
3k 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/...
1
vote
1answer
2k views

Using Image exportToDrive in Google Earth Engine?

I want to export image to drive for my roi. For this i have specified a geometry(roi). But exported map doesn't cover the area specified and it's not showing the color palette. Is there any possible ...
1
vote
1answer
71 views

Filter out “incomplete” Sentinel-2 images in Earth Engine

Sometimes when using Earth Engine I got an incomplete image, is there a way to get the full image? Example: The code that I am using is: var imageCollection = ee.ImageCollection("COPERNICUS/S2"); ...
6
votes
2answers
2k 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

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
2k 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

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 ------------------...
2
votes
1answer
63 views

Filter ImageCollection to Images with non-masked coverage within AOI in Earth Engine

My goal is to Filter an ImageCollection to contain only Images with uniform coverage within a given AOI (Images that have to 'holes' / masked pixels within an AOI). I'm trying to do it by mapping the ...
2
votes
2answers
1k 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
2k 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
455 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
3k views

Calculating LST from Landsat 8 in Google Earth Engine?

I'm trying to write a code for Land Surface Temperature (LST) from Landsat 8 images in google earth engine. I'm using the code of this question as a guide and I succeeded at intermediate steps but I ...

1
2 3 4 5