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

JavaScript client library for calling the Google Earth Engine API.

Filter by
Sorted by
Tagged with
1
vote
0answers
15 views

Conditional chart formatting for featureCollection in GEE (e.g. green for positive values and red for negative values)

I am trying to figure out a way to format a line chart drawn from a feature collection depending on the plotted value. For example, I want to plot the featureCollection below using green for positive ...
2
votes
1answer
51 views

How can I export a List as a featureCollection in GEE?

I'd like to know how can I export as a featureCollection the List (line 31) of the following script: https://code.earthengine.google.com/5f453a2f3cf39c4be49ac4f4df47ac08
2
votes
1answer
18 views

How to filter ActiveList containing ui.Map.Layers in Google Earth Engine?

How do you filter an activeList of MapLayers in Google Earth Engine (js api)? Context: in an app where users use a dateSlider to visually interpret imagery and assign classifications. Classifications ...
5
votes
1answer
45 views

Conditionally Map.addLayer() in Google Earth Engine

My app has a dateSlider that searches multiple collections, and selects the image nearest to a date within a window. I want to conditionally display those images, with error handling for empty images. ...
-1
votes
0answers
25 views

How can I write this Matlab code in GEE?

t=graythresh(MNDWI(~cld_mask)); if abs(t)> 0.1; t=t^3; else t=t; end land_mask=im2bw(MNDWI,t); land_mask=imfill(land_mask,'holes'); I2=double(I(:,:,2)); N1=I2<=-0.999; N2=Ts<=0; water_mask=...
1
vote
1answer
49 views
+50

GEE: NDVI doesnt loading in linked maps

I created a small script with 4 linked maps. Each shows a different visualization. map4 should show the calculated NDVI. But it doesnt work. The viz will not show. Anyone who know where's my mistake? ...
0
votes
1answer
22 views

Why this lookup names and value doesn't work?

I would like to print names and value from classified images with this code //**Set center **// Map.setCenter(103.667, 11.5019, 9); //**Import Copernicus Global Landcover dataset var dataset = ee....
1
vote
2answers
97 views

How to get the right scale and total value of a world population map using GEE?

I'm trying to understand worldpop data using GEE. While the scale should be 100 m., using the following code line I get a scale of '111319.49079327357' var pop_scale = pop2015.select(['population'])....
1
vote
1answer
80 views

Blank Image - Pansharpening Sentinel-2 imagery in Google Earth Engine

Referring to Pansharpening Sentinel-2 imagery in Google Earth Engine and the solution provided In the answer the code mentioned refers to the use of a single image, instead, I am trying to use it on ...
4
votes
1answer
51 views

Exporting CSV of time-series for every polygon from table of polygons

My question has a similar intention as in this link: Exporting time series of multiple polygons to .csv. format table However, in my case, following this code, the table output runs for hours and then ...
0
votes
1answer
26 views

Seeing all of image in Google Earth Engine

var s2SR_list = s2SR.toList(s2SR.size()); var s2SRMasked = s2SR_list.map(function (img) { return cld.sclMask(['cloud_low', 'cloud_medium', 'cloud_high', 'shadow'])(img); }); print('...
4
votes
1answer
55 views

Calculating daily max and min temperature data from GLDAS over several years using Google Earth Engine

I am still new to the Google Earth Engine and try to calculate the daily max and min temperature based on the GLDAS. Could you advise me on how I correct this code to calculate daily max and min ...
0
votes
1answer
18 views

Wrapper function triggering “Unknown variable references: [_MAPPING_VAR_0_0].”

I am currently applying a manual calibration on Landsat 8 images (manual because I want to simulate "noise" that could be introduced into the image--fed in as ee.Lists), and then compositing ...
3
votes
1answer
32 views

Cloud masking for sentinel surface reflectance multi-images.But I cant apply for multi-images using Google Earth Engine JavaScript API

I want to do cloud masking for sentinel surface reflectance images but I cannot apply for multi-images,It was done for first image. How could I do that using the Google Earth Engine JavaScript API? ...
2
votes
1answer
36 views

Calculating daily precipitation data from CHIRPS over several years using Google Earth Engine

I am still new to the Google Earth Engine and try to calculate the daily precipitation based on the CHIRPS. I have created a code to calculate monthly precipitation. Could you advise me on how I ...
1
vote
1answer
30 views

Creating feature collection after importing different shapefiles from assets in Google Earth Engine

I am importing 2 different shapefiles from assets to plot the time series chart of MODIS but I am unable to make the feature collection out of these shapefiles how to do that? // 1st Shapefile var ...
1
vote
1answer
24 views

Calculating sum of all pixel values of world population map without defining area of interest in Google Earth Engine

I would like to know the world population in the year 2015 according to WorldPop data without bounding the calculation of the sum to a specific region or area of interest. What is the function for ...
-1
votes
0answers
33 views

Export data from time-series image collection to a table in Google Earth Engine over a large AOI

I am working with ESA/CCI/FireCCI/5_1 data on burned areas in GEE. I have developed code to show burned areas in a specific AOI over a specific land type (peatlands in DRC) from 2001-2019. I am trying ...
3
votes
1answer
23 views

GEE Download data around buffers on multiplie points, adding coordinates of each point to table

I want to download a time series of the average pixel value of a buffer around a number of points. In the resulting table, I'd like to have the coordinates of each point as a variable. How to do this? ...
0
votes
0answers
49 views

Batch export ImageCollection Error on Earth Engine editor

Here is my script on Earth Engine editor below exports.export_imgCollection_raw = function(imgCol, region, Name){ var indexList = imgCol.reduceColumns(ee.Reducer.toList(), ["system:index"])...
0
votes
0answers
19 views

Harmonic modeling of multiple bands in Earth Engine

I am trying to generate harmonic models for multiple spectral indices derived from the same image collection time-series in Google Earth Engine (say EVI and NDVI). The implementations I have been able ...
0
votes
0answers
16 views

View multiple tiles distributed over a larger area

I just started using GEE API to work with bigearthnet dataset. I want to view by highlighting as best as possible (maybe using a marker per image) a small list of images in map, without knowing a ...
0
votes
0answers
21 views

How can I visualise my object based classification outputs?

I have ran an Object based RF on google earth engine, I managed to get the accuracies ranging between 63 and 68% for my wetland. The problem now is that my classes cannot be visualized, even when I ...
1
vote
1answer
42 views

Renaming bands using Google Earth Engine JavaScript API

I would like to rename the band "B4_stdDev" to "Red_stdDev", and the band "B10_stdDev" to "Temperature_stdDev". Example code: var b4_stdDev = ee.Image().rename('...
1
vote
1answer
35 views

Exporting an ImageCollection to a CSV in Google Earth Engine

I am pretty new to using the code editor. I am trying to export ten-day NDVI composites (images from Sentinel-2) to a table (as a CSV file). I think my problem lies with not knowing how to convert my ...
0
votes
1answer
27 views

GCOM-C / SGLI L3 Chlorophyll-a concentration (V2) satellite data

I'm doing research on chlorophyll using GCOM-C / SGLI L3 Chlorophyll-a concentration (V2) satellite data. And I want to make two UI designs. First design I want to use Select to select the month that ...
1
vote
1answer
59 views

Using Vegetation Condition Index Function in Google Earth Engine JavaScript API

I created a code in Google Earth Engine to calculate monthly VCI. The official equation for VCI is the following: VCI = 100*(NDVI - NDVImin)/(NDVImax - NDVImin) My problem is that I don't know how to ...
0
votes
0answers
11 views

Computation Time Out in Complex Multi-Band Normalization of Sentinel 2 Image Composite

I am trying to implement Pseudo-Invariant Feature Normalization for Sentinel 2 image in 2015 based on the median composite acquired in 2019 (script can be found here). I once ran the script without an ...
1
vote
1answer
42 views

Converting image to shapefile using Google Earth Engine

I have performed a supervisioned classification to identify lakes in a study region. How can I transform a classification that are in Image to ShapeFile? The code that I wrote: var image = ee....
-1
votes
1answer
32 views

Reclassifying and vectorizing specifc classes in Google Earth Engine

My raster file has 29 classes and I applied 'Reclassify by table' in QGIS 3.16 to assign 1 to classes 15 and 24 only and all other classes were classified as 0. I applied the following script to ...
0
votes
0answers
26 views

Box plots in GEE

How to generate box plots for all bands individually as well as overall box plot for all bands in GEE using Javascript This is the link to my code https://code.earthengine.google.com/...
0
votes
1answer
29 views

Filtering user asset FeatureCollection by column containing date using Google Earth Engine

I am trying to filter imported AIS data (https://marinecadastre.gov/AIS/) by time, as ground truth for ship detection using SAR images. The imported CSV stores the date in a column ["BaseDateTime&...
1
vote
2answers
51 views

Google Earth Engine: “Parameter 'index' is required” error when mapping to an Image Collection

I am trying to apply a distance function to a collection of masked images, but am receiving a "Parameter 'index' is required" error. I've found answers for other "Parameter 'xyz' is ...
0
votes
0answers
28 views

Display table in .csv in GEE

I have calculated mean,mode,median of all bands of an image and I want to display the bandname (B1,B2...) and their respective mean, mode,median in .csv but, I am having an issue with how to display ...
1
vote
1answer
42 views

Display image statistics in .csv

In my code, I have displayed the statistics using hardcode i.e information is fed manually in a list and displayed. I would like to display all statistics correctly using for loop by iself ...
1
vote
0answers
29 views

Spectral signature of classified classes in Google Earth Engine

I wrote this code in Google Earth Engine to perform unsupervised classification. The code seems to work fine. I need to classify conifer trees specifically between all other land covers and I need ...
0
votes
0answers
23 views

Scale and Numpixel in Unsupervised classification in Google Earth Engine

I used the sample code available in GEE website for unsupervised classification of Landsat data and I changed it to use Sentinel 2 L2A data. var S2 = ee.ImageCollection("COPERNICUS/S2_SR"); ...
1
vote
1answer
24 views

Is it possible to map a list with 'set' method for getting directly a list, instead a matrix, avoiding for-loop use?

The use of for-loops is discouraged in Google Earth Engine because there is pointed out that the same results can be achieved using a map() operation with a specific function independently applied to ...
0
votes
0answers
22 views

Set axis in Google Earth Engine Chart

I'd like to compare LAI (Leaf Area Index) data from the same region over different times using ui.Chart.image.series in Google Earth Engine. I'm trying to set the axis to the same range, in order to ...
1
vote
0answers
14 views

Extracting MOD44B Percent Tree Cover 250mx250m tile data for 38 districts with polygons

I am working on Billion Tree Tsunami Project in Pakistan. I want to extract PTC data for each tile of 250mx250m with polygons. I have district-level polygons. I have run a code but it gives me ...
1
vote
0answers
32 views

Why simplify() returns unbounded polygon? Google Earth Engine

Why does simplify() return an unbounded geometry when the maxError parameter is above a certain threshold? I have a feature from RESOLVE ecoregions, when I specify maxError of 4 km it returns a nice ...
0
votes
1answer
40 views

Convert raster to vector using threshold values in an index - Landsat 8 SR

I'm looking to convert values between 4.45 and 10 in index FI into a vector polygon. I will be then be using this vector to clip my images prior to clustering. So the result must be clusters of L8 ...
0
votes
2answers
68 views

GEE: extracting ERA5 daily temperature and precipitation for different points

I'm struggling at finding a way to extract daily average temperatures and total precipitations for different points (an imported table as FeatureCollection), throughout a selected period of time (few ...
0
votes
0answers
32 views

Downloading JAXA/GPM_L3/GSMaP/v6/reanalysis" hourly product in Google Earth Engine

I want to download "JAXA/GPM_L3/GSMaP/v6/reanalysis" hourly product for a relatively large area approximately 300000 square km and for a long period of time, say 15 years, since this product ...
0
votes
1answer
79 views

How to run BFAST Monitor over a FeatureCollection in GEE

I am working with BFAST Monitor in Google Earth Engine, and I would like to run the algorithm over a FeatureCollection containing individual points of interest. Like this: var norway = ee....
1
vote
1answer
21 views

Filter by bound on Google Earth Engine not covering the whole of bound feature

I tried to filter Sentinel-2 image collection by bound, then I visualized the first in the collection after clipping to the bound feature. The problem is that the returned images does not cover the ...
0
votes
1answer
24 views

Normalizing Bands in All Images in Image Collection

I am trying to normalize the values in each band across images in the imageCollection I have filtered. I tried running this here var normalized_collection = l1c_collection .filterDate(start_scene1, ...
1
vote
1answer
36 views

How rename each band of an Image Collection that I created in GEE?

I input each image and band and, created an Image Collection in GEE. However, each band is as "b1" and I want to rename in order that I created the Image Collection respectively as b1,b2,b3 ...
0
votes
0answers
23 views

Google Earth Engine exported image with missing records in some bands

I've been exporting an ImageCollection (Sentinel-2 data) on Google Earth Engine by stacking the images with the toBands() function. Before, during image collection I've used a function to mask clouds ...
0
votes
1answer
36 views

Cannot map() reset system:index in GEE?

I noticed that I can't use map() to change the system:index of a FeatureCollection in GEE. I can change one system:index at a time. And I can use map() to edit other properties. Is there something ...

1
2 3 4 5 6