Questions tagged [google-earth-engine]
Google's cloud computing platform for geospatial data & analysis at earthengine.google.com.
5,681
questions
1
vote
1
answer
478
views
Conditional statements with formulas in Google Earth Engine
I would like to apply an expression to an image based on conditions. The part of my code that I
need to do this in is where i need to calculate runoff Q2 based on values of AMC and S:
var runoff_func =...
-1
votes
1
answer
298
views
Using ee.Reducer.percentile in Google Earth Engine
I tried to reduce the resolution of the land cover map from 100m to 1000m, by putting the condition that if for example, 60 percent of the same value can be found in 1000m, we do the aggregation. For ...
1
vote
1
answer
695
views
Select a single polygon in a FeatureCollection
I am currently trying to perform a supervised classification in Google Earth Engine (GEE) for which I have a set of polygons of areas with forest plantations.
The FeatureCollection I have shows me, ...
1
vote
1
answer
384
views
Is there a way to get a global minimum and maximum value for an Earth Engine Image?
I want to determine the 'global' minimum and maximum value for a calculated variable in Google Earth Engine. Essentially, my goal is to use a global geometry in reduceRegion(). However, Earth Engine ...
0
votes
1
answer
142
views
How to calculate and export a table of mean of the maximum daily NDVIs over a particular period
I am using code from Nina Kattler to calculate the mean of max daily NDVI in particular districts in Mali over the growing season in 2019. The original code gives the mean NDVI over the growing season,...
1
vote
1
answer
735
views
Albedo using Landsat 8 not giving correct values
I'm trying to get albedo for my study area but my values are not coming good. I need values in range of 0-1 but these values are out of this range. I don't know when I multiply scale value, its not ...
0
votes
1
answer
398
views
Sample regions with Geemap yield empty FeatureCollection
I have feature collection of 200 points and raster which is a result of sum of three bands of an Image. I want to create a table which will show the points (feature collection) and the value these ...
0
votes
1
answer
338
views
How to blur Landsat 8 image using a gaussian smooth filter with specified sigma value before downloading using Google Earth Engine?
I would like to add gaussian blur with sigma = 'some value' to Landsat 8 images before I download them using Google Earth Engine (GEE). So far I managed to simple download the images without adding ...
0
votes
1
answer
116
views
Error generating chart: The image collection is empty Landsat 5
I am using Landsat 5 to generate my NDVI, but it's giving an Error generating chart: The image collection is empty. However when I change the location of my AOI to the northern hemisphere, for example,...
1
vote
1
answer
684
views
Extracting the time series of all pixel values in the study area for one band in an image collection in Google Earth Engine in a CSV file [closed]
I have an image collection in Google Earth Engine in different dates, I want to extract the time series of all pixels in the study area for one band in the image collection in a CSV file. In fact I ...
0
votes
1
answer
202
views
Trying to export entire image collection but batch is not working?
I am trying to download time series ET. But the batch tool is not working.
Error:
In users/fitoprincipe/geetools:batch
Line 133: collection.size is not a function
var batch = require('users/...
1
vote
1
answer
141
views
Concatenate image ID to band names for image point sample (Earth Engine)
I am trying to download a point sample of climate information from the TerraClimate collection in GEE. I want the column names to be the concatenation of image ID and band name (a wide table).
I tried ...
0
votes
1
answer
470
views
User memory limit exceeded in gee for calculate PCA
I want to calculate PCA for the image Landsat 5 but i get this error User memory limit exceeded, I know it's because the memory but i don't know how can i resolve this problem.
This is my code :
var ...
1
vote
1
answer
100
views
Export time series data from 3 bands in single Image Collection based on single coordinate
I have an Image Collection consist of daily Tmin, Tmean and Tmax. I am able to create chart for each Band (with series and doySeriesByYear) based on single coordinate and make it feature collection so ...
1
vote
1
answer
519
views
How do I calculate population within radius on Google Earth Engine?
I'm trying to calculate the population within a specific radius within a specific country using Google Earth Engine. My plan is to use reduceToVectors to convert the population values into a ...
0
votes
0
answers
347
views
Google Earth Engine: loop raster extraction over image collection and create dataframes (geemap)
I would like to extract a large number of points (approximately 3000) from each image within an image collection, and return a pandas dataframe for each image.
The function I'm using to extract raster ...
1
vote
1
answer
485
views
How would I calculate the sum of the values of a band around a specific pixel in Google Earth Engine?
I'm trying to calculate the population within a certain radius around a specific pixel, but I don't know how to define the geometry of the region to reduce.
This is what I would imagine it might look ...
1
vote
1
answer
105
views
GEE return data for point but not for polygon
When I use this code (Python API) to get data per point, it works fine:
def calcMean(img):
mean = img.reduceRegion(ee.Reducer.mean(), polygon).get(band)
return img.set('date', img.date()....
2
votes
1
answer
286
views
Image.constant: Parameter 'value' is required Error generating chart
I am trying to generate a chart and I am finding it hard to generate it. Is it a coding error in calling my functions?
https://code.earthengine.google.com/?scriptPath=users%2Fmpalasimbarashe%...
0
votes
1
answer
756
views
Urban Heat Islands in Google Earth Engine
I am working to create Urban Heat Islands effect in Google Earth Engine. But there is a problem with function BT - images.addBands is not a function
var images = ee.ImageCollection("LANDSAT/LC08/...
1
vote
1
answer
499
views
Layer error: reduce.median: Error in map(ID=20200526T144731_20200526T145503_T19LFJ): Element.copyProperties: The source parameter is required
This code was working normally and now it's giving this error, does anyone know what changed?
https://code.earthengine.google.com/db01303623e6f1a4d0e417f1c3c0713e
The following errors appear:
print ...
1
vote
2
answers
720
views
If a GEE task is described as "Running on Sever", can I shutdown my computer and chekck its result later?
I'm new in using Google Earth Engine and today I tried to export an image into Assets, but it seems that the task will take a long time to compute a result. I noticed that it says the task is "...
0
votes
1
answer
145
views
Customising band names before exporting
I am unable to identify the bands after exporting as it shows no band name after exporting in google drive
I have tried to download Landsat 8 Surface Reflectance Tier 1 image.
I filtered the images ...
1
vote
1
answer
421
views
Export list (properties of image) from GEE
I tried to export a list, which is the values from the image from gee. I tried both Export.image.toDrive() and Export.table.toDrive(). But they don't work. Below are the codes I am using (an example ...
0
votes
2
answers
676
views
Calculate distance to target pixels in Google Earth Engine
I am having a water body raster in the form "0" as water pixels values and rest of the area is "masked". I want to have my output in the form of an image such that each point in ...
0
votes
1
answer
276
views
Google Earth Engine - Extracting Sentinel 1
I am trying to extract values of Sentinel 1 and Sentinel 2 images at polygon locations. For Sentinel 2 it works perfectly, for Sentinel 1 I only get empty feature collections back (see code below).
...
0
votes
1
answer
512
views
How to split a polygon shapefile into small polygons using Python
I have a polygon shapefile and want to divide them into very small regions using python.
This is being done as Google Earth Engine does not download data over large areas, hence I want to divide the ...
0
votes
3
answers
600
views
Google Earth Engine: running NDVI analysis by month
How would I go about making my analysis values per month rather than per year
Create date filter and vector of years for analysis
var date_filter = ee.Filter.date('2010-06-22', '2022-06-22');
...
0
votes
0
answers
47
views
Supervised Classification gives "Directory(error)" ans "SR_B1" missing error in GEE
I am trying to run supervised classification on single date, cloud free, Landsat 5 collection 2 level 2 image. I have imported the point shapefiles of different classes with class values and have ...
0
votes
1
answer
207
views
Cloud masking function giving null values
I'm trying to do cloud masking using sentinel but As you can observe, there are pixels that are ‘black’ (or dark) especially on the cloud areas. These are potential pixels with ‘NULL’ values (values ...
0
votes
1
answer
512
views
Extract specific pixel's values in all bands of multiband image [closed]
Earlier related post here: (Extract Median Value of composite but keep associated pixel data)
Reposting for additional clarity and refined question.
Datasets: Multiband Image with bands ['NDVI', 'Red',...
1
vote
1
answer
109
views
MODIS NDSI Monthly Map
I'm trying to map monthly NDSI map using MODIS dataset but when I clip it to my area using Snow band, it is showing the band is not found. Here is the code:
Map.centerObject(area)
var dataCollection = ...
0
votes
1
answer
297
views
Print Image pixel values for coordinates from asset
I managed to get value for single pixel with this code, but I would like to get this value for every coordinates from this asset - https://code.earthengine.google.com/?asset=users/jakubhrouda/nandu. I ...
0
votes
1
answer
42
views
Creating pixel specific list using Google Earth Engine
I want to create a layer that would have a pixel-specific list based on another layer.
In this hypothetical scenario, the first layer contains the day when a change happened. Then, I want to create a ...
0
votes
1
answer
379
views
In Google Earth Engine (GEE) what is the difference between ConfusionMatrix() and errorMatrix()?
In the process of evaluating the classification of a satellite image, it is verified that the GEE has two available commands: ConfusionMatrix() and errorMatrix(). In some literature I see that both ...
0
votes
1
answer
457
views
In Google Earth Engine, task - batch - DownloadTo is not downloading the images
I'm running a piece of code that get some satellite images, clip them, and then save the clipped area to a folder in my Google Drive.
The code runs with no errors (after debugging), but when I go and ...
0
votes
0
answers
1k
views
Exporting average annual/monthly NDVI using Google Earth Engine
I referred to the code to export NDVI from GEE, but the console always says:
Error generating chart: No features contain non-null values of
"system:time_start".
code link: https://code....
0
votes
1
answer
178
views
What does Soil Moisture Profile (%) mean in NASA-USDA Enhanced SMAP Global Soil Moisture Data in Google Earth Engine? How is the % calculated?
What does Soil Moisture Profile (%) mean in NASA-USDA Enhanced SMAP Global Soil Moisture Data in Google Earth Engine?
How is the % calculated?
I searched a lot but did not find the equation or ...
0
votes
1
answer
531
views
How does "ee.reducer.mean()" work when applying a mask over an image if the spatial resoultions of the image and the mask aren't the same? [closed]
I am trying to calculate NDVI using MODIS images over corn fields. But I'd like to mask the areas which are not corn. The spatial resolution of MODIS images is 250m, but the resolution of the cropland ...
0
votes
1
answer
46
views
How to download large amounts of data directly on my PC without using Google Drive? or How to get Google Drive more then 12 Tb? [closed]
I have an algorithm for creating winter snow composites. I want to process Sentinel-2 data for a large area and download the result.
1
vote
1
answer
419
views
ee.reducer.max - derive which image contained the max value?
I am using rgee for the Google Earth Engine API in R to reduce an image collection and obtain the max value for each cell - this works fine.
Is there an equivalent function to "which.max" R ...
1
vote
2
answers
254
views
GEE error Dictionary.set: Parameter 'value' is required
I'm attempting to calculate the proportion of landcover classes for each county in Oregon in GEE and export values as a CSV, but I get the following error: Error: Error in map(ID=00000000000000000000):...
1
vote
0
answers
34
views
Mapping Cloud Correcting Function using Google Earth Engine [closed]
I'm using the JavaScript API of Google Earth Engine. I'm running code given here and described in the developers forum here. The functions supplied work independently of each other, but at the bottom, ...
3
votes
1
answer
368
views
How current are near real time MODIS products maintained by GEE (MOD09GQ) ? What is the update frequency?
I'm trying to compute a near real time time series of MODIS daily NDVI from MOD09GQ for an area of interest.
I was using some download tools that got deprecated and are no longer supported (MODIStsp ...
0
votes
0
answers
38
views
Sample S2 images, getting the closes pixel for nodata
I got something like this:
var cld = require('users/fitoprincipe/geetools:cloud_masks');
function quick_cld(img){
return cld.sclMask(['cloud_low', 'cloud_medium', 'cloud_high', 'shadow'])(img)
}
...
1
vote
1
answer
457
views
Creating time-series chart out of list in Google Earth Engine
I have reduced a band/variable of daily image collection to monthly collection. The function returns a list containing objects with 2 properties. Like this
I want to plot a time-series chart of all ...
1
vote
1
answer
2k
views
Error: Projection: The CRS of a map projection could not be parsed. (Error code: 3)
I transferred the image I exported from Google Earth Engine to QGIS. I am getting projection error in my work. Anyone have an idea about this?
When I want to export in WGS 84 EPSG:7030 I get the error ...
0
votes
1
answer
2k
views
How to use Buffer on a Feature Collection?
I'm working in GEE and trying to create a buffer around the coastal_saltmarsh Feature Collection imports(imported as table). However, GEE allows the use of buffer only on a Feature or Geometry(ee....
0
votes
1
answer
171
views
Error reducing daily image collection to monthly and making a time-series chart in Google Earth Engine
I am new to GEE and don't know lots of concepts. I am trying to make a time-series chart of an image collection that I have reduced "Daily NASA Earth Exchange Global Climate Projections" ...
0
votes
1
answer
153
views
Computed values outside of expected range (Earth Engine)
I'm working with an NDVI (normalized difference vegetation index) time series. NDVI is expected to have a range [-1, 1]. My analysis, which applies a Whittaker Smoothing algorithm, is producing values ...