Questions tagged [google-earth-engine]

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

Filter by
Sorted by
Tagged with
9 votes
2 answers
29k 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 ...
6 votes
1 answer
6k 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 ...
10 votes
2 answers
13k 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 ...
21 votes
2 answers
7k 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 ...
  • 419
4 votes
2 answers
11k 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 ...
  • 421
7 votes
2 answers
11k 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 ...
8 votes
1 answer
7k 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 ...
  • 115
10 votes
2 answers
9k 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 ...
  • 474
13 votes
1 answer
18k 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, ...
7 votes
2 answers
10k 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 ...
  • 113
4 votes
2 answers
13k 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)...
4 votes
1 answer
5k views

Google earth engine:SST by month per year

I'm trying to plot a chart and get data from Google Earth Engine. I'm using MODIS-Aqua/L3SMI data in Earth Engine. I have used Earth Engines in built functions to compare average sea surface ...
3 votes
1 answer
4k 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")
  • 373
3 votes
2 answers
7k 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
1 answer
942 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 ...
  • 57
9 votes
2 answers
7k 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 ...
  • 729
7 votes
2 answers
4k 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('...
4 votes
2 answers
3k 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 ...
  • 379
3 votes
1 answer
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
1 answer
4k views

Exporting data with different data types in Google Earth Engine. How to make data consistent to download?

I am working with Sentinel-2 data in GEE and I added NDVI and a specific SAVI as new bands to an Image. I had an error downloading 6 bands (RGBI, and VIs) because the data type is not the same: Error:...
4 votes
1 answer
2k 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. ...
4 votes
0 answers
2k 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 ...
  • 2,010
0 votes
1 answer
9k views

Earth engine error: Error: Invalid argument: 'image' must be of type Image

I'm trying to export an image for some SST temperatures for a given region ( and imported table EEZ) but I'm getting the error; Error: Invalid argument: 'image' must be of type Image Map.addLayer(...
2 votes
3 answers
2k 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: /...
12 votes
2 answers
7k 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 ...
  • 523
4 votes
1 answer
8k 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, ...
  • 983
9 votes
1 answer
12k 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.
  • 99
14 votes
1 answer
22k 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'...
  • 617
8 votes
1 answer
8k 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 ...
  • 421
2 votes
2 answers
3k 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 ...
  • 103
2 votes
2 answers
9k 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/...
  • 35
2 votes
1 answer
586 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"); ...
  • 137
6 votes
1 answer
2k 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 ...
6 votes
1 answer
4k 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() ...
  • 596
5 votes
2 answers
3k views

Exporting an image in Google Earth Engine image alignment

When I export an image in Google Earth Engine the resulting raster does not match the original. When I import the export back into Google Earth Engine the is an spatial misalignment between the ...
5 votes
1 answer
4k 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,010
4 votes
1 answer
3k 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 });...
  • 654
2 votes
1 answer
1k 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 ...
2 votes
1 answer
3k 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 ...
  • 729
4 votes
1 answer
2k views

Masking pixels inside the polygons using Google Earth Engine?

I am working on a classification problem on agricultural fields. To make things easier, I first identified road, cities, water, fields, and etc. I am planning to eliminate road, cities, and water out ...
4 votes
3 answers
8k 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
1 answer
700 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 ...
  • 85
2 votes
1 answer
373 views

Filtering images that completely overlap area of interest in Google Earth Engine

I have a Sentinel 1 image collection and I want to filter the images that completely overlap my region of interest. filterBounds() keeps the images that partially overlap my ROI. While browsing the ...
2 votes
1 answer
1k 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,532
1 vote
1 answer
911 views

Is it possible with GEE to export all the images in an image collection?

I want to download an image collection with 36 images from my script in GEE and select the three bands from each image ('NDVI_mean','LST_mean',FV_mean'). I have tried many solutions which are posted ...
  • 137
5 votes
1 answer
2k 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 ...
  • 103
5 votes
1 answer
304 views

Exporting LST median values of a time series in Google EE to CSV file

I'm new to Google EE and I'm still figuring out how this works. I want to export into a table the median values of LST from a shapefile for three years. I can do it for one year but If I set the time ...
4 votes
2 answers
3k 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....
  • 63
2 votes
1 answer
2k 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 ...
  • 23
2 votes
1 answer
770 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....
  • 273

1
2 3 4 5
9