Questions tagged [google-earth-engine]

Google's cloud computing platform for geospatial data & analysis at earthengine.google.com.

Filter by
Sorted by
Tagged with
0 votes
1 answer
552 views

Accuracy assessment in GEE with an external data source

I'm new on GEE and I'm trying to perform an accuracy assessment of a supervised classification from S1 of a flood area, by the use of a confusion matrix. Once the model is created, in order to ...
1 vote
1 answer
159 views

Assigning colors to classes using conditional statements using GEE

I am trying to assign colors to each of the class by checking the conditions (condition on - pixel values). But it doesn't check the else statements, it only checks the if: if (image.gte(0.1).And(...
1 vote
1 answer
362 views

GEE Python API Map Visualization not working

I am working in Google Collaboratory and the Google Earth Engine Python API Map will not show. It was all working as of 7/6 5pm EST and then 7/7 at 10am it stopped rendering. I have attached my code ...
0 votes
0 answers
15 views

Integrating Google Earth Engine (GEE) data into a Flutter app

How do I display Relative humidity map image produced by a GEE JS file in a Flutter App? I want to take country name and time as a user input and display the image accordingly. Link to the GEE file: ...
0 votes
1 answer
233 views

3D surface area with Google Earth Engine

I have my region of interest as a polygon. When I calculate the surface area I get a '2D value' (ie as if it was a flat surface). The problem is, the region is quite full of hills, so the real surface ...
0 votes
1 answer
202 views

Google Earth Engine: How can I compare Landsat 8, Landsat 9 and Sentinel 2 surface reflectance?

I want to compare the SWIR values of L8, L9 and S2. I am using the following collections: L8: "LANDSAT/LC08/C02/T1_L2" Band 7 L9: "LANDSAT/LC09/C02/T1_L2" Band 7 S2: "...
0 votes
1 answer
174 views

How to mask clouds and shadows for Landsat 5 Collection 2 Level 2 data in Google Earth Engine

I want to create a cloud-free composite for Landsat 5 data and I want the shadows to be masked as well. However, the code only includes the clouds. I am extremely new to this and cannot find any ...
0 votes
0 answers
11 views

Google Earth Engine - Code won't run past September 2020

I have some code which can be found here. It calculates an environmental stress index coral reef regions using Google Earth Engine. I've tried to calculate some new data recently but I realised it won'...
0 votes
1 answer
427 views

Error of reprojecting ImageCollection in GEE "Too many pixels in the region."

Due to the necessity that I have to process the model in specific CRS (EPSG:3006), I try to reproject the ImageCollection after calculating all the vegetation indices I need. I use the code below to ...
1 vote
1 answer
341 views

Exporting a CSV of Mean EVI Landsat 8 Values using reduceRegion function from Google Earth Engine (GEE)

I am trying to export a CSV file from Google Earth Engine (GEE) that reflects the mean EVI value per census tract. I have script that does this exact thing for NDVI from Landsat 8 but cannot seem to ...
0 votes
1 answer
435 views

Exporting table of daily temperature (ERROR: Internal Error)

I am trying to download a table of daily temperature for the year of 2001 and all Brazilian municipalities in Google Earth Engine Code (GEE). After mapping a Reduce Regions function and flatten to ...
0 votes
1 answer
22 views

Cumulative rainfall for different dates with GPM [closed]

I need to download a list of 5-day cumulated precipitation in different regions. I get the results for a specific date but I am not sure how to proceed with the other dates I have on the list, so I ...
3 votes
1 answer
1k views

Bitwise and bitmask used in mask clouds Sentinel-2 images

What is the function behind two specific line in below coding block ... 1) var cloudBitMask = 1 << 10; 2) var mask = qa.bitwiseAnd(cloudBitMask).eq(0) .and(qa.bitwiseAnd(cirrusBitMask).eq(0)); ...
0 votes
1 answer
298 views

Tasseled Cap single band export in GEE

Based on the mentioned code please suggest me how can I export single band image (either brightness band or greenness band) in google earth engine. var sanfrancisco = ee.Feature( ee.Geometry....
0 votes
0 answers
19 views

Error "No features contain non-null values of "system:time_start" when charting time series in Google Earth Enegine

I want to create a chart showing the yearly average Chlorophyll a over a given time span. However I have been getting the following error when trying the create a time series. After looking at this ...
0 votes
1 answer
15 views

GEE feature alignment in two featureCollections (same features but with different ID properties)

I have two sapefiles consisting of features + geometries that represent the same bounding areas on earth. Lets call them shp_D1 and shp_D2. Like in many shapefiles, every feature (polygon) in these ...
0 votes
1 answer
300 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 ...
2 votes
1 answer
287 views

Calculate the nearest distance between each pixel inside my region of interest to the closest streamline (a FeatureCollection) in Google Earth Engine

I need to find the nearest distance between every pixel in my area of interest to the streamline closest to it. I'm using the following dataset for the streamlines ee.FeatureCollection("WWF/...
-1 votes
0 answers
10 views

Why my GEE export task, always re-execute the export task after some time of task execution, what is the reason? [closed]

Multiple attempts to re-execute the task
0 votes
0 answers
15 views

I want to know how to get the public module in GEE

var Get_S_Series = require('users/Conala/QuickModel:Algorithms/GetSentinelImage'); I hope to get the "GetSentinelImage" module, however, I have not found it anywhere Where can I get it?
2 votes
2 answers
1k views

Calculation of brightness temperature in Kelvin from Landsat 8, Band 10

I tried to use expression to obtain the brightness temperature, It is showing some error. Can anyone help me with this error? I have used the co-efficient for band 10 given in metadata of Landsat 8, ...
1 vote
1 answer
1k views

GEE Published Application not Working?

I have a script for an application that runs perfectly fine in the Javascript API, and at one point it also ran after publication to my Earth Engine apps gallery. However, for some reason it no longer ...
0 votes
0 answers
22 views

Export Microsoft's building footprint as shapefile for a specific region

I am trying to export Microsoft's building footprint for a specific region as shapefile. I am using the code below: var feature = ee.FeatureCollection('projects/sat-io/open-datasets/MSBuildings/...
0 votes
1 answer
705 views

Export NDVI values from chart as JSON in Google Earth Engine

After filter OLI8 for a small area var collectionFilter = ee.ImageCollection('LANDSAT/LC08/C01/T1_RT_TOA') .filterBounds(geometry) .filterMetadata('CLOUD_COVER','less_than',4) .map(app); print(...
0 votes
1 answer
29 views

Median value within polygon of a data layer like NDVI- iterate over multiple polygons defined in map interface

I have a script below that will calculate the median NDVI for any polygon, store it, and chart it for export, over a range of dates. The script also performs some cloud masking prior to NDVI ...
0 votes
1 answer
387 views

Error: "l8.filter is not a function"

I'm writing a code to calculate vegetation indexes and plot charts for each index. In the same script I've added the code to make a GUI for the same. I'm getting the error: Error: "l8.filter is ...
1 vote
1 answer
326 views

Image pixel area across different features in GEE

I have managed to solve my problem, see worked example below, leaving this question in case it's helpful for anyone. Though, as a new user I would be interested if anyone has any advice of a more ...
0 votes
0 answers
16 views

Get the number of elements of the longest continuous sequence in Google Earth Engine

I have a List/Array [1,0,1,1,1,1,1,0,0,0,0,0,0,0,0,1,0] and I want to get the number of elements in a sequence of consecutive ones. It should be easy to implement using ordinary JavaScript, but I don'...
0 votes
0 answers
8 views

Issues with the RESOLVE Ecoregions 2017 dataset

I'm new in GEE and I'm trying to visualize the biomes on a specific area of America. I'm having trouble visualizing the 15 biomes and doing it for this specific area only. How could I visualize this ...
0 votes
1 answer
258 views

What's the use of ImageCollection.errorMatrix() in Google Earth Engine?

In the docs there are two versions of the errorMatrix function: ee.FeatureCollection.errorMatrix and ee.ImageCollection.errorMatrix I've been sampling points from my classified images to create error ...
2 votes
2 answers
3k views

Pearson correlation of two 1D array in Earth Engine

This GEE documentation addressed the correlation chart of two bands over a region. // Define an arbitrary region of interest. var sanFrancisco = ee.Geometry.Rectangle([-122.45, 37.74, -122.4, 37.8]); ...
0 votes
1 answer
291 views

Resample of mean of ImageCollection to higher resolution

I want to resample the mean of 48 images of GPM with 10000m to MODIS in GEE. My code works perfectly for one image but the result for the mean or median of 48 images (or any number) does not correct. ...
0 votes
0 answers
22 views

Imported SoilGrid layer only returns black on Google Earth Engine

I'm running this code to export a layer to google earth later. When I Import it it only return black as per the image, here's my code for reference : var geometry = ee.Geometry.Polygon( ...
0 votes
0 answers
25 views

Format error training algorithm for image supervised classification - Google Earth Engine python API in QGIS

I am using Google Earth Engine python API in QGIS to try and run a supervised classification of an aerial image. I started working on a GEE guide on supervised classification, but there seems to be a ...
0 votes
1 answer
366 views

Sample training points from image collection using Google Earth Engine JavaScript API

I am trying to train a classifier to distinguish between snow and not snow pixels on Landsat imagery. I got the layer prepared with manually vectorized snow extent for couple of images and now want to ...
0 votes
0 answers
16 views

Getting Error: Internal error. (Error code: 13) Earth Engine when exporting to my cloud bucket

I'm using this to export a region to my cloud bucket in Google Cloud var convertedDataset = H2017static.select('constant').multiply(1000).int16() var visualization = { bands: "constant", ...
1 vote
1 answer
257 views

Accessing data from time series in GEE

I have a code for NDVI time series from an image collection. This code prints the time series in a table or a chart. Is there a way to access the values in the table of the time series in google earth ...
1 vote
3 answers
2k views

How does the randomColumn() function in Google Earth Engine work

Does the randomColumn() function assign an arbitrary random value as a collection element property or is it based on some aspect of the collection element? For instance, I have a script that calls ...
0 votes
1 answer
10 views

Can't upload to cloud bucket due to image Band

So I'm trying to export the HM map to my cloud bucket with this code: var dataset = ee.Image("projects/sat-io/open-datasets/GHM/ghm_v15_2017_300_60land"); // Convert the floating-point band ...
0 votes
1 answer
300 views

Error in supervised classification output (Earth Engine)

I have a problem in the supervised classification output. The classification itself is giving any problem, but when I try to print or display the image I obtain this error: Image (Error) Unable ...
-1 votes
1 answer
334 views

Accessing the Google Earth Pro image dataset for exporting a GeoTIFF

I would like to extract with Earth Engine, Google Earth Pro GeoTIFF images in UTM projection using opposing corner coordinates. In Google Earth Pro, the ~6” imagery I assume to be already processed ...
0 votes
1 answer
10 views

ee.dictionary.get("gHM") not returning a mean value in server side

Here is my server side code: app.post("/process-coordinates", (req, res) => { //const coordinates = req.body.coordinates; // Here you can perform any Earth Engine operation using the ...
1 vote
1 answer
597 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 ...
3 votes
1 answer
1k views

Exporting image collection to asset

I am trying to export an image collection of model results as an asset in GEE but I get the error message: Error: Unable to export features with unbounded geometry. The images in the collection ...
1 vote
1 answer
1k views

"image" is not defined in this scope

I am new to coding and need some help debugging...I am trying to classify a region in Peru using Sentinel 2. The error I am receiving is "'image' is not defined in this scope." I believe my ...
0 votes
1 answer
37 views

Use of bitmask to remove undesired pixels from an image collection

I am using the HSL30 product to download monthly images for a single year. As it is now, I am not accounting for clouds, cloud shadows, snow/ice in the image collection. I would like to remove pixels ...
1 vote
1 answer
440 views

Generate training data from FeatureCollection in Google Earth Engine

My goal is do a land cover classification using Landsat 8 imagery and my shapefile which when imported to GEE, looks like this, Feature HID ClassName SuperclassID Index 0 911 Veg1 ...
0 votes
1 answer
408 views

Google Earth Engine returning white images

When I run the following code, a blank image is outputted. coordinates = input() geoCoordinates = json.loads(coordinates) i_date = '1972-07-25' f_date ='2022-12-31' aoi = ee.Geometry.Polygon(...
3 votes
1 answer
194 views

Google Earth Engine task.id not showing correct id format?

const task = ee.batch.Export.image.toCloudStorage({ //task description }); task.start(() => { console.log("Task started: " + task.id) }, (error) => { console.log(&...
2 votes
1 answer
456 views

Exporting EVI image on Google Earth Engine with visual parameters between -1 and 1?

I am having an issue with exporting an EVI image with the visual parameters between -1 and 1. On Google Earth Engine (GEE), using the inspector tool, the values are between -1 and 1, but when I export ...

1
2 3 4 5
114