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
1answer
16 views

Can reduceColumns be invoked by other client libary functions in Google Earth Engine?

I am running a script in Google Earth Engine Javascript API with a large feature collection as input, but the execution of the script fails with the error user memory limit exceeded. When I run the ...
1
vote
1answer
18 views

Raster to vector conversion result shows no "No matches at clicked point." in Inspector

I'm trying to conduct separability analysis using Mahanolobis distance to select the best index for classification. I have three indices :NDVI, ReNDVI and LSWI. To conduct the analysis, I'm trying to ...
1
vote
1answer
20 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, ...
0
votes
1answer
21 views

Creating multiple dropdown lists in GEE based on user selection

// Let's add a dropdown with the location names using aggregate_array() var items = India.aggregate_array('NAME_1'); items.evaluate(function(List) { dropdown.items().reset(List), dropdown....
0
votes
1answer
39 views

Extracting time series from ImageCollection for multiple points using Google Earth Engine

I want to extract for each point of my shapefile the NDVI and the related time-series charts but I cannot understand how to extract values. This is the code // load the S2 dataset var S2 = ee....
1
vote
0answers
68 views

Google Earth Engine subtraction (difference) of two geometries

I am trying to create a feature collection containing the difference (subtraction) between a larger geometry (e.g. the state of California) and a few smaller geometries within the larger area (e.g. a ...
0
votes
0answers
27 views

How to create a new raster layer as the output of linnear regression coefficients and indices in Google Earth Engine?

I´m newbie in programming and also in GEE. I´ve already created rasters/layers of indicies NDVI, NDBI, NDWI for Sentinel 2 image from one selected date. Now I´m trying to compute LST using simple ...
2
votes
0answers
15 views

Google Earth Engine: Export image collection to Asset while preserving original scale of individual image's bands

I would like to export an image collection to the Google Earth Engine's Asset, while preserving the original spatial scale of each individual image's bands. The Rodrigo Principe's answer to a similar ...
0
votes
1answer
32 views

Pansharpening Sentinel-2 Image Collection in Google Earth Engine

With reference to (Pansharpening Sentinel-2 imagery in Google Earth Engine) and (Blank Image - Pansharpening Sentinel-2 imagery in Google Earth Engine). I am trying to use the code for an image ...
0
votes
1answer
17 views

GEE collection bands from formulas

How could I create a function calculating NDVI difference from actual NDVI and mean NDVI values to add as a new band to the collection? Something like this: var ndvi_diff = ndvi.map(function (image) { ...
0
votes
1answer
24 views

Export band value range of one landcover class after Random forest classification

I have classified my study area into six landcover classes (water, urban, barrenland,plantation, nonmangroves forests and mangroves) using Random Forest. I used six bands for classification (red, blue,...
1
vote
1answer
43 views

Map algebra and equation in Google Earth Engine?

I´m newbie in programming and also in GEE. I´ve already created rasters of indicies NDVI, NDBI, NDWI for Sentinel 2 image from one selected date. Now I´m trying to use map algebra that will compute ...
1
vote
1answer
34 views

The native resolution showed in the Map in GEE after reduce the image collection

I'm new in GEE. I have known that the crs and nominalscale() will change after the mean() method, but I'm confused because the reduced image showed the same native resolution with the original ...
1
vote
0answers
23 views

Using RandomForest for land use classification in Google Earth Engine: Training accuracy shows error

I am using RandomForest classification for my LULCC study. I have been successful in running the classification including getting the "validation accuracy" as 0.87. However, my "...
2
votes
0answers
30 views

Tiling a polygon into relatively even squares?

I have a polygon that I would like to cut into even tiles that are around 100 x 100 m (it doesn't have to be perfect). I found the ee.Geometry.Polygon.cutLines() method, but when I use it nothing ...
2
votes
1answer
35 views

Error in exporting image GeoTIFF from GEE to Drive

I am trying to export a GeoTIFF from GEE to my drive and I have gotten this error messege: Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image<unknown bands>. ...
0
votes
0answers
20 views

Shopify / Google Earth Engine

I'm drawing specific polygons within Google's Earth Engine, and then hoping to show those images of the polygon on my Shopify store. The javascript code that is presented in Google's Earth Engine ...
0
votes
0answers
33 views

Keeping band names when exporting a GeoTIFF from Google Earth Engine

I am trying to export an image as a GeoTIFF through Google Earth Engine but I can't seem to find a way to retain the band names. They look like this before exporting. When I open the GeoTIFF after ...
0
votes
1answer
60 views

Mask fire scars across a collection of images and combine them into one singular image

I am a GEE and JavaScript novice. I am trying to calculate a specific fire index for a collection of sentinel 2 images so as to map burn scars throughout a one year period. I then want to apply a mask ...
0
votes
1answer
37 views

Calling a function with an image output to add in map layer

I am trying to estimate the LST using the thermal band (Band 10) of Landsat 8. I have written the final calculation of LST from the brightness temperature under a function. But I am getting trouble ...
0
votes
1answer
26 views

NIR.subtract is not a function

I am trying to calculate Kernal NDVI (kNDVI) and the code keeps giving me this error. The link to the code: https://code.earthengine.google.com/24e8503ec2f264d0ffe0ba1bfe4c6353 /// adding shapefile to ...
0
votes
0answers
14 views

Plotting time series by year using Google Earth Engine JavaScript API

I am plotting time series every 5 years with Landsat. I got the averages for these five years and plotted for six ranges from 1989 to 2020. Now I need to plot those six years on a single graph but I ...
0
votes
2answers
53 views

Forcing GEE's fastDistanceTransform() to operate at specific scale

I am trying to compute the distance to the nearest waterbodies at a global scale. I am defining waterbodies by thresholding the JRC's Global Surface Water "occurrence" dataset at 80% or ...
0
votes
1answer
24 views

Changing resolution for composites in Google Earth Engine

In Google Earth Engine I am calculating Sentinel-2 NDVI and then want to rescale my ndvi imagery from 10m to 30m to match Landsat. Finally, I want to combine the 30m Sentinel-2 with the Landsat ...
0
votes
0answers
23 views

Creating user input coordinates then using these values to filter image collection in Google Earth Engine

I'm a GIS Student trying to create an app in GEE which through user entered coordinates I get images from that point and calculate some parameters like NDVI and NDWI. I'm trying to create a textbox to ...
0
votes
1answer
29 views

Calculating Annual Burned area using MODIS/006/MCD64A1

I am struggling to calculate annual burned area using MODIS/006/MCD64A1 and plotting it to graph for the historical burned area in ROI. However, I'm not sure whether my result is correctly calculated, ...
0
votes
1answer
24 views

Stacking Landsat band in Sentinel collection using Google Earth Engine JavaScript API

I have worked on the following code to obtain a fusion of both sensors but when I generate it I get Landsat as an additional property, what can I do? var s2 = ee.ImageCollection('COPERNICUS/S2') ....
0
votes
1answer
57 views

Daily Rainfall data extraction from CHIRPS database for polygons using Google Earth Engine

I don't use GEE a lot but I have to use it to extract daily rainfall data from the CHIRPS database. It should be simple but I am stuck. The outcome should be one CSV file with three columns: polygon ...
0
votes
1answer
52 views

Error "pattern did not match any bands"

I'm a GIS Student and I'm learning how to use Google Earth Engine. I'm trying to make a GEE APP in which through a dropdown menu I select an index (in this case NDWI_Veg or NDWI_Water) and it shows on ...
1
vote
0answers
29 views

Generation of snow cover area time series in GEE using MODIS Snow Cover product

My aim is to resample MOD10A1/MYD10A1 to the same scale as that of MOD11A1/MYD11A1, mask the image collection to obtain the best pixels, and finally to obtain the time series plot of the total area ...
1
vote
1answer
25 views

Google Earth Engine - How to simultaneously retrieve land surface temperature (LST) for many areas?

I'm fairly new to GEE/Javascript so my terminology may be wrong and confusing. I have a Shapefile with polygons for 1000ish cities of interest. I'm trying to retrieve the LST for those cities; the ...
0
votes
2answers
72 views

Download pixels where "1 < BurnDate < 366" from MODIS Burned Area

The following code downloads 3 band burned area rasters for each month in the defined range. I am only interested in the pixels in the 'BurnDate' band, which have values between 1 and 366. I wish to ...
0
votes
0answers
11 views

How to add attribute from input ee.FeatureCollection to ee.Geometry.Rectangle in function

I have an ee.FeatureCollection called 'datasubset' that contains the following columns: ID, LATITUDE, LONGITUDE, WIDTH, HEIGHT, and VALUE. This is a subset of the data I am working on in Ayeyarwady ...
0
votes
1answer
30 views

Calculating area of intersection part in Google Earth Engine

I would like to ask why I can't get the area value of the intersection even though I can see the intersection of the flooded area and the cropland part on the map. I'm not sure if it's a problem with ...
0
votes
1answer
29 views

Null value after reduceRegions in GEE

I would like to understand why I'm getting Null value for some polygons when using reduceRegions in google earth engine. Basically, I want to compute median pixel value within watersheds (polygons) ...
0
votes
1answer
46 views

Google Earth Engine: Adding date and tile ID to entries of feature collection for later .csv exporting

I'm trying to extract pixel values for various sites from a Sentinel-2 dataset, across the entire time range available. I'm trying to add the date, and the mgrs_tile ID to each extracted entry, so I ...
0
votes
1answer
51 views

Error while performing LULC classification

I get this error while performing LULC classification: Error: "FeatureCollection (Error) Image.select: Pattern 'SR_B1' did not match any bands. Script code: var image= ee.ImageCollection("...
0
votes
1answer
23 views

Weighted overlay in Google Earth Engine

I am trying to weghted overlay in Google Earth Engine I want to overlay PDSI, SPI and SMI applying weights for each parameter. This is how I am going to overlay them: var overlay = spi.add(smi.add(...
1
vote
1answer
29 views

Extracting second least cloudy image at distinct path and row in Landsat using Google Earth Engine

I am trying to extract the second least cloudy image at every distinct path and row in Landsat Google Earth Engine. Below is my code, which is a modified version of Filtering Landsat8 image collection ...
0
votes
1answer
27 views

Error while Iterating a Composite Image Collection over PCA analysis

I have created a composite image of Landsat 8 from the year 2014 to 2020, these are stacked images for summer season. Now while applying PCA analysis and extracting a particular band it is showing an ...
0
votes
1answer
34 views

Assigning element from first list to it's respective element in second list

I have a list of months(strings) & a list of image collections. I'd like to assign the value of each month's corresponding image collection to itself. How can I achieve this neatly without ...
0
votes
1answer
73 views

Google Earth Engine: Understanding Landsat 7 Collection 2 QA_PIXEL, bitwiseAnd()

I want to see how the new Landsat Collection 2 (C2) differs from Collection 1 (C1). I have created an adequate Landsat 7 C1 composite since GEE provides a cloud mask function but does not for L7 C2. ...
0
votes
1answer
32 views

Google Earth Engine - Selected layers not updating

I would like to seek assistance on the code below. My maps is not updating after I choose the layer in the dropdown list. /** * Function to mask clouds using the Sentinel-2 QA band * @param {ee....
0
votes
0answers
99 views

How to destripe a Landsat 7 collection instead of single images in GEE?

I am trying to calculate the NDMI index from Landsat 7 collection in GEE. I have the following code, however a major issue is the gaps. I had a look in this example. To my understanding, I must set ...
0
votes
1answer
63 views

Google Earth Engine Exporting Image Collection

I am new to Google Earth Engine and satellite imagery in general. My goal is to export bands B1-B7 from the [Landsat 8 image collection][2] over a given geometry and be able to visualize each band (or ...
0
votes
0answers
31 views

Google Earth Engine Exporting Image from Collection without taking median

I am new to Google Earth Engine and satellite imagery in general. My goal is to export bands B1-B7 from the [Landsat 8 image collection][2] over a given geometry and be able to visualize each band (or ...
0
votes
0answers
28 views

Adding Layers to Map with Google Earth Engine NodeJS Javascript API

We already have a set of scripts in Google Earth Engine Code Editor. They all use Map as shown below to render the map. var landSurfaceTemperature = ee.ImageCollection('MODIS/006/MOD11A1') .filterDate(...
2
votes
1answer
34 views

Pixel counting and mode for classification refinement in Google Earth Engine

Currently I am trying to refine a Classification for year 2001 based on the class persistence during a 3 year window: maps of 2000, 2001 and 2002. My two rules are: If in the 3 years period there ...
1
vote
0answers
58 views

Does Google Earth Engine (GEE) compute Vegetation Condition Index (VCI) time series correctly?

The formula to compute VCI from long term dataset is VCI= (NDVI_current-NDVI_min)/(NDVI_max-NDVI_min) * 100, refer to Drought monitoring using the Vegetation Condition Index (VCI) Map.centerObject(...
0
votes
0answers
15 views

How to batch upload GeoTIFFs to Earth Engine?

I need you batch upload few thousand geotiff images with their timestamp into Earth Engine. I have tried the python packages called geeup and geebam, unfortunately they are now working now. Is there ...

1
2 3 4 5
9