Skip to main content

New answers tagged

0 votes
Accepted

What causes geemap.extract_values_to_points() to produce such inconsistent results?

The key to my problem is that the .mean() reducer reprojects the image to the default projection (EPSG:4326 with the resolution of 1 degree). Therefore, geemap.extract_values_to_points() extracts the ...
LChen's user avatar
  • 13
0 votes

GEE Landsat NDVI Composites - Are they cloud masked?

There is a Collection 2 NDVI 32-day composite now: https://developers.google.com/earth-engine/datasets/catalog/LANDSAT_COMPOSITES_C02_T1_L2_32DAY_NDVI Good news! Clouds actually appear masked in this ...
Frank Zurek's user avatar
0 votes

xee: Total request size (56623104 bytes) must be less than or equal to 50331648 bytes

I know why this happens now. Earth Engine has a max payload size of 50331648 bytes (approximate 48 MBs-ish). In the Earth Engine documentation, it states a max payload size of 10 MBs (see the doc here)...
Adriano Matos's user avatar
0 votes

error: Too many arguments to function

The issues are produced because is mandatory to have 4 thresholds and 4 dmultiindex variables (or 8 because there are before and after events). I fixed almost all the code but I left a small part for ...
xunilk's user avatar
  • 30k
0 votes

error: Too many arguments to function

The primary issue with your function call is that the get method only accepts a single argument, but you are attempting to pass four. Here’s the line causing the issue: var threshold = otsu(histogram....
M. Nicolas's user avatar
  • 1,327
0 votes

Overlay Image Date to Landsat Images from a collection

Unfortunately, Google Earth Engine (GEE) does not support native annotations for maps, videos, or images directly. However, you can utilize third-party packages to achieve this functionality. For ...
M. Nicolas's user avatar
  • 1,327
0 votes

Sentinel-1 query throws error: Collection.geometry: Unable to perform this geometry operation. Please specify a non-zero error margin. (Error code: 3)

I have found a solution: In the wrapper.py script, an error margin (in this case 10) can be entered in the brackets of region at the bottom of export to asset. The code then looks like this: ...
Manu's user avatar
  • 1
1 vote

Recover GEE repositories

If you can't see them at https://earthengine.googlesource.com/, then they've been deleted.
Noel Gorelick's user avatar
0 votes

Mask an image with a smaller image in GEE

I tested it with small images and the following code: var image = ee.Image("COPERNICUS/S2_SR_HARMONIZED/20200105T103421_20200105T103421_T31TFJ") var visualization = {min: 0, max: 3000, ...
Pierrick Rambaud's user avatar
1 vote
Accepted

Sample raster (Landsat) using points (preferably using Python or maybe GEE Code editor)

You can simplify the value extraction by using rasterstats: import geopandas as gpd from rasterstats import zonal_stats df = gpd.read_file(r"/home/bera/Desktop/gistest/pointgrid.shp") ...
Bera's user avatar
  • 74.8k
0 votes

Blank pixels results in some area random forest classification

I encountered the same issue with my random forest classification. The blank pixels were caused by the inclusion of the 'SR_B10' band in from predictionBands. Removing the 'SR_B10' band solved the ...
Daryl Ernesto Ayala Saavedra's user avatar
0 votes

Exporting daily climate values in GEE for points over wide date range

You have a lot of points (30,162) and you should work with Image and Feature Collections for guaranteeing side server operation. I tried out the following code with a sample of 1000 features of your ...
xunilk's user avatar
  • 30k
0 votes

Biweekly means of ERA5 data

Since mean calculates the mean of all the observations in the collections (as mentioned in the comments sections), you need to create a loop to calculate the mean value in biweekly windows. Thus, you ...
Jonathan V. Solórzano's user avatar
0 votes

Accessing a shapefile with GoogleEarthEngine-API : Invalid GeoJSON geometry

I am trying to clip Landsat image with shapefile in Google Earth Engine API. I used the previous answers and solved the Invalid GeoJSON geometry problem, but finally the clipped image is not displayed ...
hossein's user avatar
0 votes

Measure river width using GEE

You are asking for an Image (LANDSAT/LE07/C02/T1_L2/LE07_139043_20170616) that is not supported by that older version RivWidthCloudPaper library: You are asking for collection 2 data ("C02")...
user2856's user avatar
  • 67.1k
0 votes

Cloud Masking for Landsat 8 (LANDSAT/LC08/C02/T1_L2) in Google Earth Engine

Landsat collection 2 images aren't simply scaled by 0.00001. The optical bands are scaled by 0.0000275 and have an offset of -0.2 (the thermal bands are different). This is demonstrated in the code ...
Noel Gorelick's user avatar
1 vote
Accepted

GEE type casting / list creation and access to list-of-lists

You could cast the list of lists in the paired object to List object using ee.List() and access the list elements print(ee.List(paired.get(2)).get(0)) // prints 39a8a7
aeaturu's user avatar
  • 51
0 votes

Landsat 5 RGB displaying wrong colours GEE

Try this code to access the data you want from GEE based on the collection date for the image you are interested in. (adjust filter dates on line 2) var dataset = ee.ImageCollection('LANDSAT/LT05/C02/...
Kartograaf's user avatar
  • 2,947
0 votes
Accepted

All NDVI Samples over period

You were not very specific in the output you're looking for. Here's one potential approach you can take, that hopefully gets you closer to where you want to get. Create an image collection for your ...
Daniel Wiell's user avatar
  • 14.4k
0 votes

Create a mosaic in Google Earth Engine in natural colors RGB (4,3,2 channel Sentinel -2) in GeoTIFF format

Maybe you can use this code: var visParams = { bands: ['B4', 'B3', 'B2'], min: 0, max: 0.4 }; Export.image.toDrive({ image: medianpixelsclipped.select('B4', 'B3', 'B2').visualize(...
Ozymandias's user avatar
0 votes

How to apply GEE training data to a new region

Now you can export your model using "Export.classifier.toAsset()", just add some lines to your script //Classification Model var classifier = ee.Classifier.smileRandomForest(10) .train({ ...
Rodney Camargo's user avatar
0 votes
Accepted

Changing property name within function in Google Earth Engine

Specify the name you want on the reducer via setOutputs and skip the renaming step.
Noel Gorelick's user avatar
1 vote

GEE - Mean Cloudiness in a given time range, Sentinel producing multiple points for each day

Depending on the size of your region of interest, there may be more than 1 Sentinel-2 image for a given day. Thus, you may see multiple data points for each day. To get only 1 averaged point per each ...
aeaturu's user avatar
  • 51
1 vote
Accepted

Google Earth Engine. Converting circular structure to JSON error

That's a weird error because you're doing a really weird thing. You're turning campBoundaries into a Map layer and then trying to do operations with it. var campBoundaries = Map.addLayer(...
Noel Gorelick's user avatar
2 votes
Accepted

Using iterate to reclassify an image in Google Earth Engine

If your zones are evenly spaced, just use math. // 0:499 -> 0, add 1. var class = dataDem.divide(500).int().add(1) If they're not linear, then make a list of upper ranges and use map to make a ...
Noel Gorelick's user avatar
1 vote
Accepted

How to create the fishnet grid in GEE using JS code editor?

You can utilize the coveringGrid function. If you specify the size of the grid cell in meters, ensure that you use a projection scaled in meters. // Your AOI. var aoi = ee.Geometry.Polygon([ [[-106....
Iago Mendes's user avatar

Top 50 recent answers are included