Questions tagged [google-earth-engine]
Google's cloud computing platform for geospatial data & analysis at earthengine.google.com.
1,545
questions with no upvoted or accepted answers
11
votes
1
answer
758
views
How to use a custom function inside GEE ee.Reducer?
I have generated a segmentation using SNIC on GEE and calculated some statistics/features for each segment, using ee.Reducer e.g. mean, std, median, etc. I want to calculate more features based on my ...
7
votes
0
answers
609
views
Equal Earth Projection in Google Earth Engine
I'm trying to get a gobal visualization similar to what NASA does. They are probably using popular Equal Earth projection (EPSG:8857), but this fails in GEE.
In order to implement this projection, I ...
7
votes
1
answer
2k
views
Results of Variable Importance of RF Classifier in GEE
I create a RF module in GEE like this:
//Random Forest Result Function Module
exports.getRfResults = function(image, title, bands, trainPoint, testPoint, area, label) {
//Create Sample Points ...
6
votes
1
answer
547
views
Google Earth Engine: Adding raster assets. How long can the ”Asset ingestion” take in Earth Engine after a successful upload?
I am trying to add a relatively large raster dataset (single band data, 8.05 GB GeoTiff, semi-global coverage) as an asset to Earth Engine through the web interface.
The upload succeeded, but now ...
5
votes
0
answers
164
views
Earth Engine coordinates in a map
I am beginner and I'm having troubles to do what I want in Earth Engine.
I want to put the coordinates under the map, like this:
I already made the layer, but I don't know how to put the coordinates ...
5
votes
0
answers
462
views
How to fix "Parallel Arrays Must Have Same Length" error for chart
I'm using a transect with two types of data to collect temperature and aerosol index on Google Earth Engine. I want to print a line chart using multiple dates, but I keep getting two error listings:
...
5
votes
0
answers
1k
views
Export: Error: Internal error. from Google Earth Engine
I'm attempting to export an image by a time block for a particular census KML using the method below.
Earth Engine is kicking back "internal error". As the error is not very helpful, I am having a ...
5
votes
0
answers
378
views
Google Earth Engine: Prevent Cloud mask algorithm for Landsat-8 from masking coastline
I am trying to remove clouds on Landsat image using cloud mask. However, the cloud mask removes even the shoreline that do not have clouds. I don't know why. Is there another way?
(upper: pre-masked ...
5
votes
0
answers
878
views
K-fold validation on Google Earth Engine
I have a satellite image "india_image" and data in form of a feature-collection "ft". I want to perform k-fold validation on this data in Earth Engine. How to do so?
var india_image = ee....
5
votes
1
answer
392
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 ...
4
votes
0
answers
257
views
Choosing the right coordinate system to measure area all over the world
I'm kind of new to GIS, I have a background in physics, but I'm pretty confused with all the projection available and how to use them.
I have a dataset of 133 coordinates around the world. I am using ...
4
votes
1
answer
155
views
How to get coordinates of geometry in its own projection?
I am calculating the centroid of a Feature, and then extracting the geometry of that point in a specific projection. When I print the geometry, it shows me under coordinates the coordinates I expect. ...
4
votes
0
answers
211
views
Chart multiple regions on one histogram
I'm having trouble trying to chart multiple regions onto one histogram.
var urban1 = urban.first().geometry();
var pine_forest1 = pine_forest.first().geometry();
var regions = ee.FeatureCollection([
...
4
votes
0
answers
421
views
Align pixels for two images with same CRS in Google Earth Engine - why it doesn't work and, do I need this?
I am doing calculations in Google Earth Engine using several images from different sources, but I don't find a way to snap or pixel-align the layers before calculations.
Also, I don't seem to ...
4
votes
0
answers
223
views
.getDownloadURL() does not respect image clipping (Earth Engine)
I want to download a clipped version of image with getDownloadURL(), but the result only maintains the bounds of clip polygon, not the shape itself.
This is an example script:
var no2_coll = ee....
4
votes
1
answer
997
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
0
answers
100
views
Accuracy assessment of unsupervised clustering - GEE
I have clustered my map on the basis of NDVI values using an unsupervised approach. I don't have the labels. However, I do have the cluster IDs that were automatically assigned.
How do I assess the ...
3
votes
1
answer
137
views
Google Earth Engine task.id not showing correct id format?
const task = ee.batch.Export.image.toCloudStorage({
//task description
});
task.start(() => {
console.log("Task started: " + task.id)
}, (error) => {
console.log(&...
3
votes
0
answers
144
views
Landsat Collection 2 surface reflectance harmonization
I am using Landsat 5, 7, 8 collection 2 level 2 to extract NDVI time series with GEE.
Is it necessary to apply the Landsat ETM+ to OLI Harmonization with the Roy et al. (2016) coefficients to ...
3
votes
1
answer
260
views
DataTable Charts issue in Google Earth Engine
I am working on drawing a chart using datatable. So I followed the instructions in https://developers.google.com/earth-engine/guides/charts_datatable
I noticed a 30 days shift between the data and the ...
3
votes
1
answer
543
views
Image collection monthly averages using geemap package
I am trying to convert some code snippets from GEE JavaScript to Python. This code computes the monthly averages of NDVI images given a range of years and a range of months.
This is my code in ...
3
votes
1
answer
138
views
Earth Engine - Exporting image after object based methods/analysis
I performed object-based methods to calculate a mean (zonal statistics) for connected pixels adapted from this guide: https://developers.google.com/earth-engine/guides/image_objects#label_objects
Here ...
3
votes
0
answers
314
views
Dynamically formatting file names for exporting using Google Earth Engine JavaScript API
I'm very new to GEE and JavaScript and I am trying to export multiple landsat 8 satellite images for the same region over time. For example, let's say I want to extract images of the Seattle area from ...
3
votes
1
answer
261
views
Extracting date range from RADD dataset in Google Earth Engine
I have a script that provides the latest event/alert from the RADD dataset. I would like to extract events from a date range, e.g. 2020-01-01 to 2021-12-31. How should I go about this?
This is the ...
3
votes
0
answers
227
views
Rainfall trend analysis in Google Earth Engine
I have an image collection of images representing total seaonal rainfall from 1980-2020 in my study area. I want to run an analysis which identifies if a pixel has any significant trends i.e. ...
3
votes
1
answer
666
views
Masking FeatureCollection using image in Google Earth Engine
I have a FeatureCollection with my study area, and an image with urban areas. I want to remove the areas in my FeatureCollection where the image has urban areas. How can this be done?
var studyArea = ...
3
votes
0
answers
124
views
Uncertainty in estimating a polygon area in GEE
I have 2 methods to compute the area of a polygon:
Using the dedicated method: ee.Feature.area()
Summing the area of each pixels of an image reduced to the polygon using ee.Image.reduceRegion()
...
3
votes
1
answer
1k
views
Bitwise and bitmask used in mask clouds Sentinel-2 images
What is the function behind two specific line in below coding block ...
1) var cloudBitMask = 1 << 10;
2) var mask = qa.bitwiseAnd(cloudBitMask).eq(0) .and(qa.bitwiseAnd(cirrusBitMask).eq(0));
...
3
votes
0
answers
1k
views
Cropland field delineation using OpenCV and Google Earth Engine
I want to follow the methodology in the following article in order to find field boundary delineation automatically: "Multi-Temporal Crop Type and Field Boundary Classification with Google Earth ...
3
votes
1
answer
770
views
How to set band names of multi-band GeoTIFF asset upon upload to Google Earth Engine
I have created a multi-bands GeoTIFF using xarray in Python following this answer. When I display this raster or open it in QGIS, all the bands are named following the variable they represent:
...
3
votes
1
answer
346
views
Exporting time series data of multipoints in Google Earth Engine
I have created three points of land surface temperature. I want to export the time series result in three different variable names.
// Import country boundaries feature collection.
var dataset = ee....
3
votes
0
answers
3k
views
Parameter 'input' is required by using GEE
I am new to using google earth engine. Exploring forums I found a script that is very useful to me, but when I run it I get the following error:
Error: Error in map(ID=...
3
votes
1
answer
253
views
Error: Unable to open image while ingesting into earth engine
I am trying to upload and ingest a raster file of TIF format into the earth engine. The data is stored in GCS and I used CLI to make the upload. Upload is complete, but ingestion is interrupted ...
3
votes
0
answers
812
views
Timestamp video/time-series in Google Earth Engine
I successfully managed to output a video time-series of processed Sentinel 1 SAR images in GEE for my areas and dates of interest by adapting an existing script. However, I've not been able to ...
3
votes
0
answers
62
views
Setting projections for an earthengine app
I am experimenting with earthengine app as described at Earth Engine Apps.
I am trying to use a different projection than the default. This answer to Changing projection of Google Earth Engine code ...
3
votes
1
answer
543
views
How GEE align pixels and projection when reduce resolution?
Here is the thing: I want to count how many Landsat pixels 30x30m were included in a 500x500m MODIS pixel. It is basically a zonal statistics, and I use reduceResolution to compute. But the issue is: ...
3
votes
0
answers
624
views
EVI in Google Earth Engine
I calculated the EVI for a Landsat image from -1 to 1. However, when I use the inspector tool in GEE and click around on my image, I see I have values less than -1. Is there something wrong with my ...
3
votes
0
answers
710
views
How to perform thinning/skeletonization morphology operation on GEE?
In google earth engine (GEE) they provide a morphological operator for erode and dilate as follows (Ref: here)
image
// Perform erosion
.focal_min({kernel: kernel, iterations: 2})
// ...
3
votes
0
answers
168
views
Measure distance to coast along river
I have a dataset on rivers and a dataset on the location of dams. I want to calculate the distance from the dams to the river’s mouth at the coast along the river (not the shortest distance) for those ...
3
votes
0
answers
401
views
GEE Hypothesis Test for Regression Slope
I am using Google Earth Engine to calculate linear trends over time using the linearFit reducer. I am interested in identifying pixels that exhibit significant increasing and decreasing trends using a ...
3
votes
0
answers
627
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 ...
3
votes
1
answer
989
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
2
answers
916
views
COPERNICUS/S2_SR data missing?
I am trying to download time series data (2017-01-01 to 2018-12-31) of different optical indices (e.g. NDVI) from the COPERNICUS/S2_SR dataset. The chart I plot only ever contains few values per year ...
3
votes
1
answer
153
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....
3
votes
0
answers
3k
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 ...
3
votes
0
answers
852
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, ...
3
votes
0
answers
2k
views
Writing code to add calculated image to display in Google Earth Engine?
I wrote a code for Land Surface Temperature (LST) from Landsat 8 images in google earth engine.
I have successfully calculated the following steps,
NDVI, fractional vegetation (fv), emissivity (EM), ...
3
votes
0
answers
2k
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 ...
3
votes
0
answers
963
views
Reducing image collection separately for each image to make series?
I know how to reduce a collection to one image, or an image to a value in Google Earth Engine. But I can not find an easy way to reduce each image in a collection to a statistics and get a list of ...
3
votes
1
answer
2k
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 ...