Skip to main content

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

JavaScript client library for calling the Google Earth Engine API.

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

Google Earth Engine JavaScript API reduceRegion vs. reduceRegions computation efficiency

Context I often need to calculate zonal statistics in the Google Earth Engine JavaScript API across many features in a feature collection. I usually use the reduceRegion() function and map over the ...
Thierry's user avatar
  • 119
0 votes
0 answers
28 views

Mosaicking and exporting image collection in Earth Engine

I'm fairly new in Earth Engine so I would love to get another opinion on what I might be doing wrong here. Essentially my code is taking an image collection, mosaicking the images from the same date ...
RFN's user avatar
  • 1
-3 votes
0 answers
19 views

Wet and dry pixels [closed]

I want Google Earth Engine code that has dry pixels (pixels that are not affected by the flow of the river and have a relatively constant reflection) and points that are affected by the river flow and ...
Fateme Farahani's user avatar
0 votes
1 answer
24 views

Overlay Image Date to Landsat Images from a collection

I am trying to extract the date of capture from a range of Landsat images on Google Earth Engine, then overlay that date onto each resepctive image before exporting the image series as a timeline. ...
Joseff Saunders's user avatar
0 votes
0 answers
20 views

FeatureCollection (Error) User memory limit exceeded

I am trying to execute a LULC map for my region of interest and I get the Error: stating User memory limit exceeded. Below is the code: var L8 = ee.ImageCollection("COPERNICUS/S2_SR_HARMONIZED&...
Ankita Varma's user avatar
0 votes
0 answers
13 views

Computation Timed Out Error in Google Earth Engine [closed]

I'm new to GEE. I am trying to use random forest classification to identify solar panels in a region of Brazil using a Landsat 8 median image and derived bands. However, the dataset seems to be too ...
Juan's user avatar
  • 1
-1 votes
0 answers
16 views

GEE timelapse code not working from drive

When I run the code, it appears complete for my AOI. But when download on drive, I can visualize my AOI just for parts and its incomplete. var Sentinel = ee.ImageCollection('COPERNICUS/...
user248914's user avatar
0 votes
0 answers
20 views

Google Earth Engine updateMask() with a mask of finer resolution gives strange results

It seems updateMask() will keep the projection of the original image. However, masking the original image with a finer resolution image produces strange results in the following calculation. As the ...
QRW's user avatar
  • 53
-1 votes
0 answers
12 views

How to create a boxplot in GEE using JS code editor?

I have an image with all the required BoxPlot values as an individual band. I want to create a boxplot for each pixel when I click on it. Do you know how I can do that? combinedImage Image (7 bands) ...
Abinash Silwal's user avatar
1 vote
1 answer
42 views

Measure river width using GEE

I am trying to measure river width using GEE, but everytime this error coming up Feature collection( error) Image.clip: Parameter 'input' is required. // Goal: calculate river centerlines and widths ...
A Roy's user avatar
  • 11
1 vote
0 answers
38 views

Creating a boxplot of monthly maximum NDVI values from Landsat time series on Google Earth Engine

I'm trying to create a boxplot from monthly maximum NDVI values in my study area from 1984 to 2024 using Landsat data. My idea is to plot the months from January to December on the x axis so the boxes ...
piBonacic's user avatar
0 votes
0 answers
29 views

Extracting QA bits for cloud mask with MOD09GA state 1km band using Google Earth Engine

I'm working on code for detecting fog and low stratus (FLS) using the QA bits from the state_1km band of the MOD09GA.061 product. I'm trying to select pixels classified as clouds (bit 0-1 Cloud State: ...
Andres Arguedas's user avatar
0 votes
0 answers
25 views

Zonal statistics (area of pixels google earth engine) in vector polygon using integer raster

I am trying to calculate zonal statistics from a integer raster within a vector polygon calculating sum of pixels area in google earth engine. For this, I use this script. // Visualization parameters ...
Rakuri's user avatar
  • 1
1 vote
1 answer
36 views

GEE - Mean Cloudiness in a given time range, Sentinel producing multiple points for each day

I am trying to create a plot that represents mean cloudiness against day of year using Sentinel-2. As the plot shows, there are multiple points for a given day and it's very choppy. Should Sentinel be ...
eamrl's user avatar
  • 11
1 vote
1 answer
42 views

How to create the fishnet grid in GEE using JS code editor?

I want to create a 10*10 pixel size grid for my AOI. 1 pixel = 10m var cellSize = 100; // Size of each grid cell // Get the bounds of the AOI var bounds = aoi.geometry().bounds().coordinates().get(0)...
Abinash Silwal's user avatar
0 votes
0 answers
21 views

Adjusting the control panel in GEE

I try to adjust the the size and distance of customized drawing tool control panel, but it failed. Specifically, I want to reduce the size of drawing sympols and control panel and move the control ...
Tuyen's user avatar
  • 211
0 votes
0 answers
14 views

Trying to remove non relevant plot points from a ui.chart.image.series in Google Earth Engine script

I am writing a pretty basic script to calculate the median NDVI in an ROI (in this case titled Naussac) in and then put it in a chart using the ui.chart.image.series function. The chart works, but ...
Gaben's user avatar
  • 1
1 vote
0 answers
29 views

Unexpected output from masked area calculation in Google Earth Engine

Using a 500m MODIS burned area dataset in GEE, I want to find the area burned in a period of time (say, a few months). Specifically, I want to find the area of pixels that have burned one or more ...
KatieGeo's user avatar
1 vote
1 answer
19 views

GEE function to apply annual reducer for multiple years in image collection

I'm working with a GEE image collection that includes multiple images for each year var studyRegion = ee.FeatureCollection("FAO/GAUL/2015/level0") .filter(ee.Filter.eq("ADM0_NAME", ...
user157564's user avatar
0 votes
1 answer
26 views

Null values after reduceRegion() in GEE

I took two datasets - WorldCover 2020 for builtup (100m), and MODIS for LST (1km), and clipped them to a predefined geometry. I then aggregated the builtup data to 1km resolution as given here. Then I ...
Anjishnu's user avatar
0 votes
2 answers
20 views

Exporting TIFFs in GEE results in skinny vertical line of pixels

I have to do a task that involves exporting TIFFs, but unfortunately no matter what I've tried I just get these tiny files that look like a single, thin strand of black pixels when I put it into QGIS. ...
justaguywhoneedshelp's user avatar
0 votes
1 answer
23 views

Why does the .filterBounds function not work for FIRMS data in GEE?

I am currently trying to filter all wildfires in a certain area from FIRMS data. Link to GEE: https://code.earthengine.google.com/26d53b5b6745fbddae1bfa27392d7eb5 var dataset = ee.ImageCollection('...
hi-bye125's user avatar
  • 103
0 votes
1 answer
14 views

GEE - Modifying x-axis to represent time of day or day of year

I've been trying to create a graph in GEE that depicts cloud coverage % over either time of day or day of year. I've been able to make the graph, but the x-axis is labeled by "COPERNICUS/...
eamrl's user avatar
  • 1
0 votes
1 answer
25 views

Overwrite default drawing tools in GEE

I try to use the default drawing tools in GEE to get an area of interest (e.g., polygon, point, rectangular). What I want now is to delete the previous geometry if exists and draw a new geometry each ...
Tuyen's user avatar
  • 211
0 votes
0 answers
13 views

Trying to calculate certain values within a buffered zone, but entire region is counted instead in GEE

I'm trying to calculate coral cover within a certain buffer zone, however, when I try to calculate this, the area of the entire buffered zone is counted. I have managed to split the two areas into ...
Nick Carrick's user avatar
0 votes
1 answer
37 views

Extracting CSV only of coordinate and date of image with lowest NDVI value for points [closed]

I need to extract a CSV only the coordinate and date of the image with the lowest NDVI value, for each point. var Alertas = ee.Geometry.MultiPoint( [[-52.97779569036378,-26.131082827324835], ...
clovis cechim's user avatar
0 votes
1 answer
42 views

Still clouds after cloud masking in MODIS daily reflectance 250m

I try to use "QC_250m" to mask out cloud pixels from MODIS daily reflectance 250m collection, but it did not completely remove cloud pixels. Here is the code var terra = ee.ImageCollection(&...
Tuyen's user avatar
  • 211
0 votes
0 answers
23 views

Wrong pallete in Gradient Tree Boost classification

I'm using GTB to classify LULC, and when I'm trying to visualize the image it looks like this: //Gradient Tree Boost Classification var classifier = ee.Classifier.smileGradientTreeBoost(500).train({ ...
Reza Pranata's user avatar
0 votes
1 answer
38 views

Error: Cannot export classifier. (Error code: 3) [closed]

I try to export the classifier to assets but I get the error: Unable to export classifier. (Error code: 3) Occurs while exporting. How can I derive a random forest model, but other models cannot? ...
xin pang's user avatar
1 vote
1 answer
26 views

Lines in median image created from Seninel-1 image

I am trying to create the median image of the coastal regions of Bangladesh. The imagecollection has around 319 images. When creating the median image, I get some lines as shown in the image below I ...
Raihan's user avatar
  • 45
0 votes
1 answer
54 views

Calculating Wet Season Average Precipitation Data in Google Earth Engine

I want to extract and create a map visualizing the average precipitation data between the years 2000-2023 during the wet seasons only, i.e.(Nov-Mar). However each time I run the code I get this error: ...
Daan's user avatar
  • 3
0 votes
1 answer
18 views

GEE - Filter by list of partial PRODUCT_ID properties

I got a list of partial PRODUCT_IDS, like: var partials = ['S2B_MSIL2A_20210807T075609', 'S2B_MSIL2A_20210827T075609'] How do I filter a collection with that list? There are 2 functions: var ...
Flash Thunder's user avatar
0 votes
0 answers
13 views

Earth Engine Double Slider [duplicate]

I'm trying to make a UI component similar to the ui.Slider() component in Earth Engine, but I need it to have two sliders, so it can define a range between two numbers. I can make it work with two ...
Dave Morris's user avatar
1 vote
1 answer
30 views

Using reducer in GEE without changing nominal scale

I loaded the MAPSPAM dataset into my Google Earth Engine asset, meaning that I have the total planted surface of each pixel for many commodities. This value is absolute and computed over 5 minutes arc ...
Pierrick Rambaud's user avatar
0 votes
1 answer
35 views

What does SIZE in glcmTexture function in GEE mean?

I´m using entropy and GLCM function of Google Earth Engine.This is my code var roi = ee.Geometry.Polygon( [[[118.82488789073328, 31.189561414050857], [118.82488789073328, 31....
jingda's user avatar
  • 1
0 votes
1 answer
69 views

Iteration of daily Fire Weather Index (FWI) calculations for the region of interest in Google Earth Engine

I decided to find out how the FWI index works for operational monitoring of the fire situation in the region. This is my first project on Google Engine and my programming knowledge leaves much to be ...
Mikita Rahouski's user avatar
0 votes
1 answer
26 views

Google Earth Engine empty list issue

I am intended to apply moving average function on a list of area values but the code returns empty list? Anyone has any idea? the code link: https://code.earthengine.google.com/...
AmirHossein Ahrari's user avatar
0 votes
0 answers
27 views

Mapping monthly max mean temperature

I need to map and determine the monthly mean max temperature for my study area between 2013 and 2023. The following code works, but I am confident that the result is not the monthly mean during the ...
Aldridge Nyasha's user avatar
0 votes
0 answers
30 views

Downloaded images and thumbnails much larger than specified area of interest using Google Earth Engine JavaScript API

I am a novice with Google Earth Engine. The aim of my code is to enable Sentinel-2 images (along with an NDVI layer) to be downloaded for a specified time period for a specified area of interest (aoi)....
leckos's user avatar
  • 1
0 votes
1 answer
30 views

Using regular expressions to select multiple variables for a function in GEE

In GEE I'm using Awesome GEE's ESRI LULC Dataset to map out and mask water areas for the years 2017 to 2022. Due to it being an Image Collection of multiple dynamic years, I had to filter, mosaic, and ...
Needs_Caffeine's user avatar
0 votes
1 answer
24 views

Restricting to region of interest in GEE

I'm using the following code to visualise and export a monthly mean of satellite data. How can I restrict the analysis to a small region? I tried creating a rectangular geometry and adding ....
Simon Hales's user avatar
0 votes
1 answer
31 views

Cannot read property 'clip' of undefined while creating web app in Google Earth Engine

I was trying to create an app using GEE to visualize the images from the year 2000 to 2020 at an interval of 5 years for selected municipalities. After running the code, the dropdown box is displayed, ...
Bibek Haudi's user avatar
-1 votes
1 answer
24 views

Error generating chart: Image.parseExpression: Expression contains undeclared variables: [max] for vci, and tci [closed]

I have a problem creating the chart and there is error message expression undeclared variables var geometry = /* color: #d63000 */ /* displayProperties: [ { "type": &...
iqbalhabibie habibie's user avatar
0 votes
1 answer
42 views

Google Earth Engine - Filter Sentinel 1 by time not date

So I'm trying to filter sentinel-1 data in Google Earth Engine by time specifically rather than date. I'm trying to avoid morning acquisitions. So I know that the acquisition start time is contained ...
Mícheál's user avatar
  • 147
0 votes
1 answer
64 views

Image.gt: If one image has no bands, the other must also have no bands. Got 0 and 1 using Landsat 8

I am getting error Image.gt: If one image has no bands, the other must also have no bands. Got 0 and 1.: var imageCollection = ee.ImageCollection("LANDSAT/LC08/C02/T2_L2"), geometry = ...
iqbalhabibie habibie's user avatar
0 votes
1 answer
38 views

Google Earth Engine Error: "ee.ImageCollection(...).subtract is not a function"

I'm getting the error 'subtract is not a function', when I try to substract two images from each other, and eventually get the difference in the NDVI. Both images have an NDVI band with an NDVI value. ...
leoleo's user avatar
  • 3
0 votes
0 answers
21 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'...
mikejwilliamson's user avatar
0 votes
1 answer
21 views

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

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 ...
Sina NAKHOSTIN's user avatar
0 votes
0 answers
21 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'...
user182760's user avatar
0 votes
0 answers
34 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( ...
Omar Mujahid's user avatar

1
2 3 4 5
25