Questions tagged [google-earth-engine]
Google's cloud computing platform for geospatial data & analysis at earthengine.google.com.
513
questions
11
votes
2
answers
35k
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
7k
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 ...
11
votes
3
answers
14k
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 ...
5
votes
2
answers
12k
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 ...
24
votes
2
answers
9k
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 ...
8
votes
1
answer
8k
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 ...
7
votes
3
answers
13k
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 ...
15
votes
2
answers
11k
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 ...
13
votes
1
answer
19k
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
14k
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 ...
2
votes
3
answers
3k
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:
/...
5
votes
2
answers
15k
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
2
answers
4k
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 ...
3
votes
2
answers
8k
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)
....
3
votes
1
answer
5k
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
1
answer
1k
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 ...
9
votes
3
answers
8k
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 ...
8
votes
2
answers
6k
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
3
answers
9k
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....
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 ...
4
votes
2
answers
4k
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....
4
votes
1
answer
6k
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
Customizing a continuous legend in Google Earth Engine
I've created legends in ggplot, which look like this
With the code I've used in Google Earth Engine, this is what my legend looks like
Is there an easy way for me to edit my Google Earth Engine code ...
3
votes
1
answer
4k
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 ...
0
votes
1
answer
13k
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(...
15
votes
2
answers
24k
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'...
12
votes
2
answers
10k
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 ...
9
votes
1
answer
14k
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.
8
votes
1
answer
9k
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 ...
8
votes
1
answer
14k
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 ...
8
votes
1
answer
3k
views
Handling null inside .map in Google Earth Engine
I want to map over an ImageCollection and calculate percentiles of a region. Some images are empty for my area of interest, due to cloud masking.
How do I handle something like:
if variable ==null :
...
7
votes
1
answer
5k
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() ...
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 ...
5
votes
1
answer
5k
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 ...
5
votes
1
answer
3k
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 ...
5
votes
1
answer
490
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 ...
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 ...
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 ...
4
votes
1
answer
9k
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, ...
4
votes
1
answer
4k
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
});...
4
votes
1
answer
2k
views
Convert Sentinel-1 images data from dB to linear
I would like to use speckle lee refined filter on Sentinel-1 collection. But in every document I found, it says that the input should be linear not in dB. Normally S-1 data in GEE is in dB.
How do I ...
4
votes
1
answer
5k
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
------------------...
3
votes
1
answer
1k
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....
3
votes
2
answers
5k
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 ...
3
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 ...
3
votes
1
answer
1k
views
Exporting image collection to asset
I am trying to export an image collection of model results as an asset in GEE but I get the error message:
Error: Unable to export features with unbounded geometry.
The images in the collection ...
3
votes
1
answer
1k
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
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 ...
2
votes
1
answer
4k
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 ...