Questions tagged [google-earth-engine]

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

1,257 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
1 answer
535 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 ...
  • 347
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
0 answers
302 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 ...
  • 3,373
6 votes
1 answer
372 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 ...
6 votes
0 answers
179 views

GEE - Get date of ImageCollection mosaic

I have created mosaics by date from an ImageCollection and now want to label each mosaic with its corresponding date. This is my function to label the ImageCollection: var date_label_pos = ee....
  • 1,196
6 votes
1 answer
2k views

Data smoothing of 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 I learned how to plot a NDVI time series chart. I know that there are many smoothing methods for reducing NDVI ...
6 votes
0 answers
135 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 ...
5 votes
0 answers
119 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
352 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
288 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 ...
  • 86
5 votes
1 answer
1k 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 ...
5 votes
1 answer
320 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 ...
  • 51
4 votes
0 answers
103 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 ...
  • 41
4 votes
0 answers
227 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
643 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....
  • 113
4 votes
1 answer
952 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
1 answer
71 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 ...
  • 59
3 votes
0 answers
52 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() ...
  • 51
3 votes
1 answer
369 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
45 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. ...
  • 676
3 votes
0 answers
319 views

Correlation coefficient and R squared in Google Earth Engine

I want to calculate the correlation coefficient and R squared between two bands for two different images. How should I proceed? var s1_float = ee.ImageCollection("COPERNICUS/S1_GRD_FLOAT"...
  • 126
3 votes
1 answer
233 views

Shapefile not aligning with raster in Google Earth Engine?

When I upload a raster and shapefile into Google Earth Engine, the shapefile doesn't align properly. The datasets align perfectly in ArcMap, Envi and R. Both the raster and the shapefile are in EPSG ...
3 votes
0 answers
107 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([ ...
3 votes
1 answer
231 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
1k 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
0 answers
158 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
506 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 ...
  • 375
3 votes
0 answers
43 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
324 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: ...
  • 61
3 votes
0 answers
164 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....
  • 3,373
3 votes
1 answer
821 views

Earth Engine NodeJS API: Failed to load resource and CORS policy issue

I am developing a GEE nodeJS custom application. I have gone through the documentation and source(https://github.com/google/earthengine-api/tree/master/demos/server-auth-nodejs). I setup the service ...
3 votes
0 answers
532 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
127 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
281 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 ...
  • 147
3 votes
0 answers
524 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
129 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....
  • 113
3 votes
0 answers
2k 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
1k 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 ...
  • 31
3 votes
0 answers
789 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 ...
2 votes
1 answer
26 views

Google Earth Engine - Blend Error

I have two different DEM images that I am trying to blend. The first is based on SRTM (DEM1) and the second on coastalDEM (DEM2), with different but overlapping areas. When I do var DEMblend = DEM2....
2 votes
0 answers
48 views

How to determine pyramiding policy?

Under scale, Google Earth Engine (GEE) mentions that: For continuous valued images, the pixel values of upper levels of the pyramid are the mean of pixels at the next lower level. For discrete valued ...
  • 676
2 votes
0 answers
652 views

Google Earth Engine plug-in (for QGIS): Authorization error

I have installed the GEE plug-in for QGIS and I am struggling to even get beyond authorisation at the moment. I have an active GEE account to use the plugin. Posted below is the Authorization Error ...
  • 21
2 votes
0 answers
36 views

Exporting an ImageCollection using Service Account

When exporting an image to an ImageCollection using a serviceaccount to a legacy project, e.g. ee.Export.toAsset(myImage, "description", "projects/earthengine-legacy/assets/projects/...
2 votes
0 answers
34 views

Overriding MaxZoom on Google Earth Engine (GEE)

I cannot zoom past maxZoom: 24 - and entering a number greater than 24 is not allowed. Map.setLocked(0, 1, 24); Any workarounds? I have assets with ~2cm Ground-sampling Distance / Pixel size and can'...
2 votes
0 answers
141 views

Getting Sentinel-2 raster values for points on Google Earth Engine

I am calculating TSM and chlorophylle in a river, for each parameter I used a function to create a new band that gives me information about each one. First I want to calculate the mean value for ...
2 votes
0 answers
58 views

How many EECUs does Google Earth Engine task consume?

When computing anything in GEE, each operation consumes an amount of time for it. It is called EECUs (Earth Engine Computing Units, if I'm not wrong). Is there a way to extract, or logs, or info that ...
2 votes
1 answer
87 views

Google Earth Engine - Scripts, Docs, Assets tabs Missing

My Scripts, Assets and Docs tabs are simply missing from my code editor interface (left panel) and I cannot access any of my assets and scripts. The problem has been persisting for the past several ...
2 votes
0 answers
134 views

Calculating Annual Standard Deviation of Daily TRMM Precipitation

I am trying to calculate the annual standard deviation of daily data from 3hr TRMM observations at the catchment scale. First, I take a temporal sum of 3hr measurements to get daily P sums. Then I ...
2 votes
0 answers
103 views

Strips on Sentinel-1 EW image

I noticed some strips in a Sentinel-1 EW image acquired on 2015-03-30 over Lake Superior. This strips are visible only in HV band and are in the near range. What are they and how can I get rid of them?...
  • 126

1
2 3 4 5
26