Questions tagged [google-earth-engine]

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

377 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
66 views

Earth Engine import record, why?

When I paste the following on EE online code editor then if offers me the option to convert to an import record. var l8sr = ee.ImageCollection("LANDSAT/LC08/C01/T1_SR"); var roi = /* color: #d63000 */...
4
votes
0answers
891 views

How to visualize inundation using Sentinel 1 SAR Data?

I am trying to visualize flooding after hurricane Harvey that made landfall on August 25-26 2017. Based on this video, I've been able to obtain the basics of Sentinel-1 SAR imagery. Sentinel 1 comes ...
4
votes
1answer
138 views

Chart of cloud cover over time

I am trying to create a graph with the cloud cover over time, per year. The following code gives me a graph, but I don't manage to get the dates on the x-axis line up chronological. Am I doing ...
4
votes
1answer
382 views

Pickling a Classifier in Google Earth Engine

I'm busy trying to create a widely applicable reedbed vegetation classifier that could potentially classify any given area within Europe. I already have training data for an area around the Balaton ...
4
votes
1answer
449 views

Missing features from featureCollection in Google Earth Engine but present in Fusion Table

I am using google earth engine code editor to extract some band values at specific point locations. To do so I have loaded my .csv file with point IDs and coordinates into Fusion Tables and the Map ...
3
votes
1answer
27 views

Plotting Sentinel 2a images on Earth Engine map shows missing chunks of images interrupting continuous sweeps

I am by no means knowledgable in this field so I apologise for the lack of a better description in the title, but (shown below) it seems that a lot has been masked out. This was taken from a short 5 ...
3
votes
1answer
264 views

Google Earth Engine - error when exporting table

I'm trying to export a frequency histogram table of a classified image for a region. function country (image) {var c = image.reduceRegion({ geometry: image.geometry(), reducer: ee.Reducer....
3
votes
0answers
48 views

Hansen loss and lossyear bands do not always match in Earth Engine

I'm looking at the Hansen forest loss v1.5 data in Earth Engine. According to the Hansen documentation, In addition, to reduce confusion, beginning with version 1.4 we are no longer releasing loss ...
3
votes
0answers
450 views

Querying with Large FeatureCollection in Google Earth Engine using Python?

I am trying to process a Tanzania shapefile downloaded from GADM Global Administrative Areas. # im -> {Image} ee.Image({...}) # self.geom_coll -> {FeatureCollection} ee....
2
votes
0answers
41 views

ReduceRegions Graph JavaScript in Google Earth Engine

I'm trying to get NDVI values as a featureCollection with my nodejs server. But the "ReduceRegions" function does not recognize the input. How to solve this problem? EE code link: (where it works ...
2
votes
0answers
55 views

Histogram matching in Google Earth Engine?

Does anyone know if there is a more GEE-friendly way of achieving this? I'm experimenting with S1 SAR image histogram matching in GEE and was wondering if foremost the code can be improved. Read here ...
2
votes
0answers
19 views

Adding WMS or WFS services to Google Earth Engine

I'm new to using Google Earth Engine. I would like to know if data from WMS or WFS services can be added to this platform. I need this information to do a data validation The information is on the ...
2
votes
0answers
25 views

Finding whether a particular band value is consistently less over a period of time in an image collection

The code below gives me forest regions of India from the Hansen data set and then I have filtered the landsat images of these regions from 2013-2019 on a quarterly basis. My output image is such that ...
2
votes
0answers
49 views

Add list to features and exporting

I would like to add a list to each of my points such that it gains the list as a "property". The following script does that: var points = /* color: #d63000 */ee.List( [[1.3634359574461996, 31....
2
votes
1answer
37 views

Finding forest regions with consistently low value of NDVI

Using the code below, I have filtered my image collection(Landsat images) over the forest regions of India. (Forest regions were found using Hansen image). I have one mean image per month over 6 years ...
2
votes
1answer
52 views

A region must be a GeoJSON Polygon or LinearRing. Got: 'MultiPoint'

I am new to Google Earth Engine and was trying to run a script to get Landsat images of districts of India after having a fusion table of shapes of all districts. GEE script is as: var india = ee....
2
votes
0answers
44 views

Charting Normalized Difference of Image Collection?

I would like to get the normalized difference of each image within an image collection (In this case Sentinel-2) for a specific polygon/geometry and then chart the values calculated for each image. ...
2
votes
0answers
25 views

Unifying color scale of different tiles in Google Earth Engine?

I found some other posts asked the similar questions but in different tools like ArcGIS, GDAL, QGIS etc. What I want to ask is how to do this in GEE. Now I have removed the bad observation pixels (...
2
votes
1answer
111 views

Finding monthly NDVI anomalies in Google Earth Engine?

I am using 16 NDVI data from GIMMS 3rd generation, and I wish to somehow visualize monthly anomalies (Difference from long term means greater than .5). I have plotted a time series of the data running ...
2
votes
1answer
98 views

earthEngine expression and ternary operator: why does evaluate false value when always true?

Why does EE `.expression('A?B:C') take into account C if A is always true? I am using conditional operations with the image.expression('condition ? true_action : false_action) as documented here. My ...
2
votes
0answers
238 views

Watersheds and Catchment delineation in Earth Engine only with included datasets

Is there a possibility to derive Watershed boundaries or catchment areas by using one or more of the integrated data sets in google earth engine? The available data sets are: WWF HydroSHEDS ...
2
votes
0answers
134 views

Sentinel 3 Cloud Masking in Google Earth Engine

I am new to GEE and I wanted to use this as part of my research. My first step was to mask the clouds off the images. The code i created basically mask out pixels based on the Quality Flag Bit 27, ...
2
votes
0answers
214 views

Nonlinear regression in Google Earth Engine on each pixel in an image collection using GEE's servers

I am attempting to optimize the parameters for a double-logistic function on an annual MODIS NDVI time series in Google Earth Engine. I have previously looked at Non Linear Regression in Google Earth ...
2
votes
0answers
1k views

Earth Engine Sentinel-2 atmospheric correction

I want to run some time series analysis on sentinel-2 data in EE for my master thesis. However the algorithms for Sen-2 in EE are scarce. The biggest issue is that there isn't any for atmospheric ...
2
votes
0answers
73 views

Serverless geospatial data type conversion (similar to ogr2ogr)

Is it possible to run ogr2ogr or Python/Fiona in a serverless environment where each feature gets processed in parallel and where you don't have to specify the properties of a virtual machine upfront? ...
2
votes
1answer
401 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
161 views

Adding Map Key to map or console in Google Earth Engine?

Is there a way to print (or plot) a map key in the console (or on the map) in google earth engine ? What would be an approach? var img= ee.Image('COPERNICUS/S2....................'); var ndvi = im....
2
votes
1answer
53 views

Export mosaic to Google Drive, generating more than just one file and can't download this

I'm exporting a mosaic via google earth engine to google drive, however it has generated many files inside a folder. // Create a geometry representing an export region. var roi = ee.FeatureCollection(...
2
votes
0answers
1k views

Trying to map through and reduce regions of image using Google Earth Engine?

I'm working on building a model in google earth engine that will estimate carrying capacities for bird species based off of a table I have of bird densities per land cover type and an image of land ...
2
votes
1answer
587 views

Charting two FeatureCollections in Google Earth Engine?

I have 2 shapefiles representing different types of land-use. Each Shapefile contains 10 polygons. I would like to chart the mean NDVI value over a specific timespan for each class. How can I display ...
2
votes
1answer
1k views

How to get property of each image in a collection in google earth engine?

I am trying to convert ASTER image from DN values to reflectance. For this I require gain coefficient of each image in the collection I have gathered. //Defining geometry var geometry = ee.Geometry....
1
vote
1answer
11 views

Performance/Speed with different types of FeatureCollection filters?

Does anyone know if there is a speed/performance advantage to any of the following three approaches to filtering a large FeatureCollection? OPTION 1: myFilteredFeatureCollection = ...
1
vote
0answers
16 views

Accessing histogram values of Image over Feature Collection in Google Earth Engine after using fixedHistogram with reduceRegions?

I have an ee.Image called image and a grid (an ee.FeatureCollection) called gridnew. First, I am getting the histogram of pixel values in the image over each feature in the Feature Collection gridnew. ...
1
vote
0answers
14 views

My code compiles sometime or it gives compile timeout sometime in Google Earth Engine

I made a project for finding build-up area of a city. It was running fine a month ago but now it compile sometime or give the compile timeout error. Here is my code: var cloud_masks = require('users/...
1
vote
1answer
24 views

Printing the mean NPP value from MODIS imagery in a specific region?

I am getting started with Google Earth Engine, trying to do something simple: calculate the mean Net Primary Productivity in a region that is defined by a polygon. NPP values are taken from the MODIS ...
1
vote
0answers
19 views

Resample function doesn't work for Landsat-8 NDVI 8-days product in Google Earth Engine

I am using Landsat 8 Collection 1 Tier 1 8-Day NDVI Composite in Google Earth Engine and I want to export it with the projection same as code editor (EPSG:3857). However, when I add the reprojected ...
1
vote
0answers
26 views

Monthly Water Area Monitoring in Google Earth Engine?

I've computed water area for each 8 days for about 20 years. I don't know how can I compute monthly area for these years? or How can I change 8 days product to the monthly in this code? code link: ...
1
vote
0answers
19 views

Multiply two image collections with different sizes based on dates

I have two image collections. They are both filtered by date beginning on Jan 1, 2019, and ending on today's date. The size of the first (kc) is 35 images and the second (ETo) is 225. The first has an ...
1
vote
0answers
13 views

Calculating the surface area to calculate built-up area in GEE?

I have made a project to find the builtup area particular city. Here is the source code: var cloud_masks = require('users/fitoprincipe/geetools:cloud_masks'); var maskClouds = cloud_masks.landsatTOA()...
1
vote
0answers
22 views

Subtracting the current NDVI image from the previous NDVI temporal cube image

I am trying to perform change detection by subtracting indexes. I am still new to GEE. I am taking advantage of the structure of an existing script to try to achieve my goal. I am generating an ...
1
vote
1answer
33 views

Google Earth Engine - Using the ee.Reducer.sum() to count the area of diferent classes of a layer (hansen/global_forest_change_2017_v1_5)?

I have use the following function to calculate the area of an area of interest (AOI) of a classification using landsat8 images. this counts the area in square meters of the classification for a given ...
1
vote
0answers
21 views

Filtering the number of pictures per month of a time series in Google Earth Engine

I'm calculating the NDVI of a time series (1 year) of Sentinel-2, but I only want two images per month to calculate that instead of the whole collection of images with less than 75% cloud. //NDVI ...
1
vote
0answers
17 views

Create a table from the properties of images and feature collections in Earth Engine?

I am trying to export the metadata properties of feature collections and images and put them into a table. The code I included works fine, but I will eventually need to get all the attributes from a ...
1
vote
0answers
14 views

Mask out areas inside a feature collection on Google Earth Engine

I am quite new to javascript and I am trying to apply a mask on an image to exclude areas inside a feature collection, I have seen that for the case of image collections the "mask" and "mask.not" ...
1
vote
0answers
19 views

Define layer names in Earth Engine Image export

I'm trying to export an image from Earth Engine but found that each layer in the .tif export is automatically named using the band index. I want the layer names to be set using band name, rather than ...
1
vote
0answers
33 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 ...
1
vote
1answer
30 views

Multiple Landsat 8 images shown for a single path, row, and date in GEE

I am trying to export an image above the Yenisei Delta using Google Earth Engine. I have its path, row, and date, and when I filter the Landsat 8 TOA imagecollection, I am able to find this image: ...
1
vote
1answer
29 views

Getting values from DataDictionary in Google Earth Engine?

I am learning Google Earth Engine with no prior knowledge of javascript (coming from R and python). Following the FeatureCollection tutorial with the following script: // Load watersheds from a data ...
1
vote
0answers
38 views

Confusion matrix from supervised learning

I am performing a supervised classification in GEE and want to verify how well my classifier has got trained. For this, I found a method confusionMatrix() and my respective program is var training = ...
1
vote
0answers
32 views

Image collections are not recognized as the same size for processing

I have two merged collections of images (LANDSAT and LANDTREND). var collection = Collection.select(['NDVI_to_ajust'],['LANDSAT']).merge( imageCollection.select(["NDVI"], ["LTGEE"])) I need to ...