Questions tagged [google-earth-engine-python-api]

Filter by
Sorted by
Tagged with
1
vote
1answer
19 views

How to add a dummy band to selected images in an image collection?

I'm using the GEE Python API. The Hansen & Al. glad alert dataset is currently broken and the 20 last images are missing the 'conf19' band. In my process I need to use it whatever the image so I'd ...
1
vote
0answers
32 views

View images for different dates/location in Google Earth Pro

I have been working with Google Earth Engine Code Editor/Google Maps API to view and analyze information surrounding specific points. I am interested in analyzing these images from different dates. ...
3
votes
1answer
76 views

How to handle large data exports (>100,000 tables)

I'd like to export time-series data for many different lakes across the U.S. However, I run into memory issues when trying to start the process. To handle my processes, I'm using the Python API and ee....
0
votes
0answers
23 views

ee.FeatureCollection.distinct() not working on certain properties

I did a batch download of the National Hydrography Dataset, and I have reason to believe that many lakes are found in many state datasets due to extending past state boundaries. I want to filter these ...
1
vote
1answer
37 views

Import JavaScript Google Earth Engine function scripts in a Python API script

I have external scripts in the JavaScript API for the purpose of keeping the functions needed for a mass export of data separate. For example, when I would like to reference these functions in other ...
3
votes
1answer
24 views

Is it possible to add layers onto a static image in Google Earth Engine Python API?

This is my first question on this site, so I apologize if my question's unclear or if it's an oversight on my part. I'm pretty new to Google Earth Engine and am still trying to learn as much as I can. ...
0
votes
1answer
27 views

Access the assets list through GEE API

I'm using the Python GEE API. I'm able to crawl in my tasks through this : #search for the task in task_list filename = construct_filename(country_code, year) tasks_list = ee.batch.Task.list()...
0
votes
1answer
28 views

Retrieve all files created by a task to my local folder

I'm exporting a map to my drive using the GEE python API, I'm looking for a way to retreive all the created files automatically to a local folder. my current code create a image on my drive : def ...
2
votes
1answer
68 views

Using featureCollection to define geometry in Google Earth Engine

I'm starting to use the GEE Python API and I'm struggling with the translation of some instructions from JavaScript to Python. I'm using the following code in JS: var all_alerts = ee.ImageCollection('...
0
votes
0answers
39 views

Issues converting image to numpy array in Earth Engine

I am trying to build a numpy array fromm the values of an image band in GEE to export for analysis. The roi is quite large (over the South Pacific), so several images make up each day. I have adapted ...
0
votes
1answer
36 views

Is there a more direct approach to time series correlation in the Google Earth Engine?

I want to know how the time attributes of ee.Image and ee.ImageCollectionobjects exist in Google Earth Engine. I am looking for whether there are operations on time series in GEE, such as resampling, ...
0
votes
1answer
25 views

ImageCollection contains Images with different CRS

I'm using Google Earth Engine Python API in Jupyter. I'm working with an ImageCollection from Sentinel 2 Surface Reflectance dataset for a given area on a single day and filtering by a region of ...
1
vote
1answer
59 views

How can I import an image into Google Colab as an Earth engine asset from Google cloud storage

When I run the following code in Google Colab, the image gets imported from Earth Engine assets folder into Google Colab such that I can visualize it: import ee imageROI = ee.Image('users/username/...
1
vote
1answer
42 views

Download hourly relative humidity using GLDAS using Google Earth Engine

Does anyone know how I can download hourly GLDAS relative humidity (%) using Google Earth Engine? The only output that I am able to get is specific humidity at a specific location, and am having ...
0
votes
2answers
69 views

Earth Engine Python API, Extracting NDVI values from an Image

I am using the Earth Engine Python API and attempting to extract date and NDVI values from an image collection. I have added an NDVI band to each image in the collection but I am having trouble ...
1
vote
0answers
44 views

How to apply convolutional neural network over a time series of Landsat images

I am implementing a fully convolutional neural network (specifically U-Net) over a time series of Landsat 8 images to predict land cover change. I am following the demo notebook for the predictions. ...
0
votes
1answer
41 views

Earth Engine: How to input band values of image to a tensorflow model trained on array of values

I have a TensorFlow model that is trained on an array of reflectance values (red, green, blue, nir) to predict sediment (SSC). Now, I want to use Landsat 8 image over a region to get the SSC for ...
1
vote
1answer
39 views

Mapping over indices Earth Engine

I am a pretty new user to Earth Engine, and I am trying to map over a list in order to use the numbers inside as indices. As a quick example, in R this would be for (i in 1:10){print i} In Earth ...
1
vote
1answer
108 views

Iterating time series extraction of all bands in an Earth Engine weather data set using a feature collection of polygons and dates

I am trying to automate a time series extraction script I wrote in the GEE JavaScript API to run over a shapefile of polygons with start times and end times but am unsure on how to accomplish the ...
1
vote
1answer
132 views

Clipping a GEE Image with Python API

I am looking for a way to clip image collection by a given polygon geometry with Python API, The GEE JavaScript equivalent is simply ImageCollection.clip(geom) (https://developers.google.com/earth-...
2
votes
1answer
102 views

qgis-earthengine: using a local qgis layer feature (e.g. shapefile polygon) as a roi

I wanted to use a local shapefile polygon as roi; i.e. roi = ee.FeatureCollection("path/to/the/qgis_project_name/polygon_name") but, I got: Collection.loadTable: Collection asset 'path/to/the/...
2
votes
1answer
157 views

Exporting an image for visualization (Earth Engine Python API)

In a snippet from the documentation I can view elevation data in the code editor with the following: var dataset = ee.Image('JAXA/ALOS/AW3D30/V2_2'); var elevation = dataset.select('AVE_DSM'); var ...
0
votes
1answer
149 views

Error when export NDVI result to CSV table Google Earth Engine and “collection” is not defined in this scope [closed]

var Akdarya = ee.FeatureCollection("users/xodjayevshovkat/kasbi_nishan_wuas"); //Define a geometry. Map.addLayer(Akdarya); // Make the geometry a feature collection. // Import S2 image collection. ...
2
votes
1answer
85 views

Issue when transforming an EE.Image into numpy array

I use Google Earth Engine with Python 3 with Colab's notebooks. I would like to transform the Google Images into Numpy arrays to be used for further processing. I am using the toList Reducer to ...
0
votes
2answers
337 views

Export ERA5 Image Collection data from Google Earth Engine

I'm trying to export the ERA5daily Image Collection data from Google Earth Engine using the GEE API in python. I need the Max Temp, Min Temp and Average Temp for the time between 1979 and 2016 (in the ...
-1
votes
1answer
34 views

Error generating chart: The image collection is empty

// Define a geometry. var geometry = ee.Geometry.MultiPolygon( [[[[-113.04179687499999, 42.7991879605782], [-113.04179687499999, 41.56178373305603], [-110.75664062499999, 41.56178373305603]...
1
vote
0answers
24 views

Does there size limit for run reduceRegion function? if does, how can I revise the script?

I want to use some points(point_695) to extra their values in timeseries landsat8 images from 2014-01-01 to 2014-05-15, to get 695 timeseries trajectory. When I use reduceRegions to do the extra, It ...
1
vote
1answer
274 views

Authentication issue: Earth Engine Python using ee.ServiceAccountCredentials()?

service_account = "cloud-service...iam.gserviceaccount.com" key_path = 'cloud_credentials.json' credentials = ee.ServiceAccountCredentials(service_account, key_path) When running the code above, I ...
1
vote
1answer
181 views

Creating asset folder using Google Earth Engine Python API

I am trying to create an asset folder using ee.data.createFolder() But I get the error: AttributeError: module 'ee.data' has no attribute 'createFolder' How do I create a folder using the ...
0
votes
1answer
26 views

Exporting image from imageCollection.reduce

I'm trying to export to an asset an image containing a single band, the 90th percentile of LST of 1 year of MODIS. I'm using this script : var inColl = ee.ImageCollection('MODIS/006/MOD11A1') ...
1
vote
1answer
444 views

Export Google Earth Engine Landsat Image to Google Drive not working in Python API

I am trying to export a collection of Landsat images (but at this point I will settle for a single image) from Google Earth Engine to my Google Drive. I am using the Python API from my local terminal ...
3
votes
1answer
422 views

Mapping simple function to print date and time stamp on Google Earth Engine Python API

I am new to the Google Earth Engine Python API, and I am trying to create functions that when mapped over a collection will print some metadata (e.g. time stamp, band names) but I always get the same ...
1
vote
0answers
87 views

Google Earth Engine: Maintain area calculation accuracy while reducing resolution and exporting from

I am struggling to find a best practice for exporting data from Google Earth Engine at a reduced resolution for further analysis outside of GEE, while maintaining similar results analysis in the code ...
0
votes
1answer
372 views

Get Numpy arrays from Google Earth Engine

I would like to get the numpy arrays of some Google Earth Engine collection. For example here my intent would be to obtain a 4d numpy array with dimensions [timestamp, height, width, bands] (or ...
1
vote
2answers
1k views

Trouble plotting Earth Engine images with Folium using Python

I am trying to plot an earth engine image using Python and the Folium package as described in the Python docs for Earth Engine. I tried running the example code given and I can't seem get the image to ...
0
votes
1answer
194 views

Specifying region in export image in GEE Python API

When I export an image in GEE code editor I can pass a geometry to the 'region' parameter without problem. However, it doesn't work for Python API and I get below error for the shown code: task = ee....
5
votes
1answer
452 views

Google Earth Engine: Javascript to Python conversion: syntax error with `image1.and(image2)`

I need to convert my Earth Engine javascript code into the Python API. Most of it works, but when using the following in Python (2.7): mask = image1.and(image2) I get: File "<ipython-input-65-...
4
votes
1answer
1k views

Use Google Earth Engine to read MODIS NDVI into python

I'm trying to adapt this example for my needs: https://mygeoblog.com/2017/10/06/from-gee-to-numpy-to-geotiff/ The difference is that I'm using the MODIS NDVI image collection. # define the image img ...