Questions tagged [geemap]
geemap is a Python package for interactive mapping with Google Earth Engine (GEE)
102
questions
0
votes
0
answers
14
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
13
views
Put several different image collections into a new image collection at different bands and download the new image
I have several different image collections and they align with each other well. How can I put them into one image at different bands as a new image collection? In this case, I want to download the new ...
1
vote
0
answers
36
views
geemap - add text to Landsat time series and change the pace of images
I'm trying to generate timeseries from Landsat images based on the documentation of geemap.
The problem:
'frames_per_seconds' parameter: When I create time series without the years as text, seems like ...
0
votes
0
answers
34
views
GEE image transform is different when saving on GCS or reading as ee.Image
I have accessed an image using GEE, and then saved it to GCS.
I observed an unexpected behavior when I'm trying to get the dimensions and transform of the image.
When I am trying to get the ee.Image ...
0
votes
0
answers
22
views
Difference in image meta data when using GEE compared to rasterio
I'm accessing SRTM image using GEE, and then I save it as raster and open again with rasterio.
I have realized that when I try to get the metadata with GEE, the values are different (and seem to be ...
0
votes
0
answers
14
views
Sampling weather raster by date in GPS dataframe in GEE
I am trying to extract the u and v component of the daily ERA-5 wind reanalysis to datapoints from a GPS dataset of mule deer. I am wanting to only extract the wind to points based on the date of the ...
0
votes
1
answer
48
views
gee ranadomPoints fails:Polygon too large to be randomly sampled. Must be smaller than a hemisphere when image is not so huge
I want to sample random points over an image I access using geemap.
I was trying to do it as following:
#access elevation image and clip it with the feature collection
img = ee.Image('USGS/SRTMGL1_003'...
0
votes
0
answers
34
views
Conversion Tool for GEE Javascript to Python Not Working. Getting Assertion Error
I am very new to the Earth Engine Python API and I am trying to convert a significant amount of GEE code to Python in order to have it better integrate with my larger project. I have been attempting ...
1
vote
0
answers
54
views
How to retrieve the cloud probabilities of a region in google's Earth Engine
I am trying to retrieve the sentinel-2 cloud probabilities for a specific part (inside a polygon) of specific images (I use Python, and the ee and gee packages). So first I select an image, then I ...
2
votes
1
answer
119
views
How to run a Google Earth Engine script locally
I am new to Google Earth Engine. I have been using the Google Earth Engine code editor to create and run my scripts. However, this approach doesn't scale.
I have a script that gets the precipitation ...
2
votes
1
answer
100
views
Download images to Google Cloud Storage using geemap.download_ee_image_tiles
Few days ago I saw on a Linkedin post that download_ee_image_tiles option was added to geemap. I was trying to use it with image I had and a fishnet that I have created before. However, I am not sure ...
0
votes
0
answers
22
views
Antenna pattern/illumination corrections in Google Earth Engine
I am using the analysis ready Level 2.2 ALOS-2 PALSAR-2 data available in Google Earth Engine. Here is an example provided by GEE: https://code.earthengine.google.com/?scriptPath=Examples%3ADatasets%...
0
votes
0
answers
29
views
Get bbox of ee.Image and not the global coordinates
I am trying to get the extent of an ee.Image object. The image is result of reduced collection.
I was trying to do this as following:
bbox = img.geometry().bounds().getInfo()["coordinates"]
...
1
vote
1
answer
72
views
Converting datatype of a .png image and exporting it as float image
I am trying to convert my uint8 png image to float datatype. First of all, I have tried many libraries that could transform datatypes but I just could not export it as the last datatype I converted ...
0
votes
0
answers
84
views
Using geemap to apply Otsu's threshold on time series NDVI slope
I'm running geemap on Google Colab, and try to apply Otsu's threshold to a Sentinel-2 time series NDVI, the threshold is when the NDVI slope is greater than 0.5.
But when I try to apply the otsu ...
1
vote
1
answer
116
views
Unexpected crsTransform after reducing an ImageCollection: nominal scale shows 111319.49079327357
I have created an Image from an Imagecollection and I want to export it and to define the crsTransform parameter. I have read the documentation and the post on this forum and tried to export it , and ...
1
vote
1
answer
34
views
Error in percentage of areas calculation in GEE
I have been trying to calculate percentage of areas of each class in GEE but I'm getting error and it says that left value is invalid type. And left value is usually list of all the class areas. This ...
0
votes
0
answers
43
views
Outputting a random forest classification results in Computed value is too large (Error code: 3)
Error: Image.reduceRegions: Computed value is too large. (Error code: 3)
Here is my code. I try to output a random forest classification result in a TIFF file format but it failed.
var qualityMask = ...
1
vote
1
answer
127
views
Some of the .tif files downloaded with geemap are flipped vertically
I have downloaded some images from Google Earth Engine, using Geemap library using this code:
geemap.download_ee_image(s1_img_vv, "s1_img.tif",crs='EPSG:4326', scale=10,region = r_roi)
...
0
votes
1
answer
24
views
Generate a collection containing only maximum values in GEE
I'm fairly new to GEE and I'm trying to modify a collection of ECMWF ERA5 in order to create an mean image of the maximum values from a period of time. I've tried .map function but nothing displays on ...
0
votes
1
answer
74
views
ImageCollection (Error) Collection.toList: The value of 'count' must be positive. Got: 0
I am trying to create a median image per year from my image collection but when I apply the function ".filter(ee.Filter.calendarRange(y,y,'year')", it doesn't work and reports an error of &...
0
votes
0
answers
27
views
Goole Earth Engine Spatial Join with Error: User Memory Limit Exceeded
I get an error joinAll: Tile error: User memory limit exceeded. when I'm trying to do a spatial join with two Feature Collections and assign some attributes to the output collection. Each Collection ...
0
votes
0
answers
39
views
Converting MOD11A1 daily LST to 16 day composites
Trying to do a linear regression with MODIS 16-day composite NDVI (MOD13Q1) as the response variable and MODIS LST (MOD11A1) as the predictor variable. The relationship will be calculated by randomly ...
0
votes
0
answers
140
views
Mapped function arguments in client-side operations during relative normalization between images using Google Earth Engine
I'm trying to perform a relative normalization between two images in Google Earth Engine using Python, but am running into issues mapping a function over an image collection due to client-server ...
1
vote
1
answer
202
views
Error when opening TIFF from GCS using geemap : Unsupported BitsPerSample and SampleFormat values: (64, 1)
I have 1 band image saved on GCS.
The image has 1 band and was saved locally with cog driver and then uploaded to the GCS. In addition, the band is binary - has only 2 values - either 0 or 1 (mask).
I'...
1
vote
0
answers
234
views
Impossible to read ESRI Shapefile using geemap.shp_to_ee (geemap)
I'm working with Google Earth Engine Python API and geemap in an Anaconda environment. I'm trying to simply add a vector layer to my basemap. I'm following the Qiusheng Wu's tutorial. So I use the ...
2
votes
2
answers
136
views
Fuzzy Clustering in Google Earth Engine (GEE) or the GEE Python API (geemap)
I'm using the GEE Clusterer algorithm (Weka K Means) to assign 30-m pixels over a large area (several thousand acres) to a predetermined number of groups.
The Weka K Means method is a "hard" ...
1
vote
1
answer
290
views
Computation timed out on GEE API (Python)
I have a large set of points (with longitude and latitude) for which I need to extract the rasters (B1-B8A) in a CSV file. I am currently using geemap.extract_values_to_points.
geemap....
2
votes
1
answer
1k
views
How to fix 'EEException: Request had insufficient authentication scopes.' in GEE for python
I tried exporting a number of images to my google drive, but my code failed to work. Instead,I received:
WARNING:googleapiclient.http:Invalid JSON content from response: b'{\n "error": {\n ...
0
votes
1
answer
71
views
GEE clip image with another image generates new shape
Edit: I have changed the clip to updateMask function. when I print the image dimensions it seems to be ok with size, but when I export image GCS and then open again, it adds empty row /column to the ...
0
votes
1
answer
223
views
`map()` use in earthengine-api (Python)
In earthengine-api (Python),I use the the function called .map(),for example:foo = col.map(lambda arg: arg),However ,I want to do some complex mapping operations,According to the official tutorial,...
0
votes
1
answer
192
views
GEE- stack two different bands that are separated in different image collection to one image collection
I have two image collections.
The first collection has 3 images ,each one has 1 band, the blue band of sentinel 2.
The second collection has the same data as collection1, but the only difference is ...
0
votes
1
answer
280
views
getInfo use in earthengine-api (Python)
When I write the an algorithm in Google Earth Engine using JavaScript by using the Code Editor, it works fast. After thatif I use the Map.addLayer(), the result of algorithm can show in the map ...
1
vote
1
answer
212
views
ee.Image.sampleRegions - what does the geometries parameter do?
I am reading the geemap tutorial and I have question about the sampleRegions function. As I understand, this function "cross" between vector data (feature collection) and a given raster, and ...
3
votes
1
answer
905
views
Cannot visualize map with geemap when using VS Code
I am using Jupyter notebook on VS.
I have generated script that gets an image collection, does some calculations on it and generates one image (ee.image.Image).
I want to display it on a map. When I ...
0
votes
0
answers
18
views
User memory exceeded on code that previously ran uninterrupted
I am creating an NDVI time series with Sentinel 2 imagery for NDVI. I am trying to map the NDVI function and get one image per month representing the max NDVI for that month. This code will run but ...
0
votes
0
answers
51
views
How to convert GLDAS-2.0 3-hour snow water equivalent data into daily data
How to convert GLDAS-2.0 3-hour snow water equivalent data into daily data
Does it mean to give one picture for every day instead of 8 pictures?
var snow = ee.ImageCollection("NASA/GLDAS/V20/NOAH/...
0
votes
0
answers
183
views
geemap-HTTPSConnectionPool error
I have faced a problem related to starting geemap applied on jupyter notebook framework in windows. while I have strived to solve this, no alternative has been found yet.
Can you guide me to overcome ...
0
votes
1
answer
326
views
geetools:batch not working in 2022 Google Earth Engine (GEE) (solved)
I am pretty new to GEE, but somehow find my way to get an imagecollection that I want to export. Then I find geetools:batch with this answer Link.
Objective and Problem: what I want to do is to ...
0
votes
0
answers
76
views
Download pixel wise data from Google Earth engine for 1 years from a dataset with monthly temporal resolution
I am using this code for downloading the pixelwise data for a particular shapefile in Google Earth Engine. As this code can download only for a span of particular temporal resolution(For my case it ...
0
votes
0
answers
47
views
Extracting multiple image values to point in GEE - getting empty out put
I am trying to extract values of sentinel-1 descending pass data for a given point location for a given time period. Though there are images in the given location for the given time period, I am ...
0
votes
0
answers
357
views
How can hourly ERA5 data be converted to daily data?
I'm going to convert the hourly data into average, maximum, and minimum data and then calculate the reference evaporation and transpiration based on that, but finally I get an error. How can I correct ...
0
votes
1
answer
235
views
Reclassifying multiple bands in Google Earth Engine
I'm trying to reclassify multiple bands from my raster. It is a land use raster of the Amazon basin by Mapbiomas. I need to reclassify all 36 bands at once.
## Reclassifying multiple bands raster ...
0
votes
1
answer
120
views
Timelapse only shows single year in Google Earth Engine (ERA5 Daily agg.)
I am trying to make a yearly timelapse of ERA5 Daily aggregates (precipitation) using cartopy but the output gif and images generated show the plots of single year. I am trying to extract the images ...
0
votes
0
answers
150
views
Some methods and modules do not work in Google Earth Engine Python API
I am trying to calculate indices by Python API in VS Code area. The problem is that some methods and modules don't work in the Python area, especially in VSCode. Surprisingly, some methods work on ...
1
vote
1
answer
275
views
Mosaicking NDVI Image Collection by PATH and ROW in Google Earth Engine
I have an image collection of Landsat 7 filtered by a date and PATH and ROW of interest, and I want to know the best way to mosaic all the images (tiles) that have same PATH and ROW into one image.
...
0
votes
1
answer
267
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 ...
1
vote
1
answer
117
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
0
answers
256
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
293
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 ...