Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

1
vote
1answer
9 views

How to select all points of a polygon in google earth engine as a single feature?

IMPORTS: var geometry = /* color: #d63000 */ee.Geometry.Polygon( [[[-67.76435852050781, -22.213792811479802], [-67.76641845703125, -22.220785143658368], [-67.75646209716797, -22....
0
votes
0answers
10 views

Google Earth Engine interpolate produces strange results

I am trying to interpolate to increase the resolution of an image, but the results are not what I expected. I can't figure out what I am doing wrong. var ols1 = ee.ImageCollection("NOAA/DMSP-OLS/...
1
vote
1answer
27 views

Landsat 8 BQA - using cloud confidence to create a cloud mask

I want to use the Landsat BQA (TOA images) to create a cloud mask in GEE. In particular I want to mask out all areas where there is high confidence that cloud cover is present. I have tried to adapt ...
1
vote
1answer
13 views

Reducing monthly averaged MODIS data over several ROIs

I want to create monthly averages for the MODIS Land Surface Temperature (LST) product for several ROIs. I am able to create an image collection containing the monthly averaged MODIS data, but I have ...
0
votes
1answer
15 views

Earth engine error: Error: Invalid argument: 'image' must be of type Image

I'm trying export an image for some SST temperatures for a given region ( and imported table EEZ) but I'm getting the error; "Error: Invalid argument: 'image' must be of type Image." Map.addLayer(EEZ,...
0
votes
0answers
9 views

Implementing travel cost equation in Google Earth Engine with image math?

As a follow up to How can I estimate a Least Cost Path in Google Earth Engine?, I am still trying to estimate walking time in Google Earth Engine based on a slope-based cost equation using the ...
0
votes
0answers
22 views

Getting long time-series monthly NDVI from Landsat data using Google Earth Engine?

I want to get monthly NDVI on Sabah(Malaysia) from Landsat dataset from 1984 to 2014. I found a code example on the website and changed some details for my goal. However, the Earth Engine always gives:...
0
votes
0answers
22 views

GEE exports black image

After performing supervised classification and getting classification map of an ROI, I am trying to export this classification map to GoogleDrive using this code: Export.image.toDrive({ image: ...
0
votes
0answers
16 views

Google Earth Engine - MODIS Aqua Surface Reflectance Chlorophyll-a Retrieval [on hold]

I am new to Google Earth Engine and I would like to perform atmospheric correction for the MYD09GA AQUA Daily Surface Reflectance dataset. I have done some basic GIS processing such as clipping to my ...
1
vote
1answer
40 views

Earth Engine memory capacity exceeded

I want to generate time-series MODIS images of a small area (10x10km) via Google Earth Engine from 2000 to 2017. I generate the clipped image collection easily and then export each image individually ...
0
votes
1answer
35 views

Exporting true color sentinel image in Google Earth Engine?

I tried to download a sentinel image, but it seems not to work. It downloads a one band image and not 4,3,2 rgb combination as coded. This is the code I'm using that just downloads 1 band: var marco ...
0
votes
0answers
14 views

Google Earth Engine Output - Returns Unexpected Values with np.sum()

I am exporting a CHIRPS precipitation raster from Google Earth Engine. This is part of a larger collection of data that I'll be exporting, but I'm just inspecting one image at the moment. I've ...
1
vote
0answers
13 views

Is it possible to see which Landsat bands were used most, when creating kmeans clusters?

I am using kmeans clustering (ee.Clusterer.wekaKMeans) to classify a Landsat8 image using all 11 bands. I was wondering if it is possible to see what bands are relied on most to create the clusters (i....
1
vote
1answer
25 views

Why can not Landsat 5 image use Fmask algorithm to identify cloud?

I want to get 1990 NDVI from Landsat5,and remove the cloud cover, so I used the code: var addNDVI = function(image) { var ndvi = image.normalizedDifference(['B4', 'B3']).rename('NDVI'); return ...
0
votes
0answers
12 views

Mismatching after export from Google Earth Engine to ArcGIS

I want to study three datasets together: SRTM, MODIS, and PRISM. When I import them in Google Earth Engine and show them on the screen, everything is fine and all the edges match perfectly (first ...
0
votes
2answers
41 views

UI CHARTS ( for indices time series in python API of Google earth Engine)

If I use python api for google earth engine and want to make a UI chart for mean value of NDVI for a particular year , how does the UI.CHART function work in python api for google earth engine.
0
votes
0answers
17 views

EarthEngine - Layer error: Image.parseExpression: Expression parse error

I am trying to create a layer using conditional statement in Earth Engine. I have created a stack of two layers as follows: var NDVI_2000_2001_2002 = NDVI_2001_2000.addBands(NDVI_2002_2000); Now, I ...
4
votes
1answer
39 views

How can I estimate a Least Cost Path in Google Earth Engine?

I'm using Google Earth Engine to estimate walking time based on slope, using the Google tutorial and this example based on a DEM. My code actually runs, but I don't know what units the output raster ...
1
vote
1answer
37 views

Downloading image/exporting image to google drive from google earth engine with color palette

When I download Analysis results from Google Earth Engine, the image is exported in to google drive but it does not have a color palette. How do i add color palette with the exported image using earth ...
1
vote
0answers
13 views

Collection properties are lost when exporting in google earth engine

I have a general confusion over the 'id' field and how it is set and change in GEE, but I faced another strange thing: The collection properties are lost when exporting in GEE! I tried below sample ...
1
vote
1answer
26 views

Trying to display Sentinel-2 imagery in Google Earth Engine, code working but displaying blank figure

I'm trying to display SENTINEL-2 imagery in Google Earth Engine, code working but displaying blank figure: var PuntoQuellaveco1 = /* color: #d63000 */ee.Geometry.Point([-70.477294921875, -17....
0
votes
1answer
14 views

Export collection to individual images in GEE [duplicate]

I want to clip a MODIS image collection to an area defined by a bounding box in Google Earth Engine and then export the images separately to my google drive. I want to use a map function to avoid for ...
1
vote
1answer
24 views

Google Earth Engine, how to distinguish between rivers/streams and ponds/lakes in a water mask

I am trying to pull out every lake and pond in a region of SW Alaska. I have successfully identified all water features using the following code: // study area var rect = ee.Geometry.Rectangle([-168, ...
2
votes
1answer
38 views

Google Earth Engine - remove layer from the layer manager

Is there a way in Google Earth Engine to remove layers which are in the layer manager? Example: //Image selection var img1 = ee.Image('COPERNICUS/S2/20161231T035142_20161231T040436_T47PNP') //...
3
votes
1answer
37 views

Using globe view in Google Earth Engine?

I'm working on a tool to visualize climate data in Google Earth Engine, and it'd be very nice if I could view the Earth as a 3D globe (i.e., from "space", rotate it, etc) rather than a 2D projection. ...
0
votes
1answer
31 views

GEE hangs in a for loop using dates

I want to have a loop on a date variable in Google Earth Engine, but it hangs and show me nothing when running just below simple code: var aDate = ee.Date.fromYMD(2015,12,21); var bDate = ee.Date....
0
votes
1answer
21 views

Iterate over GEE assets in Python script and mixing local and server side objects

I have below two questions that are related together: 1- Can I iterate over items in my GEE assets in Python script? If yes, how? 2- My understanding is that all the images and features (and their ...
0
votes
0answers
17 views

Google earth engine - export month data as a table for analysis

My code has been adapated from Code for monthly NDVI medians in Google Earth Engine to calculate average sst by month and year var sst = ee.ImageCollection('NASA/OCEANDATA/MODIS-Aqua/L3SMI') .select('...
0
votes
0answers
9 views

No data was found in classifier training input afer run code in GEE

I want to classify images using three types of sample data, including yumi, xiaomai and youliaozuowu, but it shows this error 'Class: Layer Error: No data found in the classifier training input'after ...
0
votes
0answers
12 views

Using map within a map - error produced using sort()

Objective I am trying to establish the state of the tide when a Landsat 8 image was collected, allowing further analysis such as using only images from when there are high tides for example. I am ...
0
votes
1answer
30 views

Raster to vector conversion in Google Earth Engine

I would like to convert a raster image into vector. My image is referenced to a specific zone (vect). I'm working with Hansen dataset and in particularly the layer 'lossyear'. Raster image is from a ...
0
votes
1answer
29 views

Google earth engine:SST by month per year

I'm trying to plot a chart and get data from Google Earth Engine. I'm using MODIS-Aqua/L3SMI data in Earth Engine. I have used Earth Engines in built functions to compare average sea surface ...
0
votes
1answer
21 views

Google earth engine chart error: No features contain non-null values of “system:time_start”

I'm trying to plot a chart froma collection I have created. While the data from this collection maps fine, I can't seem to produce a chart for it. var sstMonthly = temporalCollection(sst, ee.Date('...
0
votes
0answers
30 views

Getting statistics for all features in shape in Google Earth Engine?

I try to get zonal statistics fro several polygons that I have in a shapefile. I am using this code mostly from Earth Engine Examples: var table = ee.FeatureCollection("users/digdgeografo/areas"),...
0
votes
1answer
45 views

Batch task execution in google earth engine

I need to make tens of clipped portions of an image, so I uploaded the boundaries in my assets and then loaded them all in code editor and did the clips with a for loop and exported them to the cloud. ...
2
votes
0answers
25 views

Adding Map Key to map or console in Google Earth Engine?

Is there a way to print (or plot) a map key in the console (or on the map) in google earth engine ? What would be an approach? var img= ee.Image('COPERNICUS/S2....................'); var ndvi = im....
0
votes
0answers
14 views

Getting FeatureCollection id in Google Earth Engine

How can I get the 'id' field shown when I print a FeatureCollection in Google Earth Engine? I tried get('id') or get('system:index') but it didn't work (returns null).
1
vote
0answers
24 views

Creating FeatureCollection from imported assets in Google Earth Engine? [closed]

I have imported several shapefiles as a Fusion Table in Google EE. My goal is to calculate the amount of forest loss (from Hansen et al) and the MODIS VCF (percentage tree cover) for each shapefile, ...
0
votes
1answer
53 views

Extracting pixel values by points from multi-band image and converting to table in Google Earth Engine?

I would like to extend this answer to Extracting pixel values by points and converting to table in Google Earth Engine? in order to extract values from a multi-band image. I am using the example ...
1
vote
1answer
23 views

How to select some n number of Random Points within a polygon as a single feature in Google Earth Engine?

How to select some n number of Random Points within a polygon as a single feature in Google Earth Engine? IMPORTS: var geometry = /* color: #98ff00 */ee.Geometry.Polygon( [[[73.85016678395664, ...
0
votes
1answer
17 views

Showing an Error in the code(d.fc is not a function)

IMPORTS: var geometry = /* color: #98ff00 */ee.Geometry.Polygon( [[[73.85016678395664, 14.304113379426035], [73.85016583974448, 14.048667693939866], [74.0477686190103, 14....
0
votes
1answer
28 views

Google Earth Engine Can't sort or export arrays

I have a FeatureCollection of forest loss polygons that I am reducing (using ee.Reducer.fixedHistogram()) over the hansen forest loss dataset to create a histogram. This should give me a histogram of ...
1
vote
2answers
27 views

Creating opacity mask in Google Earth Engine?

I have an NDSI snow layer loaded in Google Earth Engine. Since snow is present for values <0.4, I want to make values >0.4 opaque. I looked at the manual's examples, but this code is not giving me ...
0
votes
1answer
25 views

Showing an error in the code (.eeObject.name is not a function)

IMPORTS: var geometry = /* color: #98ff00 */ee.Geometry.Polygon( [[[73.85016678395664, 14.304113379426035], [73.85016583974448, 14.048667693939866], [74.0477686190103, 14....
1
vote
0answers
33 views

Two Different Areas for the same Image in Google Earth Engine

IMPORTS: var polygon = /* color: #d63000 */ee.Geometry.Polygon( [[[-119.33364769821117, 46.05123532178373], [-119.3233620672313, 45.869732769408905], [-119.04111088542663, ...
2
votes
1answer
37 views

Q: Google Earth Engine: Calculating deforestation for individual areas (Hansen/Global Forest Change dataset)

I am looking to study deforestation around specific coordinates in Sub-Saharan Africa using the Global Forest Change dataset. For this purpose, I constructed a KML file using free online tool (https://...
0
votes
1answer
35 views

Finding distance to nearest point from feature using Google Earth Engine?

In Google Earth Engine I have a FeatureCollection of 14,002 points. For each of the points I want to find the next nearest point's distance away. I don't need to record the nearest point ID, only the ...
0
votes
1answer
35 views

Google Earth Engine: getting List elements from .reduceRegion() results

I have a FeatureCollection that I am using .reduceRegions() over the Hansen Forest Loss dataset using ee.Reducer.fixedHistogram() to get the count of pixels per year/per feature. The result is a ...
1
vote
1answer
29 views

Naming various iterations within a loop

I have produced a loop which step-wise applies a mask with increasing threshold to an image. Using the Map.addLayer() feature, I wish to view all outputs however I do not seem to be able to name them ...
0
votes
1answer
96 views

Extract value from shapefile in Google Earth Engine

I'm new in Google Earth Engine. I want to extract the value of NDVI for a series of MODIS images using a shapefile and after export the database. This is my script: var vect = ee.FeatureCollection("...