Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [google-earth-engine]

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

0
votes
0answers
4 views

Earth Engine image export sets masked pixel values to 0 rather than NA

I'm using Earth Engine to preprocess and download some NDVI data. I used a region of interest to clip the imagery to a geometry, and values from the Summary QA layer to mask out pixels that were of ...
0
votes
0answers
5 views

Google Earth Engine:how to add date to property of images?

I mosaic images in different area. However I lost the time which is really essential to my study.
0
votes
0answers
8 views

How to use the reducer.mean function to average multiple data points?

I am trying to figure out GDD over a period of multiple years given a period of time for each year, and the code provided below allows me to do that. Now that I have 10 years of data points, I am ...
0
votes
0answers
18 views

Didn't show all the column while export the CSV file while using Google Earth Engine

I'm trying to calculate the water areas and the statistics of each band for each water areas to see if there are seasonal changes. The exported .csv file only have the columns ("GNIS_ID","AreaSqKm","...
1
vote
1answer
10 views

Polygons vs MultiPolygons in Google Earth Engine, labelling and reducing for each Feature

This question is a specific application of a previous question I want to: Generate different groups of polygons (each belonging to a zone) Each polygon inside a zone would have a label that ...
0
votes
0answers
20 views

Change in the water body area for the last five years using Google Earth Engine

I am new to JavaScript and GEE and I want to carry out a task which involves 'finding out the change in the water body area for the last five years (pre and post-monsoon) using Landsat or Sentinel ...
0
votes
1answer
6 views

Using Soil Moisture dataset with Google Earth Engine? [on hold]

I am new to the GEE platform. I used recently the datasets: ee.ImageCollection('NASA_USDA/HSL/soil_moisture'). It was going well but the last few days I am getting an internal server error (see the ...
0
votes
0answers
9 views

Extracting surface reflectance values of stratified sampled points in Google Earth Engine

I created 400 stratified sampling points (100 for each of the four classes) using this script: https://code.earthengine.google.com/cbba16d87066b45e61e7d2f7e06bd5c5. Then I exported the result as an ...
0
votes
1answer
38 views

How would one sum multiple image outputs in earth engine?

I am doing some GDD data analysis for a project and am having trouble coming up with a way to effectively analyze a specific time of the season over multiple years. What I am trying to do is find ...
0
votes
0answers
8 views

Exporting images to Google Earth Engine? [on hold]

I need to export image from Google Earth Engine to Shape but I get this error: Error: Invalid property type: Property system: bands has type Element.
0
votes
1answer
23 views

Changing Opacity of Vector layer in Google Earth Engine

While importing a Shp file in Earth Engine, I want to control or change opacity/transparency of the layer. I have gone through almost all read me files, I find nothing. This doesn't work: Map....
1
vote
0answers
24 views

Getting 10 days period, max NDSI from MODIS/Terra 500m resolution daily product(MOD09GA)?

I want to make a NDSI with a ten days period from daily MOD09GA with Google Earth Engine. The code is a adaptation from this code from Nicholas Clinton at Maximum ndvi for 3 months average in Google ...
2
votes
0answers
18 views

Earth Engine import record, why?

When I paste the following on EE online code editor then if offers me the option to convert to an import record. var l8sr = ee.ImageCollection("LANDSAT/LC08/C01/T1_SR"); var roi = /* color: #d63000 */...
2
votes
0answers
27 views

EarthEngine: average/reduce a raster at resolution of coarser raster?

I want to average a 30m raster at the resolution of a 1000m one. Specifically, I want to computer, for each Daymet raster cell, the percentage of cultivated land from the 30m CDL. How can I do that ...
1
vote
1answer
24 views

Where does 'system:time_start' come from?

From EE resources [1,2] I see references to system:time_start like: // This field contains UNIX time in milliseconds. var timeField = 'system:time_start'; I guess that's used to register the start ...
2
votes
1answer
35 views

earthEngine expression and ternary operator: why does evaluate false value when always true?

Why does EE `.expression('A?B:C') take into account C if A is always true? I am using conditional operations with the image.expression('condition ? true_action : false_action) as documented here. My ...
0
votes
0answers
10 views

How to cite greenest pixel composite images derived from Google Earth Engine?

I am using two greenest pixel composite images via Google Earth Engine for a project but am unsure how to cite this data. Do I cite it as regular Landsat data?
1
vote
1answer
25 views

Google Engine - Segmentation

From the Google Engine scripts, Is it available any Segmentation tool like the ArcMap "Segmentation Mean Shift" from ArcMap? I´m looking for crop-fields limit detection. I tried the SNIC one ...
0
votes
1answer
36 views

Running script with Sentinel 2 images?

How can run this script with Sentinel 2 images? // Use a DateSlider to create annual composites of this collection. var collection = ee.ImageCollection('LANDSAT/LC08/C01/T1'); // Use the start of the ...
3
votes
1answer
39 views

Get Lon / Lat of a top left corner for geometry in Google Earth Engine

I want to extract latitude and longitude of a top left corner of a bounding box (bbox) for my geometry (aoi). How do I do it in Earth Engine (preferably using server-side methods)? I guess, it ...
-1
votes
0answers
12 views

Creating Confusion Matrix for Undersupervised Classification in Google Earth Engine?

I am having trouble in creating a confusion matrix for the k means unsupervised classification since the confusion matrix in Google Earth engine are for classifiers only and not clusterers. Can ...
-1
votes
0answers
25 views

GEE- When I mask two years landsat image with one year data, the error: If one image has no bands, the other must also have no bands. Got 0 and 1

I would like to mask the one year Landsat 5 surface reflectance data with two years landsat 5 surface reflectace data with every 15 days. However, I cannot mask successfully if the one year Landsat 5 ...
-1
votes
0answers
18 views

Google Earth Engine: How can I sum all points within a vectors boundaries [duplicate]

So I have 2 layers each are both vectors and not images. here the link: https://code.earthengine.google.com/e7aec6c9683ed40a959a01a7ed5dd31f I have written some basic code to display the data which ...
-1
votes
0answers
31 views

Summing amount of vector points in area of another vector using Google Earth Engine?

So I have 2 layers each are both vectors and not images. here the link: https://code.earthengine.google.com/e7aec6c9683ed40a959a01a7ed5dd31f I have written some basic code to display the data which ...
0
votes
0answers
10 views

Solar incidence angle using Google Earth Engine

I am using the formula for solar incidence angle: cosd = sin(a)sin(b) + cos(a)cos(b)cos(c), where a = 0.409sin((2pi/365)*DOY - 1.39), b = latitude of region and c = hour angle (taken as constant for ...
0
votes
0answers
23 views

GEE - Hide scripts for users

Is there a way to provide use access to my scripts without showing them to the user? I want to provide free services without giving away my code.
1
vote
2answers
47 views

Earth Engine: Map over list versus ee.list?

I want to use a list (of image names) as input to map, and obtain a list of images. Curiously, this works when the input is a (JavaScript) list, but not when it is an ee.List()!? In other words: ee....
1
vote
1answer
20 views

Calculating Long wave radiation using Google Earth Engine?

How to perform computations on two image collections( here e0 and Ts). I have to use the formula RL_up = stfn*e0*T^4 for computing the long wave radiation. //outgoing long wave radiation var stfn = ...
1
vote
0answers
26 views

Shrinking / expanding map area of Google Earth Engine online editor

I often shrink / expand the map area of Google Earth Engine online editor depending on what I'm doing, if coding or seeing the results. Are there shortcuts for these actions?
1
vote
1answer
19 views

Google Earth Engine: Supervised Classification fusion table error

I am currently doing a supervised classification (just two classes for detection of large-scale solar plants) in GEE. When I am using training polygons drew and create as polygons everything works ...
3
votes
1answer
39 views

GEE: How to Create a Buffer Around Canny Edges

In google earth engine I've managed to create a layer using the canny edge detection algorithm (which outputs an image). That layer takes on values of 0 or 1. Now I want to create a buffer around ...
2
votes
1answer
23 views

Performing surface albedo calculation using Landsat 7 and Google Earth Engine?

I am trying to run this code with Google Earth Engine but I get an error on a Land sat 7 dataset. expression is not a function my code: var dataset = ee.ImageCollection('LANDSAT/LC08/C01/T2_SR')...
1
vote
2answers
32 views

Clipping data to shapefile using Google Earth Engine?

I want to clip this fire data so it only displays results in my shapefile titled 'tapajos'. How do I do this? var dataset = ee.ImageCollection('FIRMS').filter( ee.Filter.date('2000-01-01', '2018-...
1
vote
1answer
27 views

Convert Landcover Raster to Vector to Use for Tracking NDVI Over Time

I want to look at NDVI and other spectral indices over time and compare these time series across different land cover types. I believe I have the code to do this but I'm running into the error that I ...
2
votes
1answer
18 views

How to obtain statistics from an intersection?

I am new to the earth engine. My question is on how to obtain statistics from the overlapping region of two areas. I have uploaded a table that contains the locations of river basins (https://code....
0
votes
0answers
29 views

Edge detection using Google Earth Engine? [closed]

Which sigma and threshold value should be used for the detection of the animal and what it depends on?
0
votes
0answers
22 views

GEE: Different monthly result of ET with same dataset

The following code produces a graph with monthly ET from 2001-2015 over a region. https://code.earthengine.google.com/e832ebf5c6682669456a050d7c532e58 In contrast, when plotting the daily data, ...
1
vote
1answer
24 views

Export image to drive eror

I have a classified image that is roughly 400 KB and every time export the image to Google Drive it's roughly 300 KB as a cropped image. Strangely, the first time I exported to drive the image was ...
2
votes
1answer
48 views

Export of reprojected layer from GEE fails

I am trying to export a resampled image from Google Earth Engine, and keep getting errors such as - Error: Reprojection output too large (23734x8520 pixels). As shown in the following screenshot - ...
2
votes
1answer
25 views

How to properly reuse EE module more then once

From https://medium.com/google-earth/making-it-easier-to-reuse-code-with-earth-engine-script-modules-2e93f49abb13 I'm learning how to use modules. So I can have mdl1: var timeField = 'system:...
0
votes
0answers
10 views

Classification error

I am trying to classify wetland. I am getting the following error message Image (Error) Property 'landcover' of feature '42_0': Invalid type. Expected: Float. Actual: String here is the link to the ...
2
votes
1answer
16 views

Keeping properties in an Intersection - Google Earth Engine

I have a set of points and I need to classify them according to which polygon they belong. The natural way of doing this is creating the intersections between all points and each polygon. The points ...
-2
votes
0answers
27 views

Summing multiple layers of data using Google Earth Engine?

Using this code: // This function clips images to the ROI feature collection var clipToCol = function(image){ return image.clip(geometry); }; var dataset = ee.ImageCollection('MODIS/006/MYD11A1') ...
0
votes
0answers
17 views

Adding alternatives to least cloudy image to a collection

I've made a collection of least cloudy images based on the EE tutorial guide, using Landsat 5 data. However, for the area I'm interested in, some of the returned images are not fully covering the area....
-1
votes
1answer
23 views

Can I use a function in the same module it is defined?

I'm studying from https://medium.com/google-earth/making-it-easier-to-reuse-code-with-earth-engine-script-modules-2e93f49abb13 Let's say this is my module in EE, I would like to export a function but ...
-1
votes
1answer
34 views

LandTrendr spectral-temporal (LT - GEE) in Google Earth Engine

I've been trying to use LT-GEE in study for restoration area. But, I get some error Required argument (timeSeries) missing to function: TemporalSegmentation.LandTrendr(timeSeries, maxSegments, ...
1
vote
1answer
40 views

Calculating yearly forest gain from Hansen data set

I want to calculate yearly forest gain in my specified area from the Hansen data set - I used the code given by google earth engine online and replaced the word 'loss' with 'gain' but it won't work ...
-1
votes
0answers
20 views

RandomForest Classifier : memory exceedd

I am doing a randomForest sorting and I have had memory problems exceeded to compute the area calculations and for each class, as well as the full area of the classification. I do not know the ...
1
vote
0answers
46 views

Extracting time series from image collection in Google Earth Engine?

I tried to perform a pixel based time series change detection algorithm in GEE for a defined region, so i intended to extract every pixel time series values into something like a table or matrix, and ...
0
votes
0answers
22 views

Specifying ecoregion

I am trying to extract an ecoregion specified in the Ecoregions 2017 Resolve Data in Google Earth Engine in order to then to examine forest loss and gain (using the Hansen data set) from that ...