Questions tagged [google-earth-engine]

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

Filter by
Sorted by
Tagged with
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
1k 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: ...
1
vote
1answer
412 views

Extracting position date of max and min value in NDVI time series in Google Earth Engine?

I need to extract the DATE for max and min NDVI values in a MODIS NDVI time series. i think I am able to extract the date for max but I have problems with the minimum. // turn image collection into ...
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
vote
1answer
509 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
2answers
2k 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 ...
0
votes
2answers
58 views

Sentinel-3 single image per day

I have created a list of dates from which I would like to get Sentinel3 images, only to find that I have multiple images per day. How can I reduce it to 1 image per day? I intend to do use median for ...
0
votes
2answers
446 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....
0
votes
1answer
92 views

Google Earth Engine: Multiply an image collection by a different number depending on the month

I am trying to multiply a monthly imageCollection by a different number depending on the month. What I want is to multiply all the pixels of the first 12 months by 0.85, the following 12 months by 0....
5
votes
1answer
1k 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 ...
4
votes
1answer
58 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
3answers
4k views

inconsistent types in google earth engine with Export.image.toDrive()

I have computed NDVI from Landsat7 image, but when I want to export the result in google drive with Export.image.toDrive() it failed with the message error : Fail with an error : Error: Exported bands ...
4
votes
1answer
2k 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 ...
3
votes
1answer
530 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 ...
3
votes
1answer
105 views

Why are the results of ee.Reducer.fixedHistogram() fractional (Earth Engine)

I am calculating a histogram for an area of interest using ee.Reducer.fixedHistogram(). The pixel count per bin is often a fraction, but not always. I was expecting integer results - the count of ...
3
votes
1answer
2k views

GEE: How to transform masked values (NODATA) to -9999?

How can I transform NoData (masked) values to a value? When the image is mapped, there are a lot of values that are masked and I would like to get a value (-9999) on that masked pixels. var region = ...
3
votes
1answer
70 views

Calculate proportion of study area covered by image on Google Earth Engine using a pixel count

I want to calculate the proportion of a study area that is covered by (non null) pixels within an image. I have seen examples that do similar counts (here, here, and here), and followed code from here,...
2
votes
1answer
27 views

Google Earth Engine chart error: No features contain non-null values of “year” [closed]

I'm trying to plot a chart from a collection I have created. While the data from this collection maps fine, I can't seem to produce a chart for it. Here is the code: var l5_coll = ee.ImageCollection('...
2
votes
1answer
215 views

Add base map to animation Google Earth Engine

I want to make an animation of fires using MCD64A1 with a base map something similar to this Sentinel 5-P animation: What I could make until now using this code is: // Define a collection var col = ...
2
votes
2answers
1k views

Using cloud confidence to create cloud mask from Landsat 8 BQA?

I want to use the Landsat BQA (TOA images) to create a cloud mask in GEE. In particular I want to mask out all areas where there is high confidence that cloud cover is present. I have tried to adapt ...
2
votes
1answer
830 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

Normalization in Google Earth Engine

How can I normalize pixel values from 0 to 1 or 0 to 100? Is there any function or command related to it? I'm using JavaScript.
1
vote
1answer
246 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
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
661 views

Selecting all points of polygon as single feature using Google Earth Engine

IMPORTS: var geometry = /* color: #d63000 */ee.Geometry.Polygon( [[[-67.76435852050781, -22.213792811479802], [-67.76641845703125, -22.220785143658368], [-67.75646209716797, -22....
1
vote
1answer
270 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
764 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
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
35 views

GEE doesn't export my featurecollection as table with all the features

I have script in GEE which calculates for given geometry (reduceregions) the mean NDVI value for given period of time ans then suppose to export the table as CSV file when the polygon name is the ...
1
vote
1answer
1k 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
453 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') // ...
0
votes
1answer
41 views

Add Admin CODE to feature collection

I want to add the ADMIN2_CODE from the dataset FAO/GAUL/2015/level2 to a featurecollection I have created to get information on some forests in Wales. I have added the elevation to the polygons but I ...
0
votes
1answer
484 views

Failed connection to Earth Engine servers

I'm trying to export a multi-layer image to drive on Earth Engine, but the task fails with the following error: Error creating or submitting task. Failed to contact Earth Engine servers. Please ...
-2
votes
1answer
60 views

Get/extract value of a band in an image

I have an ImageCollection where each image in it has only 1 band called sum. I would like to extract the value of the band and get a list of numbers. How can I do that? If the image is called im then ...
4
votes
1answer
3k 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 ...
17
votes
7answers
18k 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 ...
5
votes
1answer
4k views

Counting number of pixel identified as water from a collection of landsat image using Google Earth Engine

My objective is to count the number of pixel identified as water from a collection of landsat images. The following function masks out non-water area for each image in the image collection, it also ...
4
votes
1answer
3k views

Earth Engine memory capacity exceeded

I want to generate time-series MODIS images of a small area (10x10km) via Google Earth Engine from 2000 to 2017. I generate the clipped image collection easily and then export each image individually ...
4
votes
2answers
10k views

How do I find Sentinel-2 dataset ID on Google Earth Engine?

I'm new at Google Earth Engine and Javascript. I'm trying to use Sentinel-2 data in the API following this tutorial of Landsat data . According to this, it is possible to load/add a Sentinel-2 ...
3
votes
1answer
4k views

Mapping over list of dates in Google Earth Engine

My function fnc returns as Image but on using the ee.ImageCollection(dates.map(fnc)), it returns an error ImageCollection (Error) ImageCollection.fromImages: Attempt to create an ImageCollection with ...
2
votes
1answer
3k views

Downscaling raster images in Google Earth Engine?

How can I downscale raster images using basic interpolation methods in Google Earth Engine? For example, I want to resample Landsat image from 30m to 10m, but I cannot find corresponding functions in ...
5
votes
1answer
920 views

Resampling in Google Earth Engine: exporting Sentinel 1A to Google Drive

I tried to export Sentinel 1A to Google Drive on Google Earth Engine. The function has a parameter name "scale" which determines pixel scale of the exported image. Export.image.toDrive({ image:...
4
votes
1answer
2k 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 ...
4
votes
2answers
1k views

GEE Export.image.toDrive output not matching bounding box?

I am new to GEE and javascript. Copy-pasting here and there, I managed to put together this code that extracts NDVI from cloud-free Sentinel-2 images on GEE. I created a fusion table from a KML with ...
4
votes
1answer
7k views

Creating Sentinel-2 NDVI time series chart in Google Earth Engine?

I am exploring Sentinel-2 time-series NDVI with Google Earth Engine. In another post (here) I calculated and exported NDVI values from Sentinel-2. Now I would like to create a NDVI time series chart, ...
3
votes
1answer
4k 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 ...
3
votes
1answer
1k views

Google Earth Engine - Remove geometry fields from FeatureCollection for export to table

How do I remove the geometry fields from this feature collection? They are not necessary and give me a messy table in excel. // Add reducer output to the Features in the collection. function ...
3
votes
1answer
3k 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/...
3
votes
1answer
3k views

Export data from time-series image collection to a table in Google Earth Engine

On Google Earth Engine, I'd like to accomplish two tasks: extract data from every pixel, across a time-series, within the given geometry bounds and save it as a table. I need a column which prints ...
2
votes
1answer
60 views

Reduce multiple images per day to a single image in time series collection (Earth Engine)

I have a code which coverts the MODIS Aqua dataset into monthly means. The code is here. However, I'm want to do the same for a new data set, the NOAA/CDR/SST_WHOI/V2. However, rather than single ...