Questions tagged [geemap]

geemap is a Python package for interactive mapping with Google Earth Engine (GEE)

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Pixel based slope calculation in GEE, no results after runing code

I have six raster images with individual bands between 2019-09 to 2020-02, and now I need to calculate the pixel-based trends of these images. After running code there is no error reported and also no ...
user avatar
0 votes
0 answers
25 views

The QA band of some Landsat 8 images seems to be invalid

I am quite confused about some invalid qa masks. In some images, the VALUE of the QA band is shown as 21824 (cloudless), but the location is actually covered by cloud. In addition to Landsat images, ...
user avatar
  • 11
1 vote
0 answers
27 views

Google Earth Engine doesn't preserve functions when exporting with GEE Python API and geemap

I want to export images from a collections locally to integrate them in other application. I want to skip the part where I must download them from my Google drive with some command line. For that I ...
user avatar
2 votes
1 answer
33 views

"Geometry has too many edges" This is the which keeps on coming on GEE

I am trying to extract the data for the particular country using the shapefile for the province to get the daily precipitation data. But whenever I run the following code error displays: ...
user avatar
0 votes
0 answers
26 views

Calculating travel time to hospitals via Google Earth Engine Python API

I was trying to run a script (originally written in the JavaScript language) using the Python API. First, I needed to convert the script from JavaScript to Python. Using the geemap package, I was able ...
user avatar
  • 11
1 vote
0 answers
16 views

Error Showing With Python-"ee.ee_exception.EEException: Image.select: Pattern 'B4' did not match any bands."

I'm working on estimation chlorophyll-a using a Landsat 8 image woth python code and then I’m trying to build an web-app which is using streamlit and geemap library. But my map doesn’t showing when I ...
user avatar
1 vote
0 answers
55 views

Google Earth Engine, export image to drive returns EEException: Request payload size exceeds the limit: 10485760 bytes

I run a model in GEE and I am trying to export the result using: geemap.ee_export_image_to_drive(classified, description="Test_run_raster.tif", max_pixels=10**13, scale=20, ...
user avatar
1 vote
1 answer
69 views

Mapped function's arguments cannot be used in client-side operations

I am trying the below code to perform spectral dilation in GEE but gives me an error: spectral dilation: Layer error: A mapped function's arguments cannot be used in client-side operations The code ...
user avatar
0 votes
1 answer
58 views

Spatial Data on Python - "EEException: Can't encode object"

I'm working on estimation chlorophyll-a using a Landsat 8 image on Python. But the result doesn't showing the image. I've tried to changing it but it doesn't work. I don't know how to fix it. This is ...
user avatar
0 votes
0 answers
18 views

Selecting admin areas based on calculation from raster / something wrong with filterBounds()

I am having troubles doing the following: Select admin areas that contain a wastewater treatment plant Find admin areas with population above a threshold Intersect the two result to obtain admin ...
user avatar
  • 1
0 votes
0 answers
28 views

Loading Geotiff images in a local storage to jupyter notebok using geemap

I am trying to use Geotiff images stored in an s3 bucket in my VM. There is a similar thing when using GCP using geemap.load_GeoTIFF() . I am wondering if there is a wrapper function in geemap that ...
user avatar
1 vote
0 answers
35 views

Sentinel-2 product 2A SCL visualization parameter

I am attempting to mask a Sentinel-2 scene using the SCL layer in a Python API using GEE compatibility. I have managed to visualize the SCL. However I do no think that I am viewing it properly. Does ...
user avatar
0 votes
1 answer
9 views

Inner join of images using geemap

I have 4 indices: VCI, TCI, PCI, scaledET. I want to derive a drought index as a linear combination of these 4 indices using PCA. The idea here is to find the contribution of each of these indices to ...
user avatar
1 vote
2 answers
32 views

Pixel artifacts in Google Earth Engine at zoom level under 12

I am trying to visualize forest raster in Google Earth Engine (blue=forest, white=no_forest). However, on zoom levels lower than 12 there are pixel artifacts that look like they are following rivers. ...
user avatar
  • 41
1 vote
1 answer
55 views

Image collection monthly averages using geemap package

I am trying to convert some code snippets from GEE JavaScript to Python. This code computes the monthly averages of NDVI images given a range of years and a range of months. This is my code in ...
user avatar
0 votes
1 answer
49 views

Calculate how many pixels=1 in a 3*3 kernel based on GEE

Now, I have a cropland map. It's only one band, 1=cropland,0=Non-cropland. So how to calculate how many pixels=1 in a 3*3 kernel? and then get a map of contain the numbers. eg: [1,0,1], [1,0,1], [...
user avatar
0 votes
0 answers
30 views

Fitting Line to Shoreline in Google Earth Engine

I need to fit this line to shoreline.I converted the line to vector and I determined the scale factor as 1000 but line doesn't fit the shoreline. When I determined the scale factor as 100,50 or 30 . I ...
user avatar
  • 3
0 votes
1 answer
102 views

Smoothing Line in Google Earth Engine

How can I get a smoother line? var image = ee.Image('users/cananhamzaolu/KIYI500') var roi = ee.Geometry.Polygon = ([ [31.577169138841125, 41.30667497201365], [33.33498163884112, 41....
user avatar
  • 3
-1 votes
1 answer
63 views

Image visualization in Google Earth Engine

The image I uploaded to assets looks like this in assets detailer, but when I visualize it, I get a completely black image. I do not know why this is happening.
user avatar
  • 3
1 vote
0 answers
46 views

How to check if a point is to the north/south of a shape?

I have a shape file of a mountain range and a bunch (about 4000) of coordinates that lie, both north and south of the said mountain range. I want to simply determine whether a given point is to the ...
user avatar
2 votes
1 answer
91 views

Google Earth Engine EEException: Expected type: String. Actual type: Dictionary<String>

This code selects Sentinel-2 data and de-clouds it using the S2_CLOUD_PROBABILITY data set. Then, cloud-free Sentinel-2 images and NDVI were synthesized.The problem is that the images cannot be ...
user avatar
  • 23
0 votes
0 answers
154 views

How to visualize concatenated Sentinel 1 and Sentinel 2 imagery in GEE?

I would like to do a fusion approach of Sentinel 1 and Sentinel 2 in GEE I was successfully concatenate Sentinel 1 and Sentinel 2 imagery. However, I have a difficulty in visualizing the fused image ...
user avatar
0 votes
1 answer
69 views

Calculate and display stratified sampling points in GEE

I am trying to generate 100 random points in Global Forest Watch data over my region of interest (ROI). I think I was able to successfully generate the points as a feature collection, as I don't get ...
user avatar
  • 75
2 votes
2 answers
106 views

GEE error: ndvi.filterDate is not a function

I'm trying to find area covered by plants on my study area, but I'm getting this error: ndvi.filterDate is not a function This is my code: // Define a region of interest (i.e. an imported shapefile ...
user avatar
0 votes
1 answer
122 views

Google Earth Engine: Sentinel-2 AOT band resolution

In the GEE documentation of Sentinel-2 Surface Reflectance dataset (here) the information given is that there is a band for AOT (Aerosol Optical thickness) with a 10m resolution. However, when ...
user avatar
  • 1
1 vote
1 answer
97 views

Merging consecutive features based on its properties using recursion in Google Earth Engine Python API

The HydroSHEDS dataset is a global feature collection of basins at different levels. Each feature has a "NEXT_DOWN" property that helps the navigation within the river network (up and ...
user avatar
  • 130
0 votes
0 answers
77 views

EarthEngine Google Colab is obnoxiously slow when using .getInfo()

I don't know why, but when I use colab with GEE, it takes 5 minutes to process anything ending with .getInfo(). I am only using the .getInfo() as a debugging tool. Here is an example of some code. ...
user avatar
0 votes
0 answers
75 views

How to convert binary mask to lat/lon points Google Earth Engine

I have a binary mask in Google Earth Engine made from an MNDWI raster import os import ee import geemap import matplotlib.pyplot as plt import geemap.colormaps as cm import sys os.environ["...
user avatar
0 votes
0 answers
331 views

geemap: Error displaying widget - model not found

I am using Jupyter Lab to try and get a map to display, but I receive Error displaying widget: model not found whenever I try to run this code. It works on the web browser version so I don't know ...
user avatar
1 vote
1 answer
155 views

How to export masked MNDWI raster from Google Earth Engine

I am working with Google Earth Engine and the wonderful geemap package to export channel centerlines using Modified Normalized Difference Water Index (MNDWI; Xu, 2006). Computing the MNDWI is simple ...
user avatar
0 votes
1 answer
567 views

Filtering Sentinel2 image collection by cloud coverage over specific polygon

I am pretty new to GEE. My task is to get all Sentinel 2 images from a specific time. Then I want to filter this collection by a maximum cloud coverage over an area of interest, which is imported ...
user avatar
  • 25
1 vote
1 answer
33 views

How to reduce an image resulting from an expression?

In the code below I use the ee.Image.expression method to combine two images into one. I am then able to display the resulting image using geemap, and the image looks as expected. However when using ...
user avatar
  • 41
1 vote
1 answer
140 views

Google Earth Engine Exported GeoTIFF is blank - how to export my code as an RGB for Ai or Ps

I am trying to export my classified map layer (classified_image) as a GeoTIFF, JPG or PNG (Any format that can be viewed on Illustrator or Photoshop). Geolocation does not matter, I just need the ...
user avatar
0 votes
0 answers
218 views

Combining image collection from different years using Google Earth Engine

I'm trying to estimate superficial runoff for urban areas, but aparently having problems to generate for 2020. The NDVI collection goes to 2020, but the urban collection only goes until 2019. In line ...
user avatar
1 vote
1 answer
75 views

Suppressing user updates when using the geemap.ee_export_image function in GEE Python API

I am exporting GEE files to my local machine through the geemap Python API using the following code: # download 30m SRTM data SRTM30 = ee.Image('USGS/SRTMGL1_003'); filename = os.path.join(OUTpath, '...
user avatar
0 votes
1 answer
43 views

Images are exported as solid colour blocks

My goal is to download RGB imagery over a selection of regions and times. To do this, I am using the geemap python library to locally export a filtered image collection. However, the images are ...
user avatar
  • 13
0 votes
0 answers
67 views

Extracting pixel values from dispersed pixels across various countries

I am trying to calculate extreme events of rainfall using ERA-5 Daily Data in Google Earth Engine through Python. I am trying to find pixels that had more rain than the 95th percentile of the previous ...
user avatar
1 vote
1 answer
319 views

"EEException: Image.reduceRegions: Specify a scale or crs & crs_transform." not accepting either

Question: Why won't image reduce region accept either a scale or a reprojection, in most of my cases but not all. Context: I'm trying to find if a landsat pixel has any cloud (based on ...
user avatar
0 votes
1 answer
277 views

Mosaic() changing image scale using Google Earth Engine [closed]

I am trying to filter an image collection to one date (2015) and create one image (the collection is made up of multiple tiles). Filtering by date and by bounds is fine, and I have been using .Mosaic()...
user avatar
1 vote
1 answer
170 views

Google Earth Engine .Map not finding all images in image collection

I have an image collection of 4 images and when I map a function to this it only picks up on two images. I've created a simple version of the problem to hopefully make this more solvable. # data to ...
user avatar
1 vote
1 answer
123 views

What is the difference between __geo_interface__ and to_json()?

I'm using geopandas extensively in my scripts and one of my colleague shown me the to_json() method. I was using the __geo_interface__ magic method previously and sometime the to_json() is not ...
user avatar
0 votes
1 answer
36 views

Seeing all of image in Google Earth Engine

var s2SR_list = s2SR.toList(s2SR.size()); var s2SRMasked = s2SR_list.map(function (img) { return cld.sclMask(['cloud_low', 'cloud_medium', 'cloud_high', 'shadow'])(img); }); print('...
user avatar
  • 43
0 votes
1 answer
366 views

Calculating R-Squared Using the 'Residuals' Band from Google Earth Engine's linearRegression() Reducer

I am trying to calculate an R-Squared for a harmonic linear regression I did with two dependent variables across an image collection, using the linearRegression reducer on Google Earth Engine. The ...
user avatar
0 votes
1 answer
70 views

Does not display Map in Rstudio using Python Package - GEEMAP

I am trying to use the GEEMAP package of Python in RStudio-1.4.1106. After importing the packages and running the code shown below MAP is not displayed rather it displays the MAP attributes in the ...
user avatar
0 votes
1 answer
310 views

Merging the bands of a single image in GEE python API

I currently have a single image with 3 bands with different turbidity data, all from the same region. The pixel values of the 3 bands do not overlap with each other. I would like to merge these 3 ...
user avatar
0 votes
1 answer
64 views

Is it possible to search a layer by name in geemap?

I'm using geemap, a wrapper of ipyleaflet and folium for earthengine objects. I'd like to verify if a layer already exist on my map and search for it by it's name, is it possible ?
user avatar
0 votes
1 answer
79 views

geemap doesn't display attributions

Is it normal that geemap doesn't display attributions in my notebook? Is there a way to add them? I'm running : import geemap m = geemap.Map(center=[40,-100], zoom=4) m.add_basemap('CartoDB.Positron')...
user avatar