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
132 views

Error displaying/cleaning a binary image in Google Earth Engine (from Sentinel-2 imagery)

I'm working on classifying the 'active' part of rivers using Sentinel-2 imagery in GEE (including water and the unvegetated, exposed sediment around the edges of the river). The goal is to output a ...
2
votes
0answers
187 views

How to use a custom function inside GEE ee.Reducer?

I have generated a segmentation using SNIC on GEE and calculated some statistics/features for each segment using ee.Reducer, like mean, std, median, etc. I want to calculate more features based on my ...
0
votes
1answer
239 views

Google Earth Engine: How to Refresh a GEE App

I would like to reset a GEE App to its initial state. That includes removing the added Layers and geometries and clear the user entered values (textboxes,...). The App has a Map and Panel with some ...
1
vote
1answer
170 views

Download hourly relative humidity using GLDAS using Google Earth Engine

Does anyone know how I can download hourly GLDAS relative humidity (%) using Google Earth Engine? The only output that I am able to get is specific humidity at a specific location, and am having ...
1
vote
1answer
150 views

Google Earth Engine: Get a Geometry object based on user's drawing

In order to publish my code as a Google Earth Engine App, I need to interactively set the Area of Interest (AOI) of the analysis based on the users's drawing (Rectangle in this case). I'm trying to ...
3
votes
1answer
224 views

Google Earth Engine: Apply ee.Reducer to all image values

Background I would like to return percentile values for a multi-band image, using ee.Reducer.percentile(). For example, the image could look like this: var image = ee.ImageCollection('LANDSAT/LT05/...
-1
votes
1answer
106 views

Earth Engine dateslider for layers - app

I'm pretty new to GEE, but i've have a map with many layers. I want to make it possible to visualize the layers by a specific month/season over the years, when making an app. Is this possible? The ...
0
votes
1answer
164 views

Appending a table asset with ImageCollection pixel values for specific dates and coordinates in Earth Engine

In Earth Engine I have a table asset of coordinates and dates (properties `LAT', 'LONG', 'DATE') for which I would like to return a pixel value from my ImageCollection dswe_ic, which gives a monthly ...
0
votes
1answer
51 views

Unable to export Testing and Training data as TFRecord using Google Earth Engine

While trying to export training (about 700 points) and testing data (about 300 points) as TFRecord, I am getting the following error: User memory limit has exceeded The code I have written, is ...
1
vote
1answer
39 views

How to calculate area based on a certain value range in Google Earth Engine?

So I'm trying to calculate the area with certain color, which those colors are representing certain range of value. Here's the map var indon = ee.FeatureCollection('users/sdwijati/IDN_adm2') var ...
0
votes
1answer
226 views

GFS: Global Forecast System 384-Hour Predicted Atmosphere Data, making daily precipitation and temperature forests

I am trying to understand and use the "GFS: Global Forecast System 384-Hour Predicted Atmosphere Data". As I got it, the dataset consist of forest for coming 384 hours (16 day) in hourly and 3 hourly ...
1
vote
1answer
82 views

How to overlay a buffered layer to another layer in Google Earth Engine?

So i have this feature collection data, an .shp. I have buffered the polyline for a 20kms radii and tried to overlay (add) the buffered layer to another layer. but it can't be done. and anyway, I'm ...
1
vote
1answer
711 views

Convert list of number to list of strings in Google Earth Engine

Is it possible to convert a list of numbers to a list of string in Google Earth Engine? I'd like to take something that looks like this var lis = ee.List([27141, 20043]); and convert it to something ...
0
votes
0answers
25 views

Error generating chart: no features contain non-null values of “DispAlt” - Issue creating a chart in GEE

I'm trying to create a table in my Google Earth Engine project that populates data based on where the user selects with the cursor. I converted this code from an example in earth engine and adjusted ...
2
votes
1answer
383 views

Filter FeatureCollection with multiple values

Is it possible to use an equality filter for a FeatureCollection in GEE based on multiple values? I understand how to filter by one value: collectionName.filter(ee.Filter.eq('COLUMN','VALUE')); But ...
1
vote
1answer
56 views

Values for multiple locations and years in Earth Engine

I am using the TerraClim data in Earth Engine to obtain location and year specific temperature values. I have 12 districts and TerraClim has data from 1958 to 2015. For each district, I want to get ...
0
votes
1answer
44 views

How to set the minimal value of a layer to be displayed in google earth engine?

so i'm using OpenLandmap Sand Content and trying to show layer of an area only with average soil sand content above 50%; here's my attempt var areas = ee.FeatureCollection('users/sdwijati/...
0
votes
1answer
92 views

Why does extracting the values from climate data rasters to points take so much time in the Google Earth Engine (GEE)?

I have written a script in the Google Earth Engine to extract values from 5 images (all climate data) to a list of points which I have imported from a csv to a feature collection. In principle it ...
0
votes
1answer
358 views

Google Earth Engine, get a list of unique values in a list

I'm trying to figure out a way to get a list of unique values in a ee.List() object. For example: input=ee.List([1,1,1,4,4,5,6,6]) output=[1,4,5,6] I originally thought I could use the ee.List....
2
votes
1answer
308 views

Making seamless and consistent quality of Landsat image after cloud masking and mosaicking/ median composite in Google Earth Engine

I am trying to remove cloud and composite all Landsat 5 TOA images available in a given year and region into a composite of final image. However, I noted that the quality of final composite image is ...
1
vote
1answer
82 views

List for ui.Select from Modis land cover classes in Earth Engine

Previously, I have asked a question and received very valuable answers and useful solutions. But, still I could not get what I want. I really need support to solve the issue. I am still struggling on ...
1
vote
0answers
54 views

Replicate the Google Earth Engine satellite basemap for analysis in code editor

I need high resolution cloud-free raster imagery (<1m resolution) for Montana, USA. Visually inspecting the Google Earth Engine satellite basemap looks to be higher resolution than NAIP imagery (...
4
votes
2answers
251 views

getValue() from second order ui.Select in Google Earth Engine

I would like two make two ui.Select widgets. The items of second ui.Select depends on first ui.Select. Then I would like to get values of both ui.Selects using ui.Button. I have drafted a code, but it ...
0
votes
1answer
63 views

Filtering Sentinel 1 Imagery

I'm working with Sentinel 1 radar imagery. For some images in the collection in parentheses next to the angle band the is a percentage (see image) When I do some further steps in my analysis these ...
2
votes
2answers
84 views

List of land cover classes in particular area and use them as an item for ui.Select

I would like to identify the list of land cover classes in particular area and use them as an item for ui.Select. And I would like to use below given label for identified land cover values. I have ...
1
vote
1answer
77 views

List of years for ui.Select

I would like to list all image available years of image collection and use it as an item for ui.Select. I have tried to figure out a code for it, but it is not working. Is anyone can help me to ...
2
votes
1answer
46 views

Making ui.Select out of Feature Collection

I would like to make items/list for ui.Select out of Feature Collection. I have developed a code, but I am receiving an error: . var subset = borders.filter(ee.Filter.eq('GID_0', 'UZB')); var ...
0
votes
0answers
55 views

Getting the pixel area of the individual changes (Change Detection Map) in Google Earth Engine

I would like to get the change pixel area from the change detection map. As in bareland-waterbody, bareland-builtup, bareland-vegetation, vegetation-vegetation, vegetation-builtup, vegetation-...
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 ...
2
votes
1answer
281 views

Scale factor for EVI in Google Earth Engine

I'm new to GEE. I'm working on EVI data analysis. So this is my code for MODIS evi. I want to know how to multiply all the images there inside ImageCollection by scale factor 0.0001 to get real EVI ...
0
votes
1answer
50 views

Setting date in Earth Engine

I have a code to identify current date and its set to End_period. How can I set 60 days before the End_period to the Start_period? var End_period = ee.Date(new Date().getTime()) var Start_period = ...
-1
votes
1answer
183 views

Adding widgets to the Map in Earth Engine Java Api

In there a way to add ui.Chart, ui.Textbox, ui.Select and ui.Button to the Map in Earth Engine Java Api? I have tried Map.add(object), but it did not work.
2
votes
1answer
64 views

Filter and visualize in DataSlider only the dates when images available

I have a code which is calculating NDVI for Sentinel data and creating DateSlider for this image collection for selected study area. Is there a way to filter and visualize in DataSlider only the dates ...
0
votes
2answers
486 views

Exporting NDVI result data as a table using Earth Engine

How can I calculate and make NDVI result for each shapefile in one horizontal line in Excel? // var Akdarya = ee.FeatureCollection("users/xodjayevshovkat/Akdarya_GEE_35"); Map.centerObject(Akdarya) ...
-1
votes
1answer
185 views

How to get the percentage of each class/pixel area in Google Earth Engine

This is my script // Select the class from the classified image var bare5 = classified16.select('classification').eq(3); Map.addLayer(bare5); // Calculate the pixel area in square kilometer ...
0
votes
1answer
263 views

Earth Engine invalid band id when exporting multiband image

I am trying to export a multiband image to my assets using this code: var aoi= ee.Geometry.Rectangle([-1.2, 41.9, 2.8, 43.2]); // filter 1 Jan to 30 Jan var c = ee.ImageCollection("MODIS/006/MOD10A1"...
1
vote
1answer
419 views

Error Dictionary.get: Dictionary does not contain key: NDVI

I am trying export NDVI result to CSV file for 35 shapefiles farmers in Earth Engine. But it did not work. I tried find any solution from internet. How can I solve this problem? var Akdarya = ee....
0
votes
1answer
40 views

Summarize forest change by geometry, year

I am trying to calculate the forest change from the Hansen Global Forest Change dataset on Google Earth Engine. My end goal is a columnar output of forest change by year by county. I was able to ...
1
vote
1answer
404 views

Error when export NDVI result to CSV table Google Earth Engine and “collection” is not defined in this scope [closed]

var Akdarya = ee.FeatureCollection("users/xodjayevshovkat/kasbi_nishan_wuas"); //Define a geometry. Map.addLayer(Akdarya); // Make the geometry a feature collection. // Import S2 image collection. ...
1
vote
1answer
123 views

Removing the “Earth Engine Apps Experimental” logo

Is there a way to remove or hide the "Earth Engine Apps Experimental" logo found in published Earth Engine Apps?
3
votes
1answer
382 views

Aggregate multiple image class values into a single class (Earth Engine)

I have created 20 clusters from unsupervised classification of a specific region in Google Earth Engine. Now I want to reclass them. For example, let's say class values 10, 4, and 16 are forest, I ...
1
vote
1answer
170 views

Clearing the “Geometry Imports” and “Drawing” tools from the Map in Earth Engine

I am trying to remove the "Geometry Imports" and "Drawing" tools from the Map in Earth Engine. I have tried Map.drawingTools().clear(); But it did not work. I was not able to find any solution ...
0
votes
2answers
49 views

How can I clip/filter my .unmask() to only unmask within a region?

When I mask, all the masked pixels have no value. So I go to unmask, but it then assigns a value of 0 to every single pixel, including outside of my region. How can I only have the unmask work within ...
2
votes
1answer
534 views

Creating DateSlider for whole image collection in Earth Engine

I am need to create DateSlider for whole Sentinel-NDVI collection during given period. Is there any way to do so? https://developers.google.com/earth-engine/ui_widgets, here I found an example, but I ...
1
vote
1answer
652 views

Convert all the polygons of a FeatureCollection to editable polygons in GEE

I need to convert all the polygons of a FeatureCollection in editable polygons (like the polygons you can draw with the drawing tools) so I can modify each of their shape if needed. The polygons ...
1
vote
0answers
53 views

Calculating statistics for discrete regions in feature collection using Google Earth Engine

I am working on a script for calculating burn area statistics for multiple regions of interest using dNBR. The original script calculated burn area on a single region defined by a polygon and I've ...
-1
votes
1answer
43 views

Error generating chart: The image collection is empty

// Define a geometry. var geometry = ee.Geometry.MultiPolygon( [[[[-113.04179687499999, 42.7991879605782], [-113.04179687499999, 41.56178373305603], [-110.75664062499999, 41.56178373305603]...
-4
votes
1answer
59 views

Error in clipping data using Earh Engine

I am trying to clip data values equal to one and convert them to vector in earth engine. Anyone have advice on how to do this please? var Polygon = /* color: #d63000 */ /* displayProperties: ...
2
votes
1answer
325 views

Error generating chart: The image collection is empty in GEE

I am building a Landsat image collection time series and then trying to plot a time series of values for my region of interest by mean reduction. However, upon charting, I get an error message stating ...
0
votes
1answer
70 views

Reclassifying sub-property objects as properties in GEE

I am replicating the Hansen Global Forest Change tutorial from GEE to calculate annual forest loss by country in Africa. My code so far is: //Country shapefiles var countries = ee.FeatureCollection('...