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

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

How to show latitude and longitude in selected Geometry in Google Earth Engine

I want to display the selected boundary with Latitude and Longitude. Please guide me on how to I can do this. here is my code: /////////////////////////////////////////////////////Bergamo var ...
0
votes
0answers
7 views

Alerts in Earth Engine app not appearing when embedded in a Google Sites website

I have published a script in the Earth Engine javascript editor as a GEE app. Included in the code are several alerts to guide users as they interact with the app. The way the app is designed, a user ...
-1
votes
0answers
18 views

How to apply CDDC algorithm in Google Earth engine?

I find that the API of the CDDC change monitoring algorithm is already on Gee, but I don't know how to apply them well.Ee. Algorithms. TemporalSegmentation. Ccdc () what's the result of the final ...
0
votes
1answer
19 views

Difference between reduce(ee.Reducer.mean()) and mean() for ImageCollection in GEE

I am working with S5P data for NO2. I have an image collection and want to obtain the mean NO2 for specified filters. The following code is from the documentation. var collection = ee.ImageCollection('...
-3
votes
0answers
37 views

Learning Google Earth Engine [closed]

I am little bit familiar with GEE. I want to improve my knowledge and coding, for that can you recommend me where I can start learning from beginning.
0
votes
2answers
20 views

Difference between ImageCollection and FeatureCollection

I wanted to know the difference between FeatureCollection and ImageCollection in Google Earth Engine. The documentation does not mention the difference, it just says that many methods such as maps, ...
0
votes
1answer
30 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 = ['...
0
votes
0answers
24 views

Problems in Supervised classification in Google Earth Engine

I am doing supervised classification using landsat imagery with help of different surface reflectance indices. The result obtained after classification is full of gaps. I am unable to find the reason ...
0
votes
0answers
36 views

Error: Computation timed out, EE memory exceeded in reduce region.flatten()

I am trying to run a fairly in-depth script that reduces various environmental covariates to HUC12-level polygons and exports the information to a csv file. My script gets an Earth Engine capacity ...
0
votes
1answer
36 views

Easier Way to Record Yearly Mean NDVI

For my Google Earth Engine project, I am finding the mean NDVI for each year between 2000 and 2020 in protected areas a part of the World Database on Protected Areas (WDPA). As an example, I have ...
1
vote
1answer
43 views

Error: Pixel type not supported in Google earth engine

var collection = ee.ImageCollection('MODIS/006/MYD13A1').select('NDVI'); // Define reference conditions from the first 10 years of data. var reference = collection.filterDate('2001-01-01', '2010-12-...
0
votes
1answer
30 views

Exporting terrain (elevation) raster data and output is not specified pixel size using Google Earth Engine

I am new to Google Earth Engine, and this is likely a simple solution, but I cannot seem to figure it out. I am using Google Earth Engine to export a 30m elevation raster tiff file bounded by my area ...
1
vote
1answer
26 views

Does GEE sampleRegions() include pixels along polygon perimeter?

Does anyone know if GEE sampleRegions() includes pixels that are on the edge of the polygon? I want to train a classifier with polygons, and want the classifier only to look at pixels that are ...
1
vote
1answer
38 views

Export Image with attribute table in Google Earth Engine

I am quite new to Google Earth Engine. I am trying to export a VIIRS night-time light image with an attribute table attached (displaying the mean, median etc) which is also clipped to India (I am ...
0
votes
1answer
32 views

Extract geometry from feature not working?

This works: (with geometry being a Polygon and sent3 an ImageCollection): var image = sent3.filterBounds(roi).first(); var mask = image.select("Oa07_radiance").mask().rename('mask'); var ...
0
votes
1answer
48 views

Error in supervised classification output (Earth Engine)

I have a problem in the supervised classification output. The classification itself is giving any problem, but when I try to print or display the image I obtain this error: Image (Error) Unable ...
0
votes
1answer
43 views

Daily mosaic in Sentinel 2

I'm following the answer on Filter out "incomplete" Sentinel-2 images in Earth Engine to make daily mosaics of Sentinel 2 images. However, I was expecting that the resulting imageCollection ...
1
vote
0answers
49 views

Downloading black TIFF files

I have been downloading Sentinel2 and Sentinel3 images for Convolutional nerual networks but I keep getting black TIFF files. Can you check my code? I have been using the GEETOOLS by fitoprincipe, ...
0
votes
1answer
42 views

Remove parts of layer using another image layer

I need to obtain the flood water extent during a flood. I carried out a supervised classification and obtained the flood water extend, but I need to remove the part where water is everyday present (...
0
votes
1answer
24 views

Problems with Earth Engine own function output

I'm working on a script in which I need to introduce multipolygons (using ee.Geometry.MultiPolygon). To compute the coordinates of each polygon I use another code and then copy and paste the ...
0
votes
1answer
31 views

Access to Earth Engine Functions

I need to access to the function ee.classifier.cart to understand all the passages of the codes and possibly to modify it for my purposes. Is there any way or I need to be an Earth Engine Developer?
0
votes
1answer
32 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 ...
1
vote
0answers
30 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
47 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
33 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
25 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
43 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
30 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
43 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
29 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
32 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
60 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
35 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 ...
0
votes
1answer
52 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
16 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 ...
0
votes
1answer
29 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
23 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
31 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
36 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
66 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....
1
vote
1answer
93 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
36 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
26 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 (...
3
votes
2answers
87 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
36 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
64 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
37 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 ...
0
votes
0answers
28 views

Getting the pixel area of the individual changes from the Change Detection Map in Google Earth Engine?

Please, I would like to get the individual pixel area from the Change Detection Map. Below is the Change Detection Map but i can't get the values. I get the same values for all the areas every time i ...
2
votes
1answer
35 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
30 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-...