Questions tagged [google-earth-engine]
Google's cloud computing platform for geospatial data & analysis at earthengine.google.com.
5,495
questions
1
vote
1
answer
56
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
34
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
27
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
29
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
37
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
250
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
93
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:
...
0
votes
1
answer
34
views
Selecting one Landsat image per year according to cloud cover using Google Earth Engine JavaScript API
I'd like to create a Landsat 5,7 and 8 Image Collection for a given location, selecting for each year (and within the January to march month range) the scene with the least cloud cover.
So far I have ...
0
votes
0
answers
17
views
Visualization mixing in GEE
I'm trying to train global land cover dataset as training for classification. When I try to visualize final classified map, its mixing as colors are not coming good. Is there any way to fix min max ...
0
votes
0
answers
38
views
matrixSolve cannot solve underdetermined system. (Error code: 3)
I'm working with GEE in Python, processing Sentinel 1. After apply Savitzky-Golay filter, like it is applying in this answer writing by Kerste ( https://gis.stackexchange.com/questions/321082/gee-...
0
votes
0
answers
48
views
How to call a specific attribute from a feature
I am trying to store the coordinates of each points as an individual variable. How would I go about doing this?
var randomPoints = ee.FeatureCollection.randomPoints({
region: studyArea,
points: 5,
...
0
votes
1
answer
30
views
Add a computed list as a property to each feature of a featurecollection
I'm computing a reducer over a featurecollection using reduceRegions. I would like to add back the computed properties as a "sum" property to each feature of the initial featureCollection.
...
0
votes
0
answers
35
views
Per-pixel percentile rank of ee.Image() compared to ee.ImageCollection() using "random" method as tie breaker
I'm trying to figure out how to use Earth Engine to calculate the percentile rank of an observation compared to a vector of observations. I would like to do this per pixel, and I want ties to be ...
0
votes
0
answers
20
views
Methods in Google Earth Engine to correct the impact of sunlight on water bodies
There are very high reflectivity water bodies on both Landsat and Sentinel satellites, which is very troublesome when retrieving water quality parameters. Are there any simple and effective methods to ...
0
votes
0
answers
42
views
One-to-many feature collection in Google Earth Engine
I own two featurecollections, a point featurecollection named 'pointsWithFormattedDate' and a polygon featurecollection named 'polygons'. Starting from these two featurecollections, I would like to ...
0
votes
0
answers
39
views
Dropdown does not update map on Google Earth Engine (Geemap Python package)
I have estimated NDVI and NDWI for a specific area based on Sentinel 2 images via gee library on Python (Google Earth Engine). More specifically, I have created two functions (one for each index) and ...
0
votes
1
answer
82
views
Batch deleting of Earth Engine assets
I have 100+ assets in Earth Engine that I want to delete at once. Unfortunately they're not in a specific folder, they're in the home folder. They all begin with '01_...' so I thought about using the ...
0
votes
1
answer
46
views
GEE filterBounds returns Error: Invalid property type
I'm new to GEE. I'm trying to export a shapefile of Google building footprints cliped to a area of interest but I keep geting an error in the filterBounds.
This returns de message:
Error: Invalid ...
1
vote
0
answers
33
views
AttributeError when running dc.load command (ESA WorldCover Classification Notebook)
This issue was raised at Git Hub a few months ago, but unfortunately, there is no solution so far. Therefore, I decided to post it here in the hope of attracting the StackExchange community.
I am ...
0
votes
1
answer
18
views
GEE exporting images in loop: description fails
I think this might be a very simple fix but I can't figure it out.
I'm trying to export images in a loop to Google drive, so the filename/description should be updated in each loop.
for (var i= 0;...
0
votes
0
answers
63
views
EEException: Image.clip: The geometry for image clipping must not be empty
I'm trying to make a supervised classification with Random Forest using FAO/GAUL administrative boundaries as a Region Of Interest (ROI) to clip the images by ROI bounds on Google Colab.
# Get a ...
0
votes
0
answers
36
views
The map color display in GEE and QGIS is different
I'm new to in Google Earth Engine and QGIS. Lately I try to export map from Google Earth Engine and then i opened the map in qgis. Sadly, the map color in Google Earth Engine is not the same in QGIS. ...
0
votes
0
answers
59
views
How to download a joined image as a CSV file on my local computer?
I used a Landsat tile to extract information (images) from different satellites. Then, I add each image to a band like below. So, How can I download it (img_joined) as a CSV file to my local computer?
...
1
vote
0
answers
25
views
ee.Reducer includes too many pixels
I have a simple task. Extract the frequency of each pixel value in each geometry, given:
a ee.FeatureCollection containing 1ha (100m x 100m) geometries,
a single band ee.Image with a pixel resolution ...
0
votes
1
answer
35
views
Cloud masking removes buildings and roads [closed]
I'm new to GEE and especially the cloud masking algorithms. I am trying to get a cloudless composite image of an area using ee.Algorithms.Landsat.simpleCloudScore(image) but I'm aware that this method ...
-1
votes
1
answer
26
views
Converting giant JavaScript feature collection of coordinates to GEE feature collection
I have a very large JavaScript feature collection (I think - will post a snippet below) and I want to display the vectors in Earth Engine with their attributes.
var lots = {
"type": &...
0
votes
1
answer
34
views
Getting code to export monthly NDVI values
I am trying to export monthly NDVI values for 2007 for my asset 'M2007' which is a mangrove extent shapefile. I've been able to export following the same code, the monthly ndvi values for 2012, apart ...
0
votes
1
answer
31
views
Issue using while loop in Google Earth Engine
I am trying to write an iterative procedure using the GEE Code Editor. I initially calculate a variable "AR" and if this variable is greater than a specified threshold, then an iterative ...
0
votes
0
answers
20
views
Problems with dissolved shapefiles in Google Earth Engine
I created a single dissolved polygon shapefile out of a set of smaller polygons in ArcGIS and imported it into Google Earth Engine using geemap (Python API). I wanted to extract values from every ...
0
votes
0
answers
39
views
Image (Error) Parameter 'delta' is required. (GoogleEarthEngine)
I am trying to calculate NVDI Z-score from monthly mean and std NVDI, for the time series, but it showing this error:
"Image (Error) Parameter 'delta' is required."
My code link: https://...
0
votes
0
answers
40
views
How to use Spectral Temporal Metric (reducers) in Supervised Random Forest Classification in GEE
I am trying to improve image classification in GEE by using the STM of the mean.
I first calculated the mean of the four bands.
Then I added the new column with mean to the image.
Then I used the new ...
0
votes
1
answer
23
views
I cannot export all image collection with image date for MODIS NDVI
While exporting images the namings are not setting properly with the image date. How can I solve the problem?
I have attached the associated code:
// Import the MODIS NDVI dataset.
var modisNDVI = ee....
0
votes
1
answer
32
views
Create a multiband constant Image from a list object
I get values as a list from another computation and I would like to create an ee.Image with 1 band for each value.
I wanted to do it as specified in the documentation:
var list = ee.List([1,2,3])
var ...
0
votes
0
answers
17
views
Base on land cover data to get plant functional types(PFT) by using GEE, but get something wrong
By using .reduceresolution() and ee.Reducer.mean() to reduce resolution from 10m to 10000m.But the result looks like taking the most distributed elements in the area and assigning them to new pixels.
...
0
votes
1
answer
66
views
Data arrangement in CSV file [closed]
I am getting whole data in a row while exporting CSV file . I need data in separate columns in CSV file. Soil variable value in a separate column and pixel counts against each soil variable in next ...
0
votes
1
answer
53
views
Getting null pixels during soil texture analysis
I am using 'OpenLandMap/SOL/SOL_TEXTURE-CLASS_USDA-TT_M/v02'
band 'b0'
when I run my analysis, why I am getting null pixels.
Output
Object (5 properties)
4: 67274
6: 963
7: 280852
9: 144241
null: ...
-1
votes
2
answers
48
views
How to check if an Image is constant and retrieve its value?
I automatically created an image that should be constant, but I would like to make sure. How can I check if an image is constant and retreive its value ?
I tried to use:
ee.Image(1).reduceRegion(ee....
0
votes
0
answers
44
views
Getting imagery in Google Earth Engine
Is it OK to flatten several features into a single one before obtaining the raster data?
I have several AOIs in the form of GeoJSON files. I open them using
AOI01 = geemap.geojson_to_ee('path/to/AOI01....
0
votes
2
answers
27
views
How to count the number of "days" between 2 date in Earth Engine
Considering a ee.DateRange or 2 ee.Date, how can I count the number of unit between the 2 dates?
For example:
dates = ee.DateRange('2020-01-01', '2020-01-31')
nbDays = my_custom_method(dates, unit=&...
0
votes
1
answer
18
views
GEE - Is there a way to divide an image to a set number of rows and columns, then export those smaller images?
I have a square over the area of interest. What I want to do is split the image that I've clipped from the square into 64 smaller squares, or maybe less like 16 smaller squares. After which I will ...
0
votes
1
answer
38
views
How to remove duplicates from a ee.List
I'm creating an function to extend the sequence method of earthengine. My objective is to ensure that whatever the step the last item is the last one (or the first if step is negative). My rational ...
0
votes
1
answer
51
views
Downloading EVI from Google Earth Engine
I am trying to download images from Landsat's EVI collection off of Google Earth Engine. I saw another similar post here: EVI or NDVI collection image download that talked about the same issue. One ...
0
votes
0
answers
26
views
Google Earth Engine ui.Button and ui.Select fontsize
I am asking regarding the Google Earth Engine Apps. It seems that ui.Button and ui.Select cannot change their font sizes using fontSize and only the box size changes when applying this argument. I am ...
0
votes
0
answers
43
views
Download monthly Landsat 8 bands and spectral indices as separate rasters at once for several years
I created the below code which computes monthly mean images and I would like to automate the process of exporting Landsat's 8 monthly bands and indices as separate rasters to my Google Drive. So far I ...