Questions tagged [google-earth-engine]
Google's cloud computing platform for geospatial data & analysis at earthengine.google.com.
5,484
questions
0
votes
1
answer
21
views
Compute mean value of a band on each image in an Array
I try to compute the mean value of a band on each image of an imageCollection and store all the values in a Array to compute the RMSE with another dataset that I will also store in an Array (not sure ...
0
votes
1
answer
13
views
How to Fix: Layer error: Computed value is too large in Google Earth Engine
I conducted a landcover classification, distinguishing between mangrove and non-mangrove areas. For each landcover type, I gathered fewer than 10 samples. I utilized Random Forest (RF) for ...
0
votes
0
answers
47
views
Error viewing the result of ee.Algorithms.CrossCorrelation
I am facing an issue when using ee.Algorithms.CrossCorrelation in Google Earth Engine. I am using an LST image and an NDVI image as input. The final product seems to have a visualization error since ...
0
votes
2
answers
40
views
Array: No numbers in 'values', must provide a type
I'm trying to extract the pixel value of the first image of the Modis Aqua chlor_a product but when applying the code I used to do this with the Landsat dataset I'm having an error : Error in map(ID=...
0
votes
0
answers
20
views
Determining credentials details from Google Earth Engine Python API
I have two earthengine accounts. One private where I do open-source development and the other one from my company for my day to day job.
I want to use the one that are stored in ~/.config/earthengine/...
0
votes
0
answers
23
views
No numbers in 'values', must provide a type
I'm facing an error when trying to export all the pixel value of a ImageCollection.
The error is :
But when I check the corresponding image in my dataset I don't see anything different from the other....
1
vote
1
answer
51
views
Filtering clouds and creating median with Google Earth Engine Landsat8 EVI Composite
I am downloading images from Google Earth Engine's Landsat 8 Collection 1 Tier 1 8-Day EVI Composite collection here. I would like to create one image, a median composite of the images from May 1st to ...
0
votes
1
answer
65
views
GEE Export individual FeatureCollections as shapefiles from an image Collection
I have run an NDWI index for an Image collection and thres holded the results, which I want to import as individual FeatureCollections (shapefiles).
My code is of course longer, but teh most importan ...
-1
votes
1
answer
28
views
.filterDate is not a function
I'm having an error while trying to filter a dataset by date with the function .filterDate().
My dataset is as follow :
I'm using this function in the code below :
var zonalStatsL = intervals.map(...
0
votes
0
answers
48
views
Is there anyway to get satellite image based on coordinates and date filter from Google Earth Engine using Python?
I have tried many ways to get the image based on the date. I copied code from the documentation of GEE but the issue is that the resulting image is not High Definition and if I zoom in on the image, ...
0
votes
1
answer
30
views
Blank pre-1998 Landsat NDVI time series on GEE
I tried to generate Landsat NDVI time series for Fagge, Nigeria from 1993 to 2022 on Google Earth Engine but the output chart started from 1998 despite several items.
Can you assist with the code?
...
1
vote
1
answer
62
views
Adding columns to a FeatureCollection
I'm trying to build a FeatureCollection from 4 differents FeatureCollection in order to export an excel with 4 columns containg the 4 differents lists.
Here is an example of the strucuture of each ...
0
votes
1
answer
37
views
Why am I getting the error "EEException: List.map: Parameter 'list' is required." when converting GEE feature collection to geopandas df in python?
I'm trying to get a df with tree cover loss by year by sector of the DRC using the gee python API. The output feature collection is finally what I want, but I keep getting the following error:
...
0
votes
1
answer
34
views
Why is my code for flood pixel area calculation timing out?
I have made a flood map of Bangladesh following a tutorial. I am trying to determine the flood-affected land area by calculating pixel area. The map is displayed fine and the code for total area ...
0
votes
1
answer
37
views
Exporting pixel value of a dataset
I'm trying to export the value of a dataset for each pixel.
I made it this way :
var chloa_4kmOnly = chloa_4km.select("Chloa_OC3").clip(geometry)
print(chloa_4kmOnly)
var chloaFeatures = ee....
0
votes
1
answer
38
views
Expected type : List<element> Actual type ; List<Float>
I'm facing an issue while extracting each pixel value of a band:
And here's the code I'm using :
var chloaFeatures = ee.FeatureCollection(ee.List(chloa_4kmOnly
.reduceRegion({
reducer : ee....
0
votes
0
answers
63
views
GEE script for hyperparameter tuning for random forest regression with grid search
Is there any script GEE for hyperparameter tuning for random forest regression with grid search?
Here's the code:
// Hyperparameter Tuning
var test = bands.sampleRegions({
collection: ...
0
votes
0
answers
19
views
What units are AVHRR channels 1-3 in?
I'm trying to combine pre-1981 imagery from NOAA's AVHRR with post-1981 imagery from Google Earth Engine for some urban land cover prediction tasks, but have found that the channels 1-3 appear to be ...
1
vote
0
answers
64
views
GEE Global Forest Change Hansen treecover and lossyear layers contradiction
In the Global Forest Change Hansen dataset, why does the layer lossyear shows several pixels as deforested in the year 2001 when the layer treecover2000 indicates that those same pixels had no forest ...
0
votes
1
answer
26
views
I am generating a graph to show the temperature change in Pfywald in the past 30 years
I am using my code in the last project I have done and trying to change the variable to generate a time series chart of temperature in Pfywald in the past 30 years.Here is my code and my error is
&...
0
votes
1
answer
54
views
Transform ee.ImageCollection to xr.Dataset in Python (via Colab)
I am trying to transform an ee.ImageCollection (Landsat) for a Region of Interest into an xr.Dataset so I can further process the data and ultimately export as a .csv. I have tried using the library ...
0
votes
1
answer
44
views
If B1>B2 then B1 else B2 condition
I'm trying to implement OC3 equation to the Landsat 8 dataset.
In order to do so I need implement this equation :
I need to choose the highest reflectance between B1&B2 at each timestep.
I tried ...
0
votes
1
answer
46
views
How can I retrieve relative humidity(%) from 3-Hourly GLDAS Dataset using Google Earth Engine for specific date?
I would like to calculate mean and instantaneous relative humidity for a specific location and date like 2018-08-18 at 10am. This is the script:
// Define the region of interest (Adana City Boundary)
...
0
votes
0
answers
25
views
How to aovid using ee.Algorithm.If for a null ee.image in Google earth engine?
I am trying to exclude the high values in an ee.Image in Google earth engine(GEE).
Before making reduceRegion to estimate the 90% percentiles, I used updateMask(image.gt(0)) to exclude the invalid ...
0
votes
0
answers
32
views
CMIP6 Timeseries Values of 0 using ee.Reducer.mean
I am trying to acquire long term precipitation data using the Nex-GDDP-CMIP6 datasets with the band "pr". I am able to create a time series, however, all the values are of 0 because they are ...
0
votes
0
answers
34
views
GEE running on WSL2 takes a very long time to process
It takes a long time to run the Google Earth Engine process in Python on WSL2. For example, ee.Initialize() took a whopping 8 minutes.
What would the possible causes?
conditions WSL2(Ubuntu 22.04 ...
0
votes
0
answers
49
views
Google Earth Engine Error for random forest classification
I am working on random forest classification to distinguish corn areas, and defining train and test data but I faced an error.
classification: Layer error: ErrorMargin, argument 'value': Invalid
type....
0
votes
0
answers
15
views
Image (Error) Property 'NDVI' of feature '0_0' is missing
when I was working on classification for crop mapping to find maize fields, I faced the error.
I made samples using geometry and named it trainingdata which indicate maize fields.
Besides I tried ...
0
votes
0
answers
13
views
Obtaining a chart data from a ui.chart trend line
I am trying to figure out how to obtain a list of data points from a trend line I created. I need to determine the highest value and the data point associated with 15% of this max. However, when I ...
0
votes
1
answer
33
views
In GEE replace NoData value with value Zero in an image with only one band
I have the following code in GEE: I am trying to replace the NoData values with Zeros.
var mag_nbr = float_predictor_variables.select(['MAG_NBR'])
var mag_nbrZero = mag_nbr.where({
test: ...
0
votes
2
answers
118
views
Inaccurate cloud shadow masks when using Earth Engine's script for Sentinel 2
I am currently evaluating my cloud shadow masking options for Sentinel-2 data. One of the options I am exploring is using an example script published by Google that projects cloud shadow locations ...
0
votes
0
answers
20
views
How do I get a line chart to display properly in GEE?
I'm trying to graph the year against the day, which I store in 2 lists. However, my graph shows up empty when I run my code, but when I manually put in the values that are output for ChartData2, I do ...
1
vote
1
answer
32
views
Opacity ramp in palette to visualize multi-band image in Google Earth Engine
I want to visualize an image on the Earth Engine with an opacity ramp such that the low value pixels are completely transparent. Take as as example road intensity. I am trying to make an opacity ramp ...
0
votes
0
answers
18
views
Unable to find MOD11A1/A2 data for Pakistan in GEE
I need to analyze the LST products of MODIS, such as MOD11A1.061 and
MOD11A2.061, but I am unable to find any images for the KPK province of Pakistan for 2020 or even for 2021 or 2022. Why am I facing ...
0
votes
1
answer
48
views
Calculating trend of number of days exceeding the threshold in each year using Google Earth Engine
I am trying to generate a raster where each pixel will show a trend of days exceeding a particular threshold of maximum temperature in GEE. I have calculated the number of days exceeding the threshold ...
1
vote
1
answer
35
views
Adding legend to a GIF in Earth Engine
How can I add the legend created to the GIF image?
I have this code where I created a GIF with the ui.Thumbnail() function from an image collection and I have already added the years corresponding to ...
1
vote
1
answer
51
views
Finding highest value in list in GEE?
I have a list of dates and EVI values and extracted the EVI values to find the highest one. However, when I iterate through the list, it won't print anything for the maxEViValue (every value in ...
1
vote
1
answer
54
views
Get index based on a condition in Google Earth Engine
I have a list of cumulative proportions based off of a histogram that I calculated in Google Earth Engine. Now I want to find the index of this list where the value is >= 0.995 and then use that ...
0
votes
1
answer
18
views
Filter out blue patches in greenest pixel composite - GEE Quality Mosaic NDVI change image Sentinel-2
I am making greenest pixel composites from Sentinel-2 SR (using the quality mosaic tool in GEE based on NDVI). I then subtract two greenest pixel composites to get a change in NDVI image.
These blue ...
0
votes
1
answer
32
views
ReduceRegion not giving GEE data
I'm using reduceRegion on Hyperion data using the GEE Python API. I have a FeatureCollection, where, for each feature, I find the average of the required field for the whole feature, for a single ...
0
votes
2
answers
41
views
Format numeric values with preceding zero(0)
How do I format numbers in JavaScript so that 1 becomes 01?
My goal is to loop over every month of the year. If I hard code _0 then 10,11 and become 010,011,012.
for (var i = 2020; i < 2021; i++) {
...
0
votes
1
answer
24
views
Trouble with Google Earth Engine - cannot identify why chart is not generating - no features contain non-null values
Having some issues in GEE - it continuously states:
Error generating chart: No features contain non-null values of "system:time_start".
However, there are plenty of images that it could draw ...
0
votes
1
answer
27
views
How to annotate features in google earth engine?
I have a CSV file with ID, X, Y, NAME and ZoomLabel. I have been successful with putting the Point Feature on the map.
Now I am trying to annotate the locations with the NAME field.
I used the ...
0
votes
1
answer
36
views
GEE error: Unable to compute error margin in invalid area of projection (EPSG:32750: ........0))
i tried to visualize the regression from random forest, but it cannon appear in console or map, the variable predictor has been export by same scale and crs. why this is happen?
// Display the input ...
0
votes
1
answer
28
views
Null values after reduceRegion() and reducer.group
I'm wondering why I get some null values after .reduceRegion() and reducer.group().
I'm extracting daily surface temperature values for many lakes (~400,000) from Landsat images during 1985-2021. The ...
1
vote
1
answer
55
views
Understand what ee.data.getTaskStatus returns
This is maybe very simple question but I could not find the documentation for this function :
"ee.data.getTaskStatus" . I could only get the "ee.data.getTaskStatus" documentation ...
3
votes
1
answer
248
views
Strange black pixels scattered on terrain flattened image
I am attempting terrain flattening of the Sentinel-1 images here. However, I am encountering strange black pixels scattered throughout, as shown in the attached figure. I was calculating annual median ...
0
votes
0
answers
91
views
GEE - using ee.Image.sample to extract pixel values within a polygon
New to Earth Engine and trying to hack through this the best I can. Trying to sample some training data. I have 10 shape files, each containing 20 polygons spread across a large area. The problem is ...
0
votes
1
answer
23
views
I am trying to produce a LULC using supervised classification , but I got an out-put in gray color
I am trying to produce a LULC using supervised classification , however, I am getting an output in gray color. Anyone knows what is the issue?
// Supervised Image Classification with Landsat 8 ...
0
votes
1
answer
15
views
Multiple Points showing up for for a given date after applying a Savitzky–Golay filter to smooth my data
I've been trying to draw NIR and NDVI data from LANDSAT and SENTINEL-1 data respectively, which can often be a little noisy. As such, I've been trying to apply the Savitzky–Golay filter available at:
...