Questions tagged [google-earth-engine]
Google's cloud computing platform for geospatial data & analysis at earthengine.google.com.
5,378
questions
0
votes
0
answers
8
views
format numeric values with preceding zero(0)
how to format number e.g 1 to 01 in javascript .
my target is to loop over every month of the year. if I hard code _0 then 10,11 and become 010,011,012. kindly response.
for(var i=2020; i<2021 ;i++)...
0
votes
0
answers
8
views
Layer error: Image.constant: Parameter 'value' is required. Google Earth Engine
I tried to do Sentinel 2 level 1C atmospheric correction with the SIAC algorithm, but got the error
Layer error: Image.constant: Parameter 'value' is required
What's the solution?
This is my code:
...
0
votes
0
answers
6
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
9
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
11
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
0
answers
9
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
40
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 ...
1
vote
1
answer
222
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
47
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
18
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
12
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
19
views
GEE: selecting one Landsat image per year according to cloud cover
I am a GEE newbie.
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 ...
0
votes
0
answers
10
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
13
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
36
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
0
answers
14
views
Classification function error in Google Earth Engine (GEE) Code [closed]
Error in Google Earth Engine (GEE) Code -
"trainedClassifier.predict is not a function"
I'm working on a classification project in Google Earth Engine (GEE) using a Random Forest classifier. ...
0
votes
1
answer
20
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
22
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
14
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 ...
-1
votes
0
answers
16
views
GEE DeepLearning [closed]
I am a graduate student, and my research direction is deep learning to extract floods.
How to use GEE for deep learning to extract flood information?
0
votes
0
answers
38
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 ...
-2
votes
0
answers
22
views
How can the average of these four bands be calculated and shown as a graph?
var GLDAS = ee.ImageCollection("NASA/GLDAS/V021/NOAH/G025/T3H")
Map.centerObject(table);
Map.addLayer(table);
// clip
function clip(image){
return image.clip(table);
}
function mean(...
0
votes
0
answers
20
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
25
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
20
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 ...
0
votes
0
answers
16
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
13
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
17
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
23
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
31
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
14
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
16
views
Cloud masking removes buildings and roads
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
22
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
23
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
19
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
15
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
24
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
36
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
12
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
23
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
12
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
48
views
Data arrangement in CSV file
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
26
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: ...
0
votes
0
answers
19
views
Error calculating SPI in Google Earth Engine using CHIRPS and MODIS data
I am trying to calculate SPI using this code, which is modified after UN-Spider's tutorial. However, the graphs do not produce and show the error saying, "Error generating chart: Response size ...
-1
votes
2
answers
41
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
42
views
Estimation the number of trees and the tree crown size using optical remote sensing data and the Google Earth Engine
I am trying to estimate the number of trees and the tree crown size with an ROI using optical remote sensing data and the Google Earth Engine.
In the following example, I have normalized the RGB bands ...
0
votes
0
answers
36
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
22
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
12
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
22
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 ...