New answers tagged

0 votes

Unable to compute graph in Google Earth Engine when trying to compute mODIS NDVI Time series analysis of a small region in Crete, Greece

use regions:roi.geometry().bounds() in the chart function. var chart = ui.Chart.image.seriesByRegion({ imageCollection: scaled_ndvi, regions:roi.geometry().bounds(), reducer: ee.Reducer.mean(), scale: ...
AmirHossein Ahrari's user avatar
0 votes

Land cover analysis GEE

for landcover classification in long term extent like over the last 40 years, Landsat satellite series are the best option. Landsat collection 2 level 2 products are available in the Google Earth ...
AmirHossein Ahrari's user avatar
0 votes

Exporting Large Classification Image on GEE

It is impossible to get the classified map with color palette in google earth engine. You can define color palette in the desktop software such as ArcGIS or QGIS etc. Accordingly, first download your ...
AmirHossein Ahrari's user avatar
0 votes

Downloading recent GRACE data

As of now, the GRACE-FO Mascon data is not available but I would like to drop a github repo that will help you to convert GRACE-FO measurement from Center for Space Research (CSR) to geotiff, and ...
hillsonghimire's user avatar
0 votes

Use the output of ui.Select widget as an argument for filtering an image collection (Earh Engine code editor)

You're running too many filters unnecessarily. You can use an array to store the names of the locations and use these locations as items in a ui.Select widget. var table = ee.FeatureCollection('FAO/...
Iago Mendes's user avatar
0 votes

How can I balance my data for doing a Random forest in GEE?

The only way to make them balanced is to discard some. Get a frequencyHistrogram of the classes, then compute the percentage of each class necessary to make each one have the same number of features ...
Noel Gorelick's user avatar
0 votes

Remove null images in an Image Collection

You should not use If() (ever), as it has sigificant performance implications. You can simply filter on system:band_names to make sure all the images contain one of the expected bands: collection....
Noel Gorelick's user avatar
0 votes

I am trying to run the ee.Algorithms.Landsat.SimpleComposite algorithm on ee.ImageCollection("LANDSAT/LC08/C02/T1_L2") but it is giving me error

This is probably because the SimpleComposite algorithm expects a TOA (top of atmosphere) collection (See here https://developers.google.com/earth-engine/apidocs/ee-algorithms-landsat-simplecomposite) ...
Oliver Lopez's user avatar
  • 1,214
0 votes

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

I would assume that this is because Earth Engine does not access level 2B images, only level 2A.
cookiesquirrel's user avatar
0 votes

Google Earth Engine - error when exporting table

I tried yours and still code the same error, so instead I tried this and it worked. Export.table.toDrive({ collection: ee.FeatureCollection(May_2023), // Convert geometry to a feature collection if ...
Prabha's user avatar
  • 1
1 vote

Downloading daily precipitation and temperature data from ERA5 using Google Earth Engine JavaScript API

You're using era5Land (the original image collection) instead of dailyEra5Land (the aggregated daily mean) when creating the time series chart. var admin2 = ee.FeatureCollection("FAO/...
Nil's user avatar
  • 1,457
0 votes

Transfer an entire Google Earth Engine assets to another Google Earth Engine account

I wasn't very satsfied by the vanilla method provided in the ee.data module so I coded it in geetools plugin lib. Using the Asset object, on can call the move methods directly from a folder and define ...
Pierrick Rambaud's user avatar
0 votes
Accepted

Checking if an asset exists

I din't find a better way so I coded it in geetools plugin lib. Using the Asset object, on can call the exists methods directly from it as: import ee, geetools asset = ee.Asset("projects/bar/...
Pierrick Rambaud's user avatar
0 votes

Remove null images in an Image Collection

You don't need to remove null images in the Image Collection. You can skip the error message by using this function instead: var addNDVIBand = function(image) { var opt = ee.List(image.bandNames())....
xunilk's user avatar
  • 29.8k
0 votes

Earth Engine GFS: Calculating Hourly Precipitation

You could do the desired operation with the following script. Nonetheless, I am getting an error with images from 'forecast_hours' > 120, since 'forecast_hours' seem to increase in intervals of 3 ...
Jonathan V. Solórzano's user avatar
2 votes

Are lines drawn on most web maps wrong?

Just some info to help debug. What I did to verify was use your Mapbox link. In your Mapbox code, you declare centerPoint, but you dont use it. However it does have values hardcoded, which im going to ...
nr_aus's user avatar
  • 3,455
0 votes

Extracting drought values below -1 for at least three consecutive months

I don't have an SPI product to test, and I don't know if there is an implementation of a roll sum or something equivalent, but you can convert the collection to a list, and then compute if the ...
aldo_tapia's user avatar
  • 13.4k
0 votes

Dictionary.get: Dictionary does not contain key: EVI

You're going out of your way to try to replicate how null values are handled, but if it's null, you (usually) can't get() it. Instead, just set the output of the reduceRegion onto the feature and be ...
Noel Gorelick's user avatar
0 votes
Accepted

GEE: Adding two properties into a new property

OK I figured out the issue was : In the way I "got" the strings. (the name of property should not have been given inside a list.) "added" them together. (I had to use the .cat() ...
Sina NAKHOSTIN's user avatar
0 votes

Expand the imagery range to more than one tile in Google Earth Engine

The filterBounds method will select any image that partially intersects your geometry. By selecting just the first image from the filtered collection, you get a single image that only covers one of ...
Aaron Zuspan's user avatar
0 votes

Google Earth Engine Filter Out Incomplete Sentinel images by Geometry

To filter out images with incomplete coverage of a geometry, you can calculate the percentage of the geometry covered by unmasked pixels and use that to filter the collection. Calculating Pixel ...
Aaron Zuspan's user avatar
1 vote
Accepted

Visualize the color of the point features from the variables that have been created

Probably the simplest way to accomplish this is to add a property to each feature with the style you want, then use the ee.FeatureCollection.style method to apply it before adding the collection to ...
Aaron Zuspan's user avatar
0 votes

Authentification error when installing RGEE in RStudio

This issue has been highlighted on the Github site for this package. Multiple people (including me) are having this issue. See the responses to the question for a workaround. Especially note the ...
MrBeardo's user avatar
0 votes

Multi-temporal classification in Google Earth Engine - clustering and grouping based on time sero

it might be a bit late, but still I got an answer to you question. What you need to do is convert the image collection with the NDVI time series to an unique image with as many bands as dates you have ...
Carlos's user avatar
  • 1
0 votes
Accepted

Error exporting classification

The problem is in this line: var LC2021= (ee.ImageCollection(esri_lulc10.filterDate('2021-01-01','2021-12-31').mosaic().clip(CH_B)).map(remapper)); The mosaic and clip are not well defined. It should ...
HMSP's user avatar
  • 1,620
2 votes
Accepted

Earth Engine Zonal Stats export table error message

I believe this error is not related to the export process, but to the script itself. 'delta' is a parameter for ee.Date.advance, and the error message is saying that it is not specified correctly. On ...
acute_triceratops's user avatar
0 votes

Hourly wind speed ERA5 data: not correct wind speed data exported

Your formula and code look correct to me. There are a few factors that might make ERA5 wind speed lower than expected. First, each ERA5 pixel represents average conditions over one hour over 121 km2. ...
Aaron Zuspan's user avatar
0 votes

Landsat Collection 2 surface reflectance harmonization

It seems like the consensus is no, based on an answer to a frequently asked question in google earth engine (GEE) documentation: https://developers.google.com/earth-engine/faq#is_cross-...
Lucas's user avatar
  • 593
3 votes
Accepted

GEE Error: .setGeometry is not a function

To solve this, you need to explicitly cast old_feature to an ee.Feature because Earth Engine wasn't able to infer its type. var new_feature = ee.Feature(old_feature).setGeometry(g); //g is a geometry ...
Aaron Zuspan's user avatar
1 vote
Accepted

GEE: List operation and conditioning

Here's how I would approach this problem. Get a list of geometries from the MultiPolygon. This will be easier to deal with than a list of lists of coordinates. var polygon_list = MP_feat.geometries();...
Aaron Zuspan's user avatar
1 vote

GEE Error: .setGeometry is not a function

As @Aaron Zuspan correctly mentioned, in this case GEE is unable to infere the type of old_feature and therefore one needs to explicitely define the type of it : var new_feature = ee.Feature(...
Sina NAKHOSTIN's user avatar
0 votes

RUSLE model Equation using GEE

With your edit you practically destroyed the purpose of this question related to RUSLE model equation. You deleted the other formulas for calculating the slope (θ) used in S, β and m map calculations. ...
xunilk's user avatar
  • 29.8k
2 votes
Accepted

Convert each pixel of a raster layer to polygon Google Earth Engine

Yes,it is possible with 'coveringGrid' method for geometries and by using Modis projection as argument. Because your area is very huge, I implemented in following lines above method for a much smaller ...
xunilk's user avatar
  • 29.8k
0 votes
Accepted

Google Earth Engine: Multiple Chart Title Undefined

To set the name property of each FeatureCollection, you'll need to use the set method instead of passing the properties into the constructor. For example: var union1 = ee.FeatureCollection([p1, p2])....
Aaron Zuspan's user avatar
0 votes

Nodata value error when uploading .tif files into Google Earth Engine

If the Earth Engine error is correct, the nodata value is incompatible with the data type of your image because -128 cannot be represented in an unsigned integer. You can fix that in QGIS by re-...
Aaron Zuspan's user avatar
0 votes

Calculating Terrain Ruggedness in Google Earth Engine

Sorry, I can't address the GEE code specifically but, I am curious as to where the two equations came from? I have an implementation of TRI, in the R spatialEco library, that reflects the original ...
Jeffrey Evans's user avatar
0 votes

Calculating Terrain Ruggedness in Google Earth Engine

I was able to have success with a different formula that I have seen floating around on the internet. The formula I used was: SquareRoot(Abs((Square(Focal_Max(DEM,3,3)) - Square(Focal_Min(DEM,3,3))))...
Erioderma's user avatar
  • 515
0 votes

GEE Classification Error Multiple Geometry types

You can get the polygon within the GeometryCollection using (if there is one): var list = geometryCollection.geometries().filter(ee.Filter.hasType('item','Polygon')) var polygon = ee.Geometry.Polygon(...
Kadir Şahbaz's user avatar
0 votes
Accepted

Raster values out of range when exporting a spectral index

I added the following function before the first for loop: // calculate nbi index var addNDVI = function(image) { var ndvi = image.select('SR_B4').subtract(image.select('SR_B6')).divide(image.select('...
Nikos's user avatar
  • 968
1 vote

GEE Accuracy assessment of classification: User memory limit exceeded

Just for the sake of completeness, I share my own experience here: Check that all your features share the same geometry type. I faced the same memory issue during the evaluation of classification over ...
Sina NAKHOSTIN's user avatar
2 votes

Resolution is changing in Google Earth Engine output

Projection information is lost when multiple images are combined. To preserve it, you can use setDefaultProjection to restore the original projection after reducing: data = ee.ImageCollection("...
Aaron Zuspan's user avatar
0 votes

Converting list to feature collection in Google Earth Engine (python api) failing

The answer seems to be that when the list of images is converted back to an image collection, it doesn't inherit the geometry of the original feature collection. image_from_list.geometry().getInfo() ...
user44796's user avatar
  • 1,903
0 votes

How to export a buffer I made in Google Earth Engine to a .KML file that I can open in the Google Earth desktop app

I think that one can not simply Export (To Drive) a buffer object. I tried it and failed. The way I could export a buffer object as is explained here, is to : Save it as a Feature. Add this feature ...
Sina NAKHOSTIN's user avatar
1 vote

Export hourly wind speed ERA5 data

If your aim is just to get the csv you mentioned, you don't need to map ERA5DOM to an ImageCollection and to make a chart. Instead, it is adequate to get a FeatureCollection from the function as shown ...
Kadir Şahbaz's user avatar
1 vote

Transparent but outlined layer in Google Earth Engine

Since your aim is for visualization purposes, it would be better to make an ee.FeatureCollection from the geometry to set a transparent fill color. Therefore, define the fillColor property on the ee....
Kadir Şahbaz's user avatar
2 votes

RUSLE model Equation using GEE

First of all, you need to put the source of all formulas displayed in above picture. It is necessary for corroborating the meaning of each variable used in the calculations. On the other hand, it can ...
xunilk's user avatar
  • 29.8k
0 votes

Directly working with data from different platform without having to download it in Google Earth Engine

I'm not sure if this would be a suitable alternative dataset but the Global Impervious Surface Area (GISA) dataset is available through the Google Earth Engine Community Catalog. This means the data ...
Daniel Putnam's user avatar
0 votes
Accepted

The difference between inList and listContains filter in GEE

You apply listContains() on List properties. You check if the list propertycontains the value you provide. inList() works the other way around, where you provide a list and check if the property is ...
Daniel Wiell's user avatar
  • 14.1k
1 vote

Removing property from Feature (or FeatureCollection) using Google Earth Engine?

The copyProperties method have an "exclude" parameter which seems easier to use than the method proposed by @Rodrigo. In a map function create a feature with all original properties but the ...
Pierrick Rambaud's user avatar
0 votes

Too many pixels even using the ee.Reducer.mean

I tried to follow the solutions, which are: Set the maxPixels to 1e9/1e10 Added 'bestEffort' to true Added 'tileScale' to 16 Both above But they didn't work at all. Therefore, instead of making ...
Cinnamon roll's user avatar

Top 50 recent answers are included