Questions tagged [google-earth-engine]

Google's cloud computing platform for geospatial data & analysis at earthengine.google.com.

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

Extract multiple indices values to the Feature collection in Google Earth Engine and export it as CSV File

var data= L8TOA1.filterDate('2019-02-01', '2019-03-28') .filter(ee.Filter.equals('WRS_PATH', 146)) .filter(ee.Filter.eq('WRS_ROW', 40)) .sort('CLOUD_COVER')....
-2
votes
0answers
25 views

Last 24 hour rainfall data by GSMAP

I have this code that content a Collection of point. I want the last 24 hour rainfall data to monthly data for particular period of time and export by CSV that content the last date for each point. ...
1
vote
1answer
18 views

Converting Feature Collection of one element (consisting of Multipolygon geometries) into feature collection of many features

I took help from Converting Feature Collection of one element (Multi Point Geometry) into Feature Collection of different elements I tried the code suggested in the above question but i get the ...
1
vote
1answer
14 views

Export the values in featurecollection using Google Earth Engine

I want to export the values of NDVI and NDBI for the feature collection. var data= L8TOA1.filterDate('2019-02-01', '2019-03-28') .filter(ee.Filter.equals('WRS_PATH', 146)) ...
0
votes
0answers
15 views

Exporting a feature collection of feature collections?

I have a feature collection of feature collections. I want to loop through each feature collection and use the Export.table.toDrive() function, but I am unsure the best way to do this as my feature ...
0
votes
1answer
30 views

Error: “ee.ImageCollection(…).subtract is not a function” (Earth Engine)

When I execute this expression: var ETfraction = (Thot-LST)/(Thot-Tcold) // **pseudo code** I get an error: ee.ImageCollection(...).subtract is not a function Why does this not work? Here is my ...
0
votes
1answer
13 views

Read an external HTML file/website or call Web Service from Google Earth Engine using JavaScript

I need to call either an HTML page from the web based tool or be able to comunicate with a web service. I tried using the function XMLHttpRequest(). However, the console prints the error "...
1
vote
1answer
26 views

Mapping a collection to extract monthly surface calculations to a table

I'm totally new using GEE and Javascript. I'm trying to calculate a monthly based time series of a lagoon surface area. Besides, I want to export the results to a .csv or similar to compute some ...
1
vote
1answer
19 views

How to work with 20 m spatial resolution bands in Sentinel-2 Imagery Level2A GEE

I am using the following script to make a query of Sentinel-2 Imagery Level-2 with GEE code editor. // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // Finding images in the ...
0
votes
0answers
8 views

Calculate statistics of raster based on plygon borders in google earth engine

I have a script in GEE that takes shepfile (sometimes with two polygons), classify it to 3 different classes and create one new layer with those 3 classes. I want to calculte statistic for each ...
1
vote
1answer
16 views

Reducing a multi-band image and keeping the bands

I would like to calculate the area of all non-zero pixels on multiple bands of an image. My idea was to use var areaImage = image.multiply(ee.Image.pixelArea()); To do that I will need an image ...
0
votes
1answer
44 views

Perform calculations for each Polygon in a MultiPolygon object (Earth Engine) [closed]

I have layer that contains many polygons. I want to run calcuation for each polygon in the layer so for each polygon I have the mean and the std. deviation and from this I can run calculation for each ...
0
votes
1answer
14 views

Give a specific value to mask layer

I have code that creates 3 different layers using masking, each time other different pixels get mask and the others get 1 so the final result is 3 layers that are complemntary: My problem is that ...
1
vote
1answer
32 views

Water pixel detection in Landsat imagery using Google Earth Engine

I want to extract or detect water bodies in a selected region using the relationship between water and vegetation indices, and these water and vegetation indices were calculated by using the cloud and ...
1
vote
0answers
10 views

Google Earth Engine: Adding raster assets. How long can the ”Asset ingestion” take in Earth Engine after a successful upload?

I am trying to add a relatively large raster dataset (single band data, 8.05 GB GeoTiff, semi-global coverage) as an asset to Earth Engine through the web interface. The upload succeeded, but now ...
1
vote
1answer
17 views

“User memory limit exceeded” when selecting a single feature in a feature collection?

I have a feature collection of 18000+ polygons. I would like to get the pixel values of each pixel in every polygon that intersects Landsat imagery. The problem I am currently having is when I try to ...
1
vote
1answer
27 views

Unable to do Map.addLayer() for all images in an ImageCollection in GEE

I found this code Add/display all images of mycollection in google earth engine and tried it, but the output displays four layers each with one band called constant. Also, can you please tell me ...
0
votes
1answer
27 views

How do I visualize a raster based on its properties using Google Earth Engine?

I am trying to visualize the USDA soil map based on the taxonomy great groups. On the info page of the dataset, it seems as if this could be found in the properties. More specifically in grtgroup ...
1
vote
0answers
30 views

Calculating water occurrence of Sentinel-1 images in Google Earth Engine

I would like to derive the occurrence of surface water bodies from Sentinel-1 image collection in the Google Earth Engine.In my example I could already compute the water mask using Otsu’s method for ...
2
votes
1answer
32 views

Changing projection of Google Earth Engine code editor display

I would like to change the projection on the code editor display window from EPSG:3857 (maps Mercator) to something else like Lambert conformal conic. If this is not possible on code editor display ...
0
votes
0answers
14 views

Does Google Earth Engine have InSAR Processing Capabilities for Sentinel-1 data?

I am attempting to find an easier way to work with InSAR data (i.e. getting land movement data). I have worked with SARProz and SNAP in the past, but was recently made aware that GEE had Sentinel-1 ...
0
votes
0answers
12 views

Exporting large feature collections in Google Earth Engine? [closed]

I am working with a feature collection (a point shapefile I imported into my script) of about 12000 points. I am trying to extract pixel values for each point using Landsat 8. However, whenever I try ...
1
vote
1answer
32 views

Exporting Error 'Pattern 'VH' did not match any bands'?

I am trying to process a Sentinel 1 image to add layover and shadow masking. However when I do that and try and export the image to google drive I get an error: Error: Image.select: Pattern 'VH' did ...
1
vote
1answer
36 views

Error generating chart: Collection query aborted after accumulating over 5000 elements

I have problem with generating charts in GEE. I am trying to calculate NDVI for more than 100 Shapefiles (FeatureCollection) and export the results to a chart and CSV file. I got an error: Error ...
1
vote
1answer
29 views

Filter out “incomplete” Sentinel-2 images in Earth Engine

Sometimes when using Earth Engine I got an incomplete image, is there a way to get the full image? Example: The code that I am using is: var imageCollection = ee.ImageCollection("COPERNICUS/S2"); ...
1
vote
1answer
16 views

Sum of image values for three consecutive images in collection GEE

I have a collection of 457 images, where each image is the total precip in a month, 1981-present. I want to find the total precip in each quarter i.e. reduce three consecutive images by sum thereby ...
1
vote
1answer
31 views

Error regarding missing feature property when training/classify image in Earth Engine

I am trying to run a land cover classification in GEE. I have a csv file which I converted and exported as a shapefile in GEE. The problem is when I specify the column name containing the land use ...
3
votes
1answer
58 views

Getting population by country using Google Earth Engine

I was trying to get the population by country by using GEE. I tried the following code: // world population 2015 var pop = ee.Image("JRC/GHSL/P2016/POP_GPW_GLOBE_V1/2015"); print(pop); Map.addLayer(...
0
votes
1answer
28 views

Google Earth Engine: Difference in Area of Feature Collection when calculating using a reducer vs. when calculating using clipping

I am wondering why the two approaches to calculate the area of a feature collection return different results and which one is "correct"? I clip the feature collection on a white image and sum up over ...
0
votes
0answers
17 views

Accuracy classification in Google Earth Engine

I'm trying to perform a supervised classification of a composite image from a Sentinel-2 time series. I'm using cart as classifier and a set of points as trainers. Once computed the classification I'm ...
-2
votes
0answers
8 views

Masking clouds mapping function over an image collection of different Landsat images , plotting histogram of good pixel data using Google Earth Engine [duplicate]

want to combine all the Landsat images from 1985 up today in Google Earth Engine and I want to remove the cloud shadow and snow pixels by using the data quality layer from a cloud masking method ...
-1
votes
0answers
28 views

Masking clouds, mapping function over image collection of different Landsat images, plotting histogram of good pixel data using Google Earth Engine [closed]

I want to combine all the Landsat images from 1985 up today in Google Earth Engine and I want to remove the cloud shadow and snow pixels by using the data quality layer from a cloud masking method ...
1
vote
0answers
20 views

Image (Error) Image.constant: Invalid Image.constant type?

I'm trying to find actual evapotranspiration by use equation ETa = ETf*pet I import image collection of pet from IDAHO_EPSCOR/TERRACLIMATE for 3 years. When I multiply Etf with pet for finding ...
1
vote
1answer
33 views

Define compound classes by intersection of two raster images in Google Earth Engine

I am trying to create ecoregions by the intersections of soil classes and land cover classification. Ideally I would like to have something like "forest_Entisol" and "forest_Oxisol" or as well "...
1
vote
1answer
37 views

How to display a large series of images to the map with a for loop in Earth Engine

I need to view imagery from a collection as separate layers. Since I have to do this for several sites and the number of images in the collection therefore varies, I tried to apply a for loop to solve ...
0
votes
2answers
23 views

Accessing Google Earth Engine background default vector map for use in masking

The default background vector map of Google Earth Engine has a very accurate and detailed water classification. Much better than most other sources I have seen. Is it possible to access this ...
0
votes
1answer
25 views

Masking edges of S1 composite in Google Earth Engine

From the following code I would like to mask the edges of my sentinel 1 composites. @Daniel provided the code. var roi = Map.getBounds(true) var startDate = ee.Date('2015-01-01') var endDate = ee....
2
votes
1answer
18 views

Merging two ImageCollections to create a new index

I am currently trying to calculate the rain use efficiency index for the years 2000-2015 with a Landsat dataset (NDVI) and a CHIRPS (precipitation) dataset. I already have two image collections ...
2
votes
1answer
20 views

Display of image in GEE (Sentinel-2) does not display the masked values using SCL band

The code below aimed (aims) to add the images of a Sentinel-2 Collection (S2_SR), after performing the addition of a NDVI band per image, and a cloud masking using the Scene Classification Layer which ...
-1
votes
0answers
17 views

Google Earth Engine chart error: No features contain non-null values of “year” Code error [duplicate]

I'm trying to plot a chart from a collection I have created. While the data from this collection maps fine, I can't seem to produce a chart for it. // Import the selected country boundary var ...
2
votes
1answer
20 views

Google Earth Engine chart error: No features contain non-null values of “year” [closed]

I'm trying to plot a chart from a collection I have created. While the data from this collection maps fine, I can't seem to produce a chart for it. Here is the code: var l5_coll = ee.ImageCollection('...
0
votes
1answer
47 views

Creating a map layer to visualize regions of high values in two bands (variables) using Google Earth Engine

I'm trying to create a map layer to show spots where both "chlor_a" and "sst" variables from MODIS data show high values using Google Earth Engine I've used this code below, but instead of the ...
1
vote
0answers
24 views

Import image to QGIS using GEE plugin

I have download today the Google Earth engine plugin to QGIS using this: https://gee-community.github.io/qgis-earthengine-plugin/ I have tried to upload the image as shown in the example : I have ...
-1
votes
0answers
17 views

Changing username in Google Earth Engine

Does anyone know if it is possible to change the user name in Google Earth Engine? I found some questions like this one, but without an answer.
0
votes
1answer
30 views

Rasterize vector based on list values in Google Earth Engine

I would like to convert polygon (as featurecollection) that has the attribute 'Name' which contains string value of plantation types, namely 'Rubber', 'Mango', 'Coffee'. However, the .reduceToImage ...
-1
votes
0answers
20 views

How to create a legend for indices in google earth engine [closed]

I want to visualize the NDBI image in different color palettes along with its value in legend like the image I uploaded ![][Classified NDBI image using ArcGIS ]
0
votes
1answer
87 views

Frustrated with vertical stripe in the Landsat 8 data

https://code.earthengine.google.com/99555397aad6f9b0089b0c717fadbc08 var ROI = /* color: #98ff00 */ /* shown: false */ /* displayProperties: [ { "type": "rectangle" } ...
0
votes
0answers
15 views

Loading bands from Sentinel 2 or Landat 8 into tif file uploaded into Google Earth Engine [closed]

I have a tif that is uploaded in GEE as an Asset, and I want to know if it is possible to sume bands from landsat 2 or sentinel 8 to it. For example add the infrared band and the download the tif with ...
0
votes
1answer
26 views

Applying ee.Reducer to get mean values for polygons for each year in a time series

I am looking at the soil moisture levels across districts in India between the years 2000-2019 using Google Earth Engine. I have been trying to use reduceRegions to get an individual mean value of ...
0
votes
0answers
16 views

Exported GEE one band raster shows three bands in ArcGIS

I made a raster layer on google earth engine that only contain pixels have value higher than SAVI mean+1SD. I exported the raster layer as GeoTIFF and specified the raster as green colour. When I ...