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
0 answers
7 views

Get MEAN SOLAR AZIMUTH ANGLE from Sentinel-2 L2A product

I was coding in Google Earth Engine and one of the functions I run for cloud and shadow masking used the MEAN_SOLAR_AZIMUTH_ANGLE property. shadow_azimuth = ee.Number(90).subtract(ee.Number(img.get('...
rrwork___'s user avatar
0 votes
0 answers
6 views

List (Error):Feature, argument 'geometry': Invalid type.Expected type: Geometry.Actual type: Image<[constant]> [closed]

I'm learning to calculate RSEI index with my study area, which include three code libraries and one main code(copy from others,what I did is changed study area). however, it shows list(Error) that isn'...
George Wang's user avatar
0 votes
0 answers
12 views

Collection of images for specific points without exceeding memory in GEE

I've been using your help for months now but today it's my time to ask my first question. I have been working with a collection of images for 4 years for small areas and developed a script that ...
Giannis Gallios's user avatar
0 votes
0 answers
23 views

EVI differences between Landsat 5 and 8 (utilizing Collection 2 data within Google Earth Engine)

I am calculating the EVI changes from 1984 to 2023 in the winter months within the state of Maine. I have written up a script to understand the changes within each month across the 40-year time scale ...
Sarah's user avatar
  • 11
-2 votes
0 answers
19 views

How to calculate vci,tci,vsdi,vhi,spi & spei in google earth engine for a specific country using landsat images? [closed]

// 1. Define Region of Interest (ROI): var roi = ee.Geometry.Polygon( [[[87.16602927945812,20.35253691901636], [93.97755271695812,20.063855921118243], [93.93360740445812,26....
Mehedi Hasan Nayem's user avatar
0 votes
0 answers
12 views

ERA5-Land Monthly Aggregated January 1st 1965 minimun temperature error [closed]

I have found an error in ERA5-Land Monthly Aggregated - ECMWF Climate Reanalysis Dataset, in the minimum temperature data January 1st 1965. The point is near 270 ºC, in any point n Madrid city (...
0 votes
1 answer
26 views

time_slider using geemap and leefmap

I am new to using geemap, I am trying to create a time slider to show a group of TIFF files I created using Google Earth Engine. I am using colab and following this tutorial: https://leafmap.org/...
almegdadi's user avatar
-2 votes
0 answers
17 views

I set a list of Sentinel-2's images for each year but the result show that my images have 0 band [duplicate]

I'm trying to make a list of Sentinel-2 image for each year from 2015-2023, each of output layer are the years. But the result shows image doesn't have any bands. How can i fix it? My code: function ...
Nghĩa Lê Trung's user avatar
0 votes
0 answers
50 views

Image not showing any bands

I'm trying to make a list of Sentinel-2 image for each year from 2015-2023, each of output layer are the years. But the result shows image doesn't have any bands. How can i fix it? My GEE source: ...
Nghĩa Lê Trung's user avatar
0 votes
0 answers
20 views

Reputation required for commenting on posts [migrated]

I would like to ask a follow up question to a post without posting the same question again in fear of it being marked as duplicate. I fear I am trapped in a vicious cycle unless I come up with a ...
Thomas's user avatar
  • 1
0 votes
0 answers
22 views

Display url thumbnail generated by GEE in python

I am trying to generate a thumbnail image from GEE using python, but when I try to do so, it only returns the object and not the image. I am following the code here. Here is the relevant code. import ...
user44796's user avatar
  • 1,903
0 votes
1 answer
32 views

Can't visualize ImageCollection using Map.addLayer()

I was trying to retrieving chlorophyll-a levels using Landsat9. After processed it using this function : //Clorophyll-a Levels // Coefficients var a0= 0.341 var a1= -3.001 var a2= 2.811 var a3= -...
Taffy Elian's user avatar
0 votes
0 answers
34 views

Add the date to animation in Google Earth Engine

I have the gift of drought index (SPI), and I want to add the date, but it is not working: Here is the link to the code: https://code.earthengine.google.com/550145e2a10d622a2b83cae539c8a978 var ...
Arwen's user avatar
  • 1
1 vote
1 answer
38 views

How to get the bounds of a projection in GEE

I'm building a small function to create a grid based on a size and a projection. This grid will be worldwide or more specifically covering the whole projection area of use. Is there a way to get the ...
Pierrick Rambaud's user avatar
0 votes
1 answer
32 views

Extracting confusion matrix values in GEE

I am training a random forest model in Google Earth Engine, and I want to output the confusion matrices so I know which classes are being confused for which. By default, the confusion matrix is ...
Matt's user avatar
  • 131
0 votes
0 answers
41 views

Exporting large data from Google Earth Engine

I have a mosaic of Sentinel-2 images for the city of Porto (in Portugal). I have done all the initial image processing in GEE (python) and now want to use it outside of GEE so I can use the data to ...
rrwork___'s user avatar
2 votes
1 answer
60 views

Connecting twice to same Google Earth Engine service account

I'm building an internal lib for my company that rely on service accounts to reach Google Earth Engine API. The previous developer went to excessive length to make sure that the ee.Initialize() method ...
Pierrick Rambaud's user avatar
0 votes
1 answer
19 views

Using linear interpolation to fill in gaps in dataset [closed]

I'm trying to use linear interpolation to fill in the gaps in my data. I'm having trouble with creating a working function and was wondering if I could get some advice. // Desired interpolation ...
Purple Pup's user avatar
0 votes
1 answer
32 views

Substituting client-side getInfo() for server side in function to pass into map() function in GEE Python API

I am trying to clip an image over a FeatureCollection and then export each cropped image using the Python API. import ee # Authenticate to Earth Engine ee.Initialize() # Load the images and feature ...
Ana Catarina Vitorino's user avatar
0 votes
0 answers
26 views

ee.Algorithms.TemporalSegmentation.segment is not a function from GEE LandTrendr

I am working on a GEE project on a LandTrendr model for California looking at wildfires in the LA region from 2013-2023 using Landsat 8. This class involved no GEE and yet we need to use it. This is ...
J.P. Newman's user avatar
1 vote
1 answer
31 views

Image too large to export as table from GEE

I have multiple images that I am processing and would like to then export their values as a CSV table. All the following code is available and should be easily reproducible: var age = ee.Image('users/...
Ana Catarina Vitorino's user avatar
1 vote
0 answers
21 views

Area discrepancy between geometry and mask [duplicate]

I'm masking land cover data and clipping it to a geometry. Then I'm calculating the masked area. When comparing the area of the mask vs the area of the geometry I'm getting a discrepancy. Here are the ...
bernatfortet's user avatar
2 votes
1 answer
34 views

Assign matrix cell values using variable in Google Earth Engine

I am trying to create a mask for focal analyses in GEE, and need a function that creates an n x n matrix (values = 0). Then I would like to assign values across a "diameter" of the matrix ...
jbcannon's user avatar
0 votes
1 answer
30 views

How to create a custom filter to filter by band name existence in Earthengine?

I'm working with a Imagecollection that doesn't have the same band for it's 2018 and 2019 collection. It's enoying but bot the first time I encounter this situation. I would like to create a custom ...
Pierrick Rambaud's user avatar
0 votes
1 answer
21 views

Merging the elements of a list containing ImageCollection into a single ImageCollection in Google Earth Engine Javascript API

I am trying to merge the elements of a list that contains the ImageCollection for the month of January 2016 to 2022. I want to merge them into one ImageCollection containing all the images. // var roi ...
Raihan's user avatar
  • 1
0 votes
1 answer
41 views

Google Earth Engine time series analysis sediment error

I am a beginner in learning about GEE. I am now calculating sediment using Sentinel 2a satellite images in GEE, but I encountered an issue as follows: NDSSI Mosaic: Layer error: ImageCollection....
Ikrima's user avatar
  • 1
0 votes
1 answer
35 views

Exporting monthly NDWI images

I am trying to export monthly NDWI images for about 15 years from LANDSAT5 images. This is my code. for exporting 180 monthly NDWI images, I have some problems and the code does not work well. How can ...
Samaneh's user avatar
0 votes
0 answers
31 views

GEE can't find SR Sentinel-2 image of a specific date, but I can download it on Copernicus Browser

When I try to access a specific Sentinel-2 image on GEE, it doesn't show any results, even though I can find and download it in the Copernicus Browser. This is the code I have tried: var dataset = ee....
Martina Stoop's user avatar
0 votes
0 answers
38 views

Google Earth Engine - Convert large Image into FeatureCollection to export to CSV

I have a large Image in Google Earth Engine that I would like to export as CSV. However, due to its size, I am having a hard time converting it to FeatureCollection to make the export, and I don't ...
Ana Catarina Vitorino's user avatar
0 votes
0 answers
16 views

Create two y axis with different ticks in ui.Chart.image.series in Google Earth Engine

I am using ui.Chart.image.series to make one time-series chart about vh, ndvi,lswi,evi. But vh is negative and much larger than Other indices. I want to put them in one chart, and set different ticks ...
ylion's user avatar
  • 1
0 votes
1 answer
26 views

Invalid GeoJSON geometry when using GEE assets with .filterBounds GEE python API

I'm trying to import cloud assets (shapefiles) from GEE in order to use them in the GEE python API. I used the ee.data.getAsset() function with the path of the cloud assets. When I print the result I ...
Aurélien Lengrand's user avatar
-1 votes
1 answer
43 views

See image coverage for each date while doing machine learning to detect objects in NAIP HR images

I am new to Google Earth Engine. I want to write a machine learning to detect objects in NAIP HR images over all images (i.e. over the entire continental USA) for all years. I know I can run the ...
Millemila's user avatar
  • 127
0 votes
0 answers
20 views

Exporting multiple bands From EarthEngine

I'm new to EarthEngine and I am having troubles exporting my RGB map as a GeoTIFF with the correct bands. When I try plotting this layer in R using tmap, it only has one layer. I tried making a custom ...
Obleo Demandre's user avatar
1 vote
1 answer
12 views

Mask out pixels by array length in GEE

I have an image array resulting from the continuous change detection algorithm. Because arrays represent the characteristics of each break in the image series, the pixels have different array lengths. ...
user157564's user avatar
1 vote
2 answers
36 views

Set Fill Color of vector polygon layer to transparent in Google Earth Engine

I've seen similar questions like this, but setting the 'fillColor' parameter to 'transparent' or "ffffff00" or setting "fillOpacity" to 0 hasn't worked for me. I'm trying to add a ...
Zac's user avatar
  • 11
0 votes
1 answer
30 views

Add condition to select only images between 1 day and 2 days difference

I want to compute the difference in chloa concentration at an interval of 2 days. I used this function to create a join with the images from a date range of 2 days but I only want to select images ...
Aurélien Lengrand's user avatar
-2 votes
0 answers
26 views

Building Cumulative Distribution Function (CDF) from difference in concentration between two images

I have used this function in order to compute the difference in ChloA concentration between 2 days in the MODIS Aqua dataset: var Modis_diff = ee.ImageCollection( ee.Join.saveBest({matchKey: 'second'...
Aurélien Lengrand's user avatar
0 votes
1 answer
49 views

Add condition for the last Image in an ImageCollection

I'm building a function that compute the difference between values in 2 images in an image collection. Here is the function I wrote : function DailyDifference(img){ var date_0 = ee.Date(img.get(&...
Aurélien Lengrand's user avatar
0 votes
1 answer
29 views

Using cloud confidence to create cloud mask from Landsat 8 QA_PIXEL

I want to use the Landsat QA_PIXEl from this dataset to create a cloud mask in GEE. I only want to mask out the areas where there is high confidence that cloud cover is present. Looking at the ...
rrwork___'s user avatar
0 votes
0 answers
35 views

Timelapse in GEE

This code is working and the video is active but only images are there. I couldn't add the date (year) to the images. How can this step be accomplished? // Define your collection var collection = (ee....
user233587's user avatar
3 votes
1 answer
86 views

Mask Clouds and Cloud Shadow on Landsat 8 images using Google Earth Engine

I'm creating a composite image using Landsat 8 as I want a monthly composite of an area without clouds. I'm having trouble with masking the clouds. I'm using this dataset and I am applying the code ...
rrwork___'s user avatar
0 votes
1 answer
22 views

GEE: arraySlice to find first, second, third, etc. entries in image array

I'm working off of a great tutorial on continuous change detection from this book chapter. I use the tutorial data and code to demonstrate the issue I'm encountering. Using a stored array image, we ...
user157564's user avatar
0 votes
1 answer
21 views

Why is the "coefficients" from ee.Reducer.linearRegression() different from the "scale" from ee.Reducer.linearFit() in Google Earth Engine (GEE)?

I want to get the regression coefficient in GEE, but why is the "coefficients" from ee.Reducer.linearRegression() different from the "scale" from ee.Reducer.linearFit()? Below is ...
Lan Zhang's user avatar
0 votes
2 answers
21 views

Extracting spectral indices from a cloud-masked image collection using the s2cloudless masking method

I was implementing the cloud masking procedure from the s2cloudless tutorial as recommended in this answer. From the cloud-masked image collection, I wanted to extract some spectral indices, so I ...
saQuist's user avatar
  • 716
0 votes
1 answer
13 views

Why wont GEE upload my image to drive?

Im trying to export to my drive a cropped image of NDVI from the dataset 'LANDSAT/LC08/C01/T1_8DAY_NDVI', in the layer it shows perfectly but when i submit the task to upload it to drive it never ...
Nicanor's user avatar
0 votes
1 answer
36 views

Calculating LST from Landsat 8 in Google Earth Engine display a blank image

Why is it that when the following GEE code is used to calculate the lst of landsat8, the data statistics are correct, between 29°C and 55°C, but the output image is blank and the file is only 14.9MB? ...
Thomas Taylor's user avatar
0 votes
0 answers
43 views

Topo correction

How can I address the problems associated with the hills shadows in GEE, as shown in the screenshot attached? It brings a lot of complication. AN IMAGE USED // Filter to 2019 Landsat 8 images over ...
orlando's user avatar
1 vote
2 answers
47 views

Export image to it's nominal scale

I am trying to export an image without having to specify the scale and the CRS in the Export.image.toDrive function. In order to do this I found online a solution which I tried to apply it on my ...
Nikos's user avatar
  • 936
1 vote
1 answer
46 views

Flatten EE list object from array slice

I'm trying to reorganize some outputs from an EE array to an EE list. Specifically, I need to return a list of values from sublists of the array at the same index of each sublist. In my code below, I'...
AF2k15's user avatar
  • 319
0 votes
0 answers
22 views

Why does the spatial coverage of Landsat 5 deteriorate over Alaska further back in time?

I am working in Google Earth Engine to retrieve Landsat images over Alaska. As I am doing so for each year, I realised that the coverage of Landsat 5 deteriorates the further back in time you go. ...
Thomas's user avatar
  • 875

1
2 3 4 5
110