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

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

Calculating Annual Mean NDVI for set of features using Google Earth Engine

I'm trying to calculate the annual mean NDVI for a set of polygons that are stored in a table in GEE. I want the annual mean for a series of years to be added to the table as new fields. I have the ...
0
votes
0answers
18 views

Error generating chart: No features contain non-null values of “system:time_start” Create NO2 chart with unit ton/m2 in GEE Sentinel-5p

I'm using the below code to create NO2(Sentinel-5p) time series charts for my region of interest by mean reduction. However, upon charting, I get an error message Error generating chart: No features ...
1
vote
1answer
18 views

Split GEE FeatureCollection according to latitude

I have an ee.FeatureCollection with points across the globe. As a pre-processing step, I need to split it according to whether the points are in the Northern or Southern hemisphere. Conceptually it's ...
3
votes
1answer
39 views

Exporting time series data of multipoints in Google Earth Engine

I have created three points of land surface temperature. I want to export the time series result in three different variable names. // Import country boundaries feature collection. var dataset = ee....
1
vote
0answers
20 views

Printing the values on the trendline in the time series chart to the console at GEE

How can I print the values above the trendline in the time series chart to the console? For example, I want to print the first and last number on the trendline to the console. Code Link: https://code....
-4
votes
0answers
19 views

JavaScript selection problem [closed]

In Google Earth Engine, when I select apart of code it seems the cursor isn't at the right position and it will select another part. How can I fix this?
0
votes
1answer
38 views

Display and label a stack of Sentinel 1 images with the date [closed]

I have a stack of Sentinel 1 images and I want to display all of them one by one and want the label to be the date of corresponding image. I am trying a for loop for that but I am unable to visualize ...
1
vote
0answers
14 views

Ingesting Project Assets With Service Account Via Manifest (NodeJs)

I'm using a service account to connect to Earth Engine API and attempting to ingest some assets from Google cloud Storage using a manifest: uploadManifest: any = { id: `project/martynsproject/...
1
vote
1answer
24 views

How can I automatically deselect a mapped layer in Google Earth Engine?

I am currently mapping land cover changes between two years, e.g. 2001 and 2010. The code I am writing adds the Land Cover layers to the map for both years, so a map of 2001 and one of 2010. Then, I ...
0
votes
0answers
28 views

NDVI mask Error “image.normalizedDifference is not a function”

I'm new in Google Earth Engine and want to mask NVDI but get an error. How can I solve the problem? This is my code: Link
0
votes
0answers
20 views

Why the scale of an image generated from the linear regression is not same as its inputs in Earth Engine?

Here is a sample example from developers guide, https://developers.google.com/earth-engine/guides/reducers_regression // This function adds a time band to the image. var createTimeBand = function(...
0
votes
1answer
50 views

Seeking ee.Classifier.smileRandomForest() explanation

What is the meaning of "10" in this code below? I've been searching for it for a long time and I have no idea what it's actually about.
0
votes
1answer
31 views

Extracting Geometry Coordinate from a feature

I am using Google Earth Engine, I have a FeatureCollection in which I extract a single Linestring into a "Feature" item. (JSON output is included below) I can extract any items from the &...
0
votes
0answers
14 views

Reproject and set central meridian and standard parallel in Google Earth Engine

I am creating a time-lapse video of Sentinel-1 imagery. In order to compare it well with some other images I have, I want the projection to be in Antarctic Stereogrpahic (EPSG:3031) and I want the ...
0
votes
0answers
23 views

Retraining a classifier with training data from different images

I am in the process of conducting a multitemporal image classification in Earth Engine using training data from specific images within an ImageCollection. So far, I was able to classify an image from ...
0
votes
0answers
27 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 ...
0
votes
1answer
19 views

How to let user upload a raster in google earth engine

I'm working on a Google Earth Engine app where we would like to allow the end user to upload a raster file for use in the calculations. Is there a good way to do this? We already know that a user can ...
-1
votes
1answer
33 views

Image (Error): property 'x' of feature 'y' is missing

I'm looking for a way to import many points (including lat/long) from the .csv file below and apply it to my code for supervised classification and hence using Kappa index for testing accuracy. I ...
0
votes
0answers
29 views

Can't convert a computed Geometry to GeoJSON. Use evaluate() instead

This is my code, and it generates this error. I'm wondering how to fix it. Can't convert a computed Geometry to GeoJSON. Use evaluate() instead. in createNDVIComposite(), line 30 in <global&...
0
votes
0answers
14 views

Unable to export time lapse video in GEE because of bit size of satellite imagery

I am trying to create a time lapse video in Google Earth Engine code editor of the Arikaree glacier in CO with the following code: .filter(ee.Filter.eq('WRS_PATH', 34)) .filter(ee.Filter.eq('...
0
votes
0answers
20 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 ...
0
votes
0answers
15 views

GEE slope: Tile error: Reprojection output too large (29005x28882 pixels)

I am trying to do linear regression between sentinel-1 SAR backscatter and NASA SMAP soil mositure, here are a couple of doubts i have regarding my code SAR nominal resolution is 10m and SMAP is ...
0
votes
0answers
25 views

GEE problem in clipping image to many features and exporting the resultant images individually per feature

I have a set of point data. I convert them to polygons by using a fixed distance buffer for each point. I add a unique feature Id for each polygon feature. I then clip an image to each of the square, ...
0
votes
1answer
54 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 ...
0
votes
0answers
39 views

Replace Image in ImageCollection

I'm trying to create monthly composites of 2019 sentinel 2 imagery. For most areas this works fine; however, in areas where there are few images or they are cloudy and therefore masked I end up with ...
2
votes
1answer
57 views

Copying reduceRegion() results to featureCollection properties

I'm calculating a time series for a 7-year period over a grid tessellation AOI. My goal is to have a CSV of zonal statistics for all features in a feature collection from 3 different bands in an image ...
0
votes
1answer
48 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
0answers
18 views

Sum of classes from ee.Reducer.frequencyHistogram() not matching ee.Reducer.sum() in Earth Engine

When I calculate the frequencies of each of my classes in a supervised classification I made the sums of these classes so not equal the number provided with the ee.Reducer.sum() value. Why is this? //...
0
votes
1answer
15 views

Error in visualising MDPI band

I am trying to stack a 3 band image (2 NDVI bands and 1 MDPI band). There is some error when I am trying to visualise the MDPI band (which is appearing as masked in the Inspector) and hence the ...
1
vote
1answer
45 views

Random sampling of classification in Google Earth Engine

I have been working on a supervised classification and am now trying to place random points to do an accuracy assessment. To do this I am needing to convert each class in my classification to its own ...
0
votes
1answer
34 views

What does “slope.lt(5)” do in Google Earth Engine?

Can someone explain what ".lt" is in the code below, and how it works? var hydrosheds = ee.Image('WWF/HydroSHEDS/03VFDEM'); var terrain = ee.Algorithms.Terrain(hydrosheds); var slope = ...
0
votes
1answer
32 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
1answer
40 views

Listing Unique Pixel Values From Raster in Google Earth Engine

I'm having an issue with what I hope is a rather simple task. I have a raster of worldwide extent and I simply want a list of the unique pixel values in a given band. Example: //load in fire data from ...
1
vote
1answer
56 views

Why is the ui.Thumbnail not generated?

I am generating a image consisting of 3 bands and would like to generate a thumbnail from it. Unfortunately the thumbnail is not displayed, only a placeholder is shown. My script is the following (...
0
votes
0answers
19 views

Displaying of bands for multiple datasets in Google Earth Engine

I am classifying landsat 8 and sentinel 1 in google earth engine but the console tells me i do not have the required bands for classification even after assigning all the bands. Please find attached a ...
1
vote
1answer
54 views

Setting value, key pair in Dictionary using Google Earth Engine JavaScript API

A simple script in the Google Earth Engine code editor, var dict = ee.Dictionary(); dict.set('num', 10); print(dict); gives Object (0 properties) as the output even when i do print(dict.keys()) or ...
0
votes
1answer
23 views

Exporting several images from same collection in one task using Google Earth Engine

I need to export several images (around 60) using Google Earth Engine. They are from the same collection and for the same geometry, but have different dates. I already have a list of the dates I need, ...
1
vote
1answer
48 views

Creating condition for mosaicing images in Google Earth Engine JavaScript API

I am trying to create a mosaic of a several classified images using as criteria that every pixel has to be the same class at least for three images. A similar process can be done using the .min() or ....
2
votes
1answer
41 views

Converting an annual Image Collection into a multiband image in Google Earth Engine

I have an image collection with 35 years of imagery. Each image in the collection represents a measure of annual NDVI for each year from 1985 to 2019. I want to take this image collection and create a ...
0
votes
1answer
44 views

GEE filter image to month before specified date

I am using a for loop in GEE to loop over several years of data adding bands to an image (MODIS fire data). I am currently adding a band for the mean NDVI in the month the fire occurred and the ...
0
votes
0answers
73 views

Image collection filtering doesn't work in JavaScript client library Google Earth Engine

I am trying to create a beautiful and intuitive interface for working with Google Earth Engine. In the process, I needed to filter the collection of satellite images. I get an error when calling any ...
0
votes
0answers
21 views

GEE Verdet (Temporal Segmentation Algo) Failure

I'm struggling to get the Verdet Temporal Segmentaion Algorithm to run (https://developers.google.com/earth-engine/apidocs/ee-algorithms-temporalsegmentation-verdet). I get vague "Internal Server ...
1
vote
1answer
31 views

Error in map(ID=0) — Cannot Interpret <Image> as a date

I am refactoring code from the Javascript API to the Python API to aid in exporting. The following code works in the Javascript API: var banded_images = ee.ImageCollection(ee_dates.map(...
0
votes
1answer
29 views

Nested functions in EE python API

I am trying to divide a feature collection into a mosaic of different cells in order to aid with exporting over a large area. I found the following script which is mentioned in this stack overflow ...
0
votes
0answers
16 views

I'm trying to calculate and export the static of an image (error:Unknown element type provided)

var imagem =ee.ImageCollection("LANDSAT/LC08/C01/T1_RT_TOA") imagem=imagem.filterBounds(region) .filterDate ( '2019-01-01' , '2019-12-31' ) .map(...
1
vote
1answer
61 views

Creating UI download button in Google Earth Engine APP

I want to create a button that download images without clicking the RUN button on the task tab. I want to do this for a GEE App, where is no possible for the user to go to the task tab and click Run. ...
0
votes
0answers
9 views

.toList return differences from the code panel and JavaScript API

Is it possible to remove the user's login requirement and use API only (on row 161 https://pastebin.com/VDmtjdJF)? When I use print in the panel code, the object returns in json, however when I try ...
1
vote
0answers
38 views

How to find the image ID participating in the mosaicing in Google Earth Engine

I want to find the image ID participating in the mosaicing, here is my mosaic process. Just the partial images appearing in the mosaicing result, not all those meet the filter conditions. The color ...
1
vote
1answer
49 views

Error generating chart: String: Unable to convert object to string

When I try to generate chart by region, I get following error: Error generating chart: String: Unable to convert object to string. How can I revise my code to remove this error? var image = ee.Image('...
0
votes
0answers
11 views

Time indexing image collections in GEE

I've been trying to list a ee.ImageCollection() in GEE but by using time indexing and I came up with this solution: var geometry = ee.Geometry.Polygon([[-86.036445612425396, 11.175779794553685 ], ...