Questions tagged [google-earth-engine]

Google's cloud computing platform for geospatial data & analysis at earthengine.google.com, which can be programmed using either Python or JavaScript client libraries.

Earth Engine has client libraries in both and .

807 questions
1
vote
1 answer

Update metadata of an asset in Google Earth Engine API with Javascript

I want to update the metadata properties for an asset, whether it's an Image or Table/Featured Collection. I've followed the documentation but it's not updating or giving me any…
1
vote
1 answer

Filter specific months in several years

var x1= ee.ImageCollection('LANDSAT/LC08/C01/T1_SR').filterBounds(geometry) .filterDate('2019-07-01', '2019-10-30') .sort('CLOUD_COVER'); How could I filter the dates in Sep, Oct, and Nov between 2014 and 2020?
Bo Wang
  • 41
  • 5
1
vote
1 answer

How can I overlay two rasters in Google Earth Engine?

I have forestry and DEM datasets. I would like to combine them to be able to calculate the amount of forest for each elevation zones. I would like to do it with Google Earth Engine. I reclassified DEM into several zones. How can I combine these two…
1
vote
1 answer

Problems with ee$List$repeat

I am trying to get the following code to work in Google Earth Engine using the rgee package: # Load rgee library(rgee) # Initialise ee_users() ee_Initialize() # The incorrect use of repeat within an rgee context ee$List$repeat(1,3) But I get the…
Anthony W
  • 1,289
  • 2
  • 15
  • 28
1
vote
0 answers

How to aggregate 3-hourly TRMM rainfall data into daily values?

I am trying to convert 3-hourly TRMM rainfall data which I have downloaded from Google Earth Engine. I have attempted to do this using the code as shown below but am having difficulties representing the Google Earth Engine date format into a format…
1
vote
0 answers

error [SSL: CERTIFICATE_VERIFY_FAILED] when running 'earthengine authenticate'

I am trying to authorize access to Earth Engine via earthengine authenticate but get the following error: File "C:\Users\jwiesehahn\Anaconda3\envs\treespecies\lib\urllib\request.py", line 1350, in do_open h.request(req.get_method(),…
1
vote
0 answers

Is there a function that gives the size of a pixel (not in meters) of an "ee.Image" in google earth engine?

I have an ee.Image that I export to TFRecord. I follow this tutorial (https://developers.google.com/earth-engine/guides/tfrecord). I use this function : ee.batch.Export.image.toDrive( image = image, description = name, folder = folder, …
Kinza
  • 11
  • 2
1
vote
1 answer

How to extract or filter for a date in google earth engine data

I want to go back in time and visualise the hydrology of the past. I am using the MERIT Hydro data set in google earth engine which states a time range of multiple years. How can I filter for the earliest data set available? Is the data downloaded…
Philipp R
  • 598
  • 6
  • 22
1
vote
1 answer

How to combine time-series datasets with different timesteps in a single plot on Google Earth Engine

I am currently trying to plot, in the same chart, a time-series for monthly and yearly soil moisture. I have an ImageCollection which has 480 images (one per month), and another ImageCollection that has 40 images (one per year). I am able to plot…
MadeleineN
  • 148
  • 6
1
vote
0 answers

How can I create a graph with time variation of all the polygons in a Shapefile in GEE?

I have a problem. I would like to get a time series graph with the mean of each of the polygons in my shapefile (data_shp) using GEE. But I can only get a single mean for all the polygons. I tried changing the "regions:" but it doesn't good. Thanks…
1
vote
1 answer

How to convert from Javascript to Python API for FeatureCollection in GEE?

I have a JS Code which runs well: dataset = ee.Image('USGS/SRTMGL1_003'); elevation = dataset.select('elevation'); var means_of_tea = tea.map(function(field){ var elevation_mean = elevation.reduceRegion({ reducer: ee.Reducer.mean(), …
masoud
  • 535
  • 3
  • 16
1
vote
0 answers

Error: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential

I am with a project with React in which I want to use the library @google/earthengine, but is throwing me this error: 1 2 This is my code that is throwing error: 3 Someone know how could I have localhost:3000 in authorized origins for google cloud…
1
vote
0 answers

What is the equivalent ee.Image.not() in Python

I'm using geemap package to refactor a code from JavaScript to Python and I couldn't find a way to replicate these two lines var swbdMask = swbd.unmask().not().focal_median(1) var hmask = hand30_100.gt(20).focal_max(10).not() My issue is with the…
salRad
  • 320
  • 1
  • 8
  • 21
1
vote
1 answer

Why is Sentinel-2 Map coming out Black on Google Earth Engine

I am taking a look at the FIRMS dataset on the Google Earth Engine and I'd like to see Sentinel-2 images corresponding to forest fires on FIRMS, but for some reason it comes out either very dark or, when I filter the date to September 10-13th,…
1
vote
1 answer

Spectral separability analysis Google Earth Engine

I need to carry out a classification using Sentinel 2 images, and for this, I need to perform a spectral separability analysis to select the best bands and vegetation indexes to use. So, I need to calculate the Mean and Standard deviation of the…