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

JavaScript client library for calling the Google Earth Engine API.

Filter by
Sorted by
Tagged with
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 ...
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
47 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
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 ...
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 ...
1
vote
1answer
48 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? ...
5
votes
1answer
44 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. ...
0
votes
1answer
21 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
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 ...
0
votes
1answer
42 views

Clipping ROI in TerraClimate - Google Earth Engine

I am trying to analyze a polygon that I imported from Google Earth and get images for that polygon only. How can I do that? I tried clipping the area but it doesn't seem to work. Any ideas? // Load ...
-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=...
0
votes
1answer
126 views

Building model for extraction of urban features on Google Earth Engine

I'm trying to build a model for extraction of urban features on Google Earth Engine, I've calculated NDVI & NDBI and subtracted them to get the built-up area but I'm unable to display it on the ...
1
vote
2answers
94 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
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 ...
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 ...
0
votes
1answer
109 views

Normalization of stack of features in Google Earth Engine (GEE)

How to normalize a stack of features in the google earth engine? Features are the image type you can see the Javascript code here. I'm going to normalize features between 0,1 values. Can you provide ...
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('...
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 ...
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 ...
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 ...
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 ...
3
votes
2answers
2k views

Summing of individual image's statistic over ImageCollection Google Earth Engine

I have an ImageCollection containing FIRMS fire image in 2014. I want to count the number of fires in the year for a predefined region. I can find a way to count the number of fires for an individual ...
-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 ...
2
votes
2answers
3k views

Filter Image Collection by Multiple WRS Path/Rows using Google Earth Engine JavaScript API

How can I filter an image collection in Google Earth Engine by multiple WRS paths/rows? This is an example of a filter using one path.row: var sr2011 = ee.ImageCollection('LANDSAT/LT5_SR') ....
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 ...
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
1answer
121 views

Dissolving overlapping polygons in Google Earth Engine

I have a series of buffers stored in a feature collection. Some but not all of the buffer polygons overlap. I need to dissolve the polygons in a way that Google Earth Engine still recognizes each as a ...
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
1answer
97 views

Obtaining land surface temperature in Google Earth Engine using GEET and TOA error is showing

I am very new to using GEE and only using for one unit I'm currently doing (only using for two months and I have no coding experience). I am trying to calculate the land surface temperature estimate ...
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
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
0answers
127 views

Timestamp video/time-series in Google Earth Engine

I successfully managed to output a video time-series of processed Sentinel 1 SAR images in GEE for my areas and dates of interest by adapting an existing script. However, I've not been able to ...
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
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('...
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
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
0answers
16 views

Getting the imageID within a set of images (imageCollection) using the targeted coordinate

I am trying to download a high solution satellite image of a targeted area (roughly 30m * 30m) with (-80.562459, 43.470784) as the center. This is my approach. I am accessing the skysat dataset: https:...
4
votes
1answer
217 views

Run LandTrendr algorithm on a collection of points/pixels in Earth Engine

Regarding the LandTrendr algorithm in Earth Engine... I have prepared an input image collection and can successfully get a result from the algorithm (no errors), but how can I extract segmentation ...
0
votes
0answers
52 views

LandTrendr forest loss detection and area calculation

I have to calculate the area of the annual forest loss for a polygon with LandTrendr. Since individual pixels can have several forest loss events over a period of 35 years (e.g. 1995 and 2013), I am ...
-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
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 ...
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
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
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
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 ...
0
votes
1answer
52 views

How to add reclassified layer to another layer in Google Earth Engine

Ok so let's just jump right to the script var indon = ee.FeatureCollection('users/sdwijati/IDN_adm2') var Sesar = ee.FeatureCollection('users/sdwijati/Sulawesi_sesar') var nama_prov = ['...

1
2 3 4 5 6