Questions tagged [google-earth-engine]

Google's cloud computing platform for geospatial data & analysis at earthengine.google.com, which can be programmed using either Python or JavaScript client libraries.

Earth Engine has client libraries in both and .

807 questions
1
vote
1 answer

Importing imageCollection from Google Earth Engine to QGIS - why the map does not appear on the canvas, if the code and crs seem to be ok?

I try to import an imageCollection to qgis from google ee with the code below. I do not receive any error message. The syntax check syas everything is ok, the map appears among the layers, the crs of the imageCollection and the project match - yet…
1
vote
0 answers

.buffer() returns error: "maxError for Buffer must be in the same units as the distance"

I would like to set a proj for .buffer(). When I set only a proj I am asked to set a non-zero maxError. When I set a maxError .buffer() returns: "Error in map(ID=0): Geometry.buffer: maxError for Buffer must be in the same units as the…
mvsc1
  • 118
  • 5
1
vote
0 answers

Select bands in ee.ImageCollection.toBands()

Using Colab, I am trying to compute an index (e.g., NDVI), but I'd like to improve the selection of the bands from ee.ImageCollection.toBands(). I am using the exact names to call the bands from the stack, but I’d like to use the band's position in…
1
vote
0 answers

IpyLeaflet not displaying on Jupyter notebook

I am using some documentation code from Ipyleaflet from ipyleaflet import Map, basemaps, basemap_to_tiles m = Map( basemap=basemap_to_tiles(basemaps.NASAGIBS.ModisTerraTrueColorCR, "2017-04-08"), center=(52.204793, 360.121558), …
1
vote
0 answers

How to add geometries to an empty geometry layer in GEE

I would like to create two empty geometry layers and then add to them user-drawn geometries based on whether they are points or polygons. // Initialize empty geomtry layers var Layer1= ui.Map.GeometryLayer({geometries: null, name: 'points',…
farhat
  • 121
  • 1
  • 1
  • 9
1
vote
0 answers

Google AI Platform: Error Code 400: Response size too large

I'm going to do predictions on Google Earth Engine using a deep learning model hosted on Google AI platform. The problem is that when I apply the model on the images, I get the following error in Google Earth Engine: Error: AI Platform prediction…
1
vote
1 answer

Map a function with more than one argument

I have a function that I would like to map over an image collection: var moisture = function (img, driest, wettest){ var img = img.clip(table).select('VV') var sensitivity = wettest.subtract(driest); var SMmax=0.32; var SMmin=0.05; var…
1
vote
1 answer

Get image statistic table on Google Earth Engine

I would like to have a look at my raster statistics, similar to freq(raster) in R, but in Google Earth Engine. I would like to know which pixel value appears how often (it is a classified raster). I can't seem to find the right ee function for this.…
Ezra
  • 159
  • 1
  • 10
1
vote
0 answers

No Error shows but One line of pixels is wrong when export image in GEE

enter image description here I am new here and I have a question about GEE. When add the image layer,I found there is one line of pixels is wrong as I showed in the picture. Number1 and 2 should be in the same value and color, but they just in the…
qs lv
  • 11
  • 1
1
vote
1 answer

Why normalizedDifference and simple band operation produces different results on Google Earth Engine?

I am exploring Google Earth Engine and trying some band operation. I have calculated NDVI using two methods, Calculating using normalizedDifference function Calculating using normal band operation. But I have checked both returns different…
Ayaz49
  • 325
  • 2
  • 4
  • 18
1
vote
0 answers

Google Earth Engine- error 'Cannot export array bands.' When exporting file from assets to drive as Geotiff?

I ran temporalsegmentationccdc algorithm and saved output in the GEE assets. There is an output file in the asset but when I tried to export that output file from the assets to drive I am getting an error such as 'Error: Cannot export array…
1
vote
1 answer

A mapped function's arguments cannot be used in client-side operations

I am trying to export Google Earth Engine images to Google drive using Google Earth Studio provided by the platform. There is an official guide to export images as following // Load a landsat image and select three bands. var landsat =…
1
vote
2 answers

How do you use a shapefile asset as your AOI in GEE?

I've uploaded a zip file of shapefiles as an asset to Google Earth Engine. How do I make this as my AOI? I've tried adding in the AOI as coordinates and ee.Geometry.Polygon but it doesn't cover the entire AOI that I need, whereas my shapefiles do.…
Allison M
  • 21
  • 2
1
vote
0 answers

How to clip a cloud mask function in google earth engine?

I'm looking to clip the cloud mask function (top of my code) to the AOI. For some reason, my other layers (dNDVI and RGB) work for the AOI, but my cloud mask doesn't apply to it. I've tried putting in the ee.Image.clip function but I couldn't get it…
Allison M
  • 21
  • 2
1
vote
1 answer

Image Download error in Google Earth Engine: "Image.date: Image '1' has a 'system:time_start' property which is not a number: 2005-09-01T00:00:00"

I want to download the time series of MODIS rasters from GEE, var batch = require('users/fitoprincipe/geetools:batch') print("batch.help", batch.help) var doy = function(img) { var firstDayOfYear = ee.Number(img .get("system:time_start")) …