Questions tagged [google-earth-engine]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
18 views

'Year' variable not applied in Earth Engine Example?

I wonder if the year variable in Google Earth Engine's example 'Sentinel2 Clear Composites' is actually applied or working. https://code.earthengine.google.com/1885668f9f476d9f8f917b2fde0b00cd To the ...
Jan Schweighöfer's user avatar
0 votes
1 answer
39 views

Should I use map or iterate in EarthEngine?

I'm working with Earthengine with a commercial license now so I started worrying about the performance of my computations. As the caching mechanism is preventing me from doing performance checks on my ...
Pierrick Rambaud's user avatar
0 votes
0 answers
16 views

Mask get wrong value

While trying to see if 2 images share some matching pixels I try to implement the mask() function. In order to do so I used image1.mask(image2) Here is an example : Mask of Image 1 : Mask of Image 2 :...
Aurélien Lengrand's user avatar
0 votes
1 answer
41 views

When loading a DEM in Google Earth Engine, it doesn't load the full map extend

I want to download a digital elevation model for a major part of Europe. Last time I tried it with the "NASA NASADEM Digital Elevation 30m", wich can be found here: https://developers.google....
Mark's user avatar
  • 29
0 votes
0 answers
16 views

Selecting only matching mask between 2 FeatureCollection

In order to do linear regression between Landsat8 and Modis Aqua datasets I want to select the images of Landsat & Modis that cover each other for each date. I have already selected the matching ...
Aurélien Lengrand's user avatar
-1 votes
0 answers
58 views

I am not able to use the Vegetation Change Tracker algorithm of GEE

// Load a Landsat image collection var landsatCollection = ee.ImageCollection('LANDSAT/LC08/C01/T1') .filterBounds(roi) .filterDate('2021-01-01', '2021-01-17') .sort('system:time_start'); ...
Jintu moni Bhuyan's user avatar
0 votes
0 answers
17 views

Implementation of below equation in jupyter or gee

Explanation for the equation: where A is the azimuth of the search direction, (xi , yi )are the coordinates of the cell of interest, and (xy , yy )are the set of all cell coordinates located along the ...
AAZIM YOUSUF's user avatar
0 votes
0 answers
40 views

Efficient way to handle large Sentinel - 2 imagery dataset

I need to automatically crop large number of polygons (~200K in a geojson file) from Sentinel-2 images varies both in extent (~30 tiles) and time (from May till August, say it's about 30 images) so if ...
user172775's user avatar
0 votes
1 answer
22 views

Use GEE downloading worldwide images results in a very narrow line

var imageCollection = ee.ImageCollection("projects/verselab-398313/assets/HiQ_LAI/wgs_500m_8d"); var MODTSS = imageCollection.filterDate('2021-01-01','2021-12-31').select('Re_TSS_MOD'); var ...
Xinpei Yu's user avatar
0 votes
0 answers
7 views

No valid training data were found. (Error code: 3) with Random Forest

In the last two days I integrated three new variables: NDVI, EVI and Copernicus Land Cover. Since that moment my model doesn't go. I tried to cover the entire AOI with Modis and Copernicus Image with ....
sabrina muscolino's user avatar
0 votes
1 answer
38 views

Creating line from 2 points in Google Earth Engine Python API

I try to create a lineString object from 2 points in using the Earthengine Python API: point0 = ee.Geometry.Point([0,0]) point1 = ee.Geometry.Point([0,1]) line = ee.Geometry.LineString([point1, point0]...
Pierrick Rambaud's user avatar
0 votes
1 answer
18 views

How to create a multiGeometry in EarthEngine

According to the documentation, earthengine supports GeometryCollection as MultiGeometry. For testing purposes I would like to create one manually, but I fail to find the corresponding class in the ...
Pierrick Rambaud's user avatar
0 votes
1 answer
37 views

Earth Engine Zonal NDVI Stats Simulation

I am a beginner at GEE and I want to run a simulation where I calculate some zonal stats for NDVI for a bunch of random points within a specified region of interest and plot them on a histogram. This ...
Obleo Demandre's user avatar
1 vote
1 answer
29 views

Make a time series plot of NDWI based water area extraction

I want to make a time series of NDWI based extraction of water pixels using Google Earth Engine. I can successfully make the mask but I am not able to code it properly to store the values of water ...
Tirthankar Ghosh's user avatar
0 votes
1 answer
20 views

EarthEngine: how to change pyramiding policy to mode for a "sum" reduction?

I am trying to do a simple "area of deforestation per year" computation in GEE, that is, applying a grouped sum reducer of a "year of deforestation" variable coming from the ...
Matifou's user avatar
  • 1,981
0 votes
2 answers
24 views

how to transform a doy band into a date in specific format?

Let's Assume I have a "doy" band in my ee.Image e.g. an integer from 0 to 365. I know the year as well (2023). It's a typical case when dealing with deforestation alert system. I would like ...
Pierrick Rambaud's user avatar
1 vote
1 answer
27 views

How to check if a featurecollection have empty geometries

I try to export a FeatureCollection to my assets, this featurecollection is build as such: surface_deforested_coffee = ee.Image.pixelArea().divide(10000).multiply(deforestation_total) res_existing = ...
Pierrick Rambaud's user avatar
0 votes
1 answer
25 views

Error exporting the mean of an Image List (of 173 Elements)

I am trying to export the LST mean for a period of time. I converted the Image collection I had to a List, but I cannot calculate the mean of all the elements within the List so there is only 1 image ...
si.patsalidis's user avatar
0 votes
1 answer
22 views

Spatial Analysis and Value Comparison in Google Earth Engine

I'm currently working with Google Earth Engine and coding some analysis. The task at hand involves working with two images. Initially, I want to select all values greater than or equal to a specific ...
Raj Bajaj's user avatar
0 votes
0 answers
33 views

Retrieving concentration values from Google Earth Engine

I am using a chlorophyll-a algorithm to retrieve chlorophyll-a and turbidity concentrations using different algorithms for a lake using Sentinel 2A (S2_SR). How can I determine the output ...
Jas Singh's user avatar
0 votes
1 answer
26 views

Using existing GeoTIFF as training points for random forest classifier (Landsat 7)

I am new to R and GEE. I am trying to establish a link, using time series analysis, between land use change (different classes) and evapotranspiration (if possible also temperature, precipitation and ...
MONICA MANUELA CORREIA's user avatar
1 vote
1 answer
15 views

Indexing error in list in gee [is not a function)

how do I access an element from a index. I have created a list with feature and I want to access them and I am using .get function. However after getting .get it is returning error that it is not a ...
ryan's user avatar
  • 11
0 votes
0 answers
25 views

SVM and KNN variable Importance Factor getting error in GEE

I have done RF, BRT and CART variable importance factors in GEE, but I faced errors in svm and knn. Here is the code /////RF_importance///// var rf_dict = classifier.explain(); print('Explain:',...
Mahmudul Hasan Milton's user avatar
0 votes
0 answers
24 views

Empty results when using sampleRegions

I have a list of multiple raster images, from which I want to select different bands from each image. Then I also have a list of coordinates, and I want to get the results for all coordinates across ...
Guillaume's user avatar
  • 101
0 votes
1 answer
17 views

Create a point that represents the maximum raster value (elevation) within a polygon: Google Earth Engine

I have around 300 polygons spread across a large area and wish to create a set of points, one for each polygon, that represents the maximum elevation value along the edge (or within) the polygon. I ...
Erin's user avatar
  • 157
0 votes
1 answer
52 views

How to deal with the blank areas in Landsat images of a large area for one year

I am a beginner with Google Earth Engine (GEE). When I select a large area of interest to obtain Landsat 8 imagery in GEE, I find that even when I use a whole year's data, the final image still has ...
ronghui's user avatar
0 votes
1 answer
59 views

How to do post-classification / eliminate isolated pixels in Google Earth Engine

I am trying to apply post-processing (Classification Sieve) in GEE to my classified raster, just as we apply in QGIS (used 4x4) or (8x8). Remove unwanted and noise pepper effects from the ...
Shumaill's user avatar
  • 103
0 votes
1 answer
27 views

How to extract HYBAS_ID values from the WWF HydoATLAS Basins feature collection?

I am using the HydroATLAS feature collection in Google Earth Engine to work with watersheds in a region of interest. Here is an example: // Load watershed boundaries var basinATLAS = ee....
Austin's user avatar
  • 5
0 votes
1 answer
21 views

Image export is 0 - 0 GEE NDWI

Why does this code export result in a 0-0 range in the TIFF image? This is from a youtube author (https://www.youtube.com/watch?v=U8qrOc9zaaE). //Download & Visualize NDWI image using Landsat 8 /...
research_bugz's user avatar
0 votes
1 answer
39 views

GEE: "Earth Engine Memory capacity exceeded" when Exporting Images

I tried running my code without exporting to drive and it works fine with no errors. But as soon as I add in the block of code that exports images to drive, I get a bunch of messages saying "...
epsilon's user avatar
  • 17
1 vote
1 answer
89 views

Random forests Google Earth Engine

I have been trying to train a random forests algorithm to sort of predict fire occurrences, using MODIS fire occurrence data as an outcome variable and elevation, distance from urban areas, air ...
tcf's user avatar
  • 11
0 votes
1 answer
75 views

Map a function with multiple arguments over an ee.ImageCollection in Google Earth Engine

I'm building a Python function for Google Earth Engine that takes two arguments: image is an input ee.Image and fields is an input ee.FeatureCollection. The function uses these two arguments to return ...
sermomon's user avatar
  • 1,104
0 votes
1 answer
26 views

How to create charts from LandTrnder function in GEE

I ran the sample code found here: https://emapr.github.io/LT-GEE/lt-gee-outputs.html, which is supposed to generate an array of results: [ [1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,...
Youdahe Gebremariam's user avatar
1 vote
1 answer
49 views

Extracting filtered NDVI proportions from polygons

I have a dataset with several polygons in which I have to guess the proportion of bared soil. My ideal approach would be to use NDVI data where I select NDVI under, lets say, 0.3, and then calculate ...
Oriol Baena Crespo's user avatar
0 votes
1 answer
24 views

Softwrap in Google Earth Engine like Atom

Is it possible to activate any option in the Code Editor of Google Earth Engine similar to 'toggle softwrap' in the software Atom? I mean, for long lines of codes that automatically continue in the ...
Jorge Arano's user avatar
0 votes
0 answers
34 views

Missing Landsat 8 Surface Reflectance Data [duplicate]

I was downloading surface reflectance data from GEE from March 1st 2017 to October 31st 2017. I should be getting data every 16 days because of the nature of Landsat 8. However, there is no data in ...
MJG's user avatar
  • 1
0 votes
1 answer
30 views

Better way to pass server-side info to export filename?

I'm trying to export many images I made in one go but since everything is stored as earth engine objects, I don't know a good way to pass information into the filename portion besides using .getInfo() ...
epsilon's user avatar
  • 17
1 vote
1 answer
36 views

Understanding Recursion in Google Earth Engine

I have a simple recursive function and would like to understand why it results in an infinite loop. I thought it would terminate immediately because I'm passing in the number 0. But instead, it seems ...
epsilon's user avatar
  • 17
1 vote
1 answer
43 views

Layers not getting displayed using Map.addLayer in GEE

I am writing a code to classify glacier features using various masks. The problem however is that none of the processed images are getting displayed. They are getting processed and the 'print' ...
Ayushi Sharma's user avatar
0 votes
1 answer
56 views

Missing Landsat 8 Surface Reflectance Data From August 2017

I was downloading surface reflectance data from GEE from March 1st 2017 to October 31st 2017. I should be getting data every 16 days because of the nature of Landsat 8. However, there is no data in ...
MJG's user avatar
  • 1
0 votes
1 answer
47 views

Stopping condition in Google Earth Engine

I haven't been able to find much on this - likely because GEE prefers the use of .map and such. However, I have an inherently iterative problem. At a high level, I just need to iterate through a list ...
epsilon's user avatar
  • 17
0 votes
0 answers
138 views

Harmonized Sentinel-2 Landsat

Recently, I recognized a new dataset in Google Earth Engine called the HLSL30: HLS-2 Landsat Operational Land Imager Surface Reflectance and TOA Brightness Daily Global 30m. I am wondering about the ...
Henri's user avatar
  • 21
-1 votes
1 answer
71 views

How can easily I convert polar coordinates (using an arbitrary location as the "pole") into latitude and longitude in Google Earth Engine? [closed]

Let's say I have an arbitrary point marked by WGS84 lat/lon. From that point, I measure the distance (in meters) and direction (as an absolute bearing from true north) from that waypoint to the ...
Anson Call's user avatar
0 votes
0 answers
34 views

Unknown reference to value named ''. Currently known value names are: []

I'm extracting an imagecollection with to drive with this function : var batch = require('users/fitoprincipe/geetools:batch'); var output_folder = 'Modis_tiff'; // Export collection image to Drive ...
Aurélien Lengrand's user avatar
1 vote
1 answer
28 views

Error when trying to transform ee.Image to vector with Python

I am trying to transform some weather ee.Image to vector format. For context, my final goal is to export data as shapefile, read into GeoPandas and use it as input to a deep learning model, so there ...
Giovanni Amorim's user avatar
1 vote
2 answers
89 views

How to convert Float to Number in gee

I'm trying to calculate percentile 95th divide to percentile 5th but I have not been able to find how to do this. var start = "2022-01-01" var end = "2022-12-30" var dataset = ee....
Sajjad's user avatar
  • 51
0 votes
1 answer
148 views

Total request size (537871149 bytes) must be less than or equal to 50331648 bytes

I try to export images from an image collection in .tif by using this code. https://colab.research.google.com/drive/1dfIoK5stZcFrtfGDsFLhxIV_VrJNZlxM?usp=sharing When doing this I got the following ...
Aurélien Lengrand's user avatar
1 vote
1 answer
75 views

Calculation of percentile and use it in formula

I'm trying to calculate percentile 95th and 5th for NDVI I can put the 95th percentile and 5th percentile manually, but I want to do it automatically, that is, Google Earth Engine itself will extract ...
Sajjad's user avatar
  • 51
0 votes
1 answer
51 views

Error exporting GeoTIFF to Google Drive - Google Earth Engine

I am trying to export a GeoTIFF to my Google Drive, but this error occurs - Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection. (...
si.patsalidis's user avatar
0 votes
1 answer
77 views

How to fix "If one image has no bands, the other must also have no bands"

I want to divide every image to 10000 then change the negative values in every pixels of a image to zero from (2015-01-01) to (2016-12-30) but when I am trying to run this code it gives me this error: ...
Sajjad's user avatar
  • 51