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
0answers
16 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
31 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
32 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
32 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
23 views

Is it possible to use the IntelliSense feature to write my GEE scripts in VS Code? [closed]

I tried to follow the steps given in this tutorial but it didn't work the way I thought it would. Is it possible to type ee. in VS Code and see the functions available? My goal is just to write the ...
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
37 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
30 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
14 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
32 views

Error importing table data (shapefile) GEE [closed]

I was working yesterday on clipping image data by a shapefile I uploaded. Today, however , the importing function has ceased to function. If I try to directly use the shapefile data. var studyarea = ...
0
votes
1answer
22 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
27 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
38 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
28 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
22 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
22 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
16 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
13 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
26 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
35 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
48 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
1answer
51 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
19 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
21 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
30 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
22 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
28 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
vote
1answer
15 views

Multiple reduceRegions for time series in GEE js

I want to gather time series data (mean band values) from MODIS for multiple regions, but I want to filter the data so that I exclude images with low numbers of pixels in my regions. Below is the code ...
0
votes
1answer
41 views

Calculate the area of NDVI values above 0.2 in Google Earth Engine

I am new to GEE and Javascript. I was looking for a solution to calculate the area of NDVI values above 0.2 from the years 1989 and 2018, and quantify vegetation loss. Is this possible? I have pasted ...
0
votes
0answers
16 views

Time Series of mean using Google Earth Engine

I've written a function that extracts the NDVI time series for a point geometry, but I would like instead for the time-series to follow the mean of a region over time. How would I do that? var ...
1
vote
0answers
26 views

GEE: How to iterate through a feature collection to calculate annual average indices from MODIS for each feature

I am trying to calculate the average annual vegetation condition index from MODIS data for a set of raions (districts) for spring months (march, april and may). I am wanting to export this data to a ...
1
vote
1answer
50 views

Joining wind speed and wind direction using Google Earth Engine

I have successfully exported wind speed to a csv file, and am trying to add wind direction. I know my wind direction calculation works and I can see it when printing ERA5total. If I understand ...
0
votes
1answer
22 views

Error in passing 'system:index' values from L8_TOA collection to filter L8_SR collection

I'm new to Google Earth Engine and just starting to learn the tricks. I'm trying to pass 'system:index' values I retrieved from filtering Landsat 8 TOA collection to extract the same images from ...
1
vote
1answer
24 views

Receiving two different values for same date for Landsat B8 using Google Earth Engine

I am extracting values of the B8 of Landsat8 in Google Earth Engine and for several month I receive two very different values for the same date and cannot find the issue. How can I handle this? My ...
3
votes
1answer
84 views

Creating random Image in Google Earth Engine

The final input of my work will be quintile ee.Image objects. To test my display I would like to create an ee.Image with the value in each pixel set randomly in [1, 5] (only integer). I have already ...
0
votes
1answer
21 views

Filter negative SO2 image collection in GEE

I'm collecting Sentinel-5p tropospheric SO2 column data. I want to remove negative SO2 band values from my collection. How do I achieve this? Here is my code: // define a 'collection' of images var ...
0
votes
0answers
37 views

Reduce regions on projected (equal-area) data in Google Earth Engine

I am working with a global raster of soil carbon and a feature collection of ecosystems. I would like to average the carbon in each ecosystem using ReduceRegions in Google Earth Engine, but I need to ...
0
votes
0answers
50 views

Searching/adding temperature values to CSV file with locations and dates in Google Earth Engine

I am brand new to GEE and JavaScript. My goal: To add a column in a CSV file with locations and dates with corresponding temperatures My problem: I am inexperienced with coding and have no history ...
2
votes
0answers
18 views

Dimension Difference preventing plot of series

I have performed linear regression between the 'ro','pr' series (runoff,precipitation) and printed the chart. I want to print the linear fit on top of it and get the R**2 value, but dimensionality ...
3
votes
1answer
48 views

Wrong result while extracting NDVI in Google Earth Engine

I have here a FeatureCollection containing some productive forests of the company I work for. The age in month for each forest site is important to me, since my study only looks for forests that are ...
0
votes
0answers
23 views

Date column changes when I upload a shapefile with this column type to Google Earth Engine

I have a FeatureCollection in my Assets in Google Earth Engine, which is the result of uploading some shapefile containing some productive areas from the company I work for. When I import this ...
0
votes
1answer
38 views

How can I extract each value of a column from a Feature Collection and append it to a new list in Google Earth Engine?

I want to map a function over a Feature Collection to extract some column values and turn it into a list. I do know how to map a function over collections, but I'm new with Google Earth Engine and I ...
0
votes
1answer
49 views

How can I extract only Polygons from Google Earth Engine's Feature Collection?

I have here a shapefile which contains some limits of productive areas from the company I work for. When I open it with ArcMap it seems there are only polygons, and indeed the source tab from layer ...
0
votes
0answers
49 views

Receiving Albedo values from Landsat with Google Earth Engine

I am new to Google Earth Engine. I would like to extract the Albedo for certain areas of Greenland. I am doing it with MODIS as well as Landsat and was wondering the following about Landsat: I found ...
1
vote
0answers
36 views

Getting maximum value of a cumulativeCost Image in Earth Engine

I'm trying to get the max value of a generated cumulativeCost Image in Earth Engine, via the Python API. I thought reduceRegion should work, but it dies. My relevant code: malawi = ee....
0
votes
0answers
32 views

Calculating adjacent temporal days (ATD) by iteration using Google Earth Engine

I need to make a classification to eliminate the snow cover, for this we are following the ATD method of Gafurov, in which we observe 1 day before and 2 days after on a given pixel or vice versa, in ...
1
vote
1answer
34 views

Creating permanent tile URL in Google Earth Engine

Is there a way to create a permanent tile server URL for an image? Earlier I had used ee.Image.getMap() to get a URL like - https://earthengine.googleapis.com/v1alpha/projects/planet-webapp/maps/...
0
votes
1answer
48 views

Count number of days by year and by month where temperature fall below 0 celcius degree

I want to generate raster for each month , where the value of the pixel refers to the number of days per month and per year where temperature fall under 0 degree celsius. In this example the year ...
2
votes
1answer
56 views

Google Earth Engine: Calculate milliseconds since epoch from datetime of uploaded shapefile?

I want to get the milliseconds since epoch of thousands of points, each with different timestamps. Here is what I believe I need to do, but my Google Earth Engine knowledge is limited and I can't find ...

1
2 3 4 5 6