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.

1
vote
1answer
15 views

Error in export image from Google Earth Engine from Python API

I am trying to use the GEE Python API to export an image to Google Drive. Everything works smooth, except the exporting stage. boundary = ee.Feature(Countries.first()).geometry().bounds().getInfo()['...
0
votes
0answers
25 views

Pixel-based NDVI time series - Google Earth Engine

I am a newcomer using GEE and now I want to do a NDVI time series. The condition is that it must be based on the result of the pixel, and it need to displayed on the map. I just made the NDVI time ...
0
votes
2answers
31 views

Google Earth Engine: how to negate the .and() operator on an image with NULL values

How does one negate a ".and()" operation on an image in GEE if this image does not contain 0/1 values but NULL/1 values? From the documentation: not() - Returns 0 if the input is non-zero, and 1 ...
-3
votes
0answers
24 views

Problem with collecting Landsat 5 & 8 [on hold]

I am collecting Landsat 5 and 8 for doing Land Use Land Cover Change (LULCC). It worked when I do with L8 but did not with L5.
1
vote
1answer
19 views

Earth Engine invalid band id when exporting

I am trying to export an image to Assets after adding a band representing time using the following code: //Function to add a timestamp as a new band// var createTimeBand = function(image) { return ...
0
votes
1answer
35 views

How to get several property values at once so there is only one call to .`evaluate`

I have a large FeatureCollection (100,000+ polygons) and want to get several values from it at once to display in a ui.Label with only one call to .evaluate. I have found the following way to do it ...
0
votes
1answer
21 views

GEE Accuracy assessment of classification: User memory limit exceeded

I want to make supervised classification of Sentinel-2 data-set. The algorithm is: // Define periods of analysis var startdate1 = '2017-10-01'; var enddate1 = '2017-11-30'; var startdate2 = '2018-04-...
-1
votes
0answers
27 views

Using MODIS daily surface reflectance to create a NDVI timeseries in Google Earth Engine [closed]

I am looking to develop a script to create an NDVI time-series using MOD09GQ.006 Terra Surface Reflectance Daily Global 250m for a given geometry variable. Additionally, I would like to filter out ...
0
votes
1answer
33 views

Atmospheric correction for Landsat 8 data in Google Earth Engine? [closed]

What is the code for this? Already mosaic'ed my image
1
vote
2answers
29 views

Earth Engine casting bands

I am trying to calculate mean reflectance values across landsat 5 and 8 images using the following code: var point = /* color: #d63000 */ee.Geometry.Point([-133.49, 69.18]); var l5 = ee....
1
vote
0answers
33 views

Raster projected in Google Earth Engine showing weird values within R

I classified a raster in GEE and I am trying to work with the same within R. I have 7 land cover classes and when I view the output in R, I get something that does not make sense. Please see the ...
0
votes
0answers
24 views

Name points inside a feature made with Geometry.MultiPoint

i am trying to name the points inside a feature build with a ee. Geometry.MultiPoint function as shown in the image. This points are alredy named in the imports place. But to build this feature a used ...
2
votes
1answer
38 views

Finding monthly NDVI anomalies in Google Earth Engine?

I am using 16 NDVI data from GIMMS 3rd generation, and I wish to somehow visualize monthly anomalies (Difference from long term means greater than .5). I have plotted a time series of the data running ...
0
votes
0answers
15 views

Supervised classification on the GEE platform error

I use supervised classification on the GEE platform, but now there is a problem: classified: Layer error: Image.sampleRegions: Invalid numInputs: 0 Here is my code: var trainingPoints = water....
1
vote
1answer
32 views

What is the fastest/proper way to see if a FeatureCollection contains no Features

Take this code example, where mylabel is a ui.Label: var mypt = ee.FeatureCollection(ee.Geometry.Point(Map.getCenter().coordinates())); var states = ee.FeatureCollection('TIGER/2016/States'); var ...
0
votes
1answer
18 views

How do I access data for each pixel within an image and store it in an array in Google Earth Engine?

I want to create an array in Earth Engine that is composed of the NDVI data of each pixel in the image. Below is the code that calculates the NDVI of each pixel in the ROI (a region). I can store the ...
0
votes
1answer
39 views

Raster Statistics in GEE

I have created many rasters in Google Earth Engine that represent the NDVI. I want to apply statistics on them. I want to count how many pixels I have in every raster, and then I want to count how ...
0
votes
1answer
25 views

Determination of point id after sampling in Google Earth Engine

Let's say I have a landcover map, assigning landcover codes to each pixel in a scene. Then I have a polygon and want to use some or all of the points in it to pick the landcover from the above map, ...
0
votes
1answer
38 views

Wrong masked pixels

I am new in GEE, and tried to run a simple code to mask cloud pixels. However when I added the image selected with my filters I saw that the result of the cloud filter are empty areas, as shown below: ...
1
vote
1answer
23 views

Sample method returns empty featureCollection (GEE)

I have some troubles with the sample method from Google Earth Engine. On some images, it returns an empty feature collection (0 element). Why this is happening and how do I deal with that ? It's ...
1
vote
1answer
32 views

Mask water bodies in GEE

I'm trying to to detect changes in land surface over few periods in a specific polygon. The problem is that I want to block water bodies from my calculations. How can I do it? This is the code I ...
1
vote
1answer
27 views

Uploading polygons and masking pixels inside the polygons using Google Earth Engine?

I am working on a classification problem on agricultural fields. To make things easier, I first identified road, cities, water, fields, and etc. I am planning to eliminate road, cities, and water out ...
0
votes
1answer
46 views

How to see previous years' satellite imagery on GEE?

I have a set of points for which I want to see what built up or non-built areas were around these points in 2014, 2015, 2017 and 2018. When I lay these points (in yellow) on the default satellite ...
0
votes
1answer
33 views

Pixel alignment for trend analysis in Earth Engine

I am trying to calculate NDVI trends over time using Landsat scenes and the earth engine code below: var point = /* color: #d63000 */ee.Geometry.Point([-133.49, 69.18]); var l5 = ee....
1
vote
1answer
40 views

Explanation of reduce.count() function in Google Earth Engine

Following the indication on Calculating number of pixels in polygon using Google Earthy Engine? I wrote this script: var gfc =ee.Image('UMD/hansen/global_forest_change_2018_v1_6'); var lossyear = ...
1
vote
1answer
30 views

Number converted to dictionary in Earth Engine

When reducing an image to number on it's geographical coordinates, the code does return a number, which is what should happen. var accum = ETo.reduce(ee.Reducer.sum()); var accumNum = accum....
0
votes
0answers
46 views

Calculating daily temperature for points using Google Earth Engine? [closed]

I am trying to calculate the max, min and mean temperatures within a 7 days period for a set of shapefile point. I have limited GEE experience but know JS. Below is the code I have so far but I do ...
1
vote
0answers
22 views

Google Earth Engine: Masking land out of Sentinel-3 imagery

I'm trying to isolate ocean cover from OLCI imagery using a bitmask from the quality_flags band. But it's masking all the pixels, and I notice when I mask the ocean and leave the land, the land is ...
1
vote
0answers
28 views

Is there a way to interpolate lost data/lost pixels caused by cloud and cloud shadow masks in Google Earth Engine? [duplicate]

I'm sure cloud and cloud shadows have been, time and time again, a frustrating problem. Usually after masking the two, I composite multiple images (in a set time interval e.g. 2015-2016, months 6-8) ...
-1
votes
1answer
18 views

Drawing polygon on the google earth engine App instead of a point [closed]

i'm a newbie on app development with GEE. I would to have a polygon to draw on the map instead of a point. Do you have any suggestion?
0
votes
1answer
22 views

Layer error: reduce.median: 'Can't apply calendarRange filter to objects without a timestamp'

I´m trying to end this script. It has worked perfectly for other two time range, but for Landsat 5 and Landsat8. When i tried do the same for LANDSAT7 this error occurred: Layer error: reduce....
0
votes
0answers
33 views

Water area trend, Google Earth Engine?

I've written this code for water area trend in Google Earth Engine. However I don't know is the final result true or not? Could anyone check it, please? Code link: https://code.earthengine.google.com/...
0
votes
2answers
47 views

Iterating in ee.FeatureCollection.aggregate_array on Google Earth Engine?

I have a shapefile I made from a list of longitude and latitudes. I extracted the latitudes and longitudes in arrays following this link. I then try to iterate over the arrays using this: for (var i =...
0
votes
1answer
42 views

Error generating chart: Remote Request too large in Google Earth Engine

I was trying to generate to spectral chart for 'VV','VH','angle' using Google Earth Engine. But I am getting the error Error generating chart: Remote Request too large I was using the following ...
0
votes
0answers
22 views

Clear task list in the Earth Engine command line tool

Is there any way to clear the task list in the command line tool? I would like to reduce the output when I ask for: earthengine task list
1
vote
2answers
50 views

Sentinel 2 Surface reflectance Range

I need to get a reasonable Sentinel 2 Surface reflectance using Google Earth Engine, I tried but the values are between 10000 - 0 var ReflectTimeSeries = ui.Chart.image.seriesByRegion({ ...
2
votes
1answer
22 views

Exporting USDA NASS CDL 2005, 2007 using Google Earth Engine?

I'm trying to export the USDA NASS CDL masks from 2003 to 2018. However, it seems that years 2005 and 2007 have two versions: 2005a, 2005b, 2007a, 2007b. Does anyone know why there's two, and how to ...
-2
votes
0answers
33 views

Chlorophyll index equation of Sentinel2 Google Earth Engine [duplicate]

Want to interpolate pixel values of index vegetation obtained from equation of Sentinel2.I Created an equation for the chlorophyll index, however I can't interpolate the values from the equation. I ...
0
votes
1answer
35 views

Calculate band using data from existing bands and look-up table in Google Earth Engine

I have a 4 band composite image and a csv table consisting of regression coefficients. Each row in the table represents a regression specific to a day of year (doy). The 1st column in the table is doy ...
0
votes
0answers
13 views

Extracting sequence of features from an image collection

I want to run a classification application but feed it with time series data of Landsat imagery. I have a set of points (each point has an attribute of 'class') and an image collection LandsatCol. For ...
0
votes
1answer
23 views

Split list by chunks Earth Engine with mean

I am calculating mean temperature data based on historical data. I need to calculate the mean through the years (jan-jan-jan-jan...) and the means within a year (jan-feb-mar-may-jun...). This is ...
1
vote
1answer
39 views

Import data from text file in Google Earth Engine

I have 100 comma separated longitude and latitude values in a text file. I want to mark all these 100 points on GEE maps and see where they lie. This is the script I am using for marking the point: ...
0
votes
1answer
39 views

Error when extracting specific field of shapefile in Google Earth Engine?

I'm trying to extract specific field data which is in shapefile. There was an error while executing the following code in GEE as argument invalid type. the screenshot shows the error message. Can ...
0
votes
1answer
57 views

Kriging of NDVI of Sentinel2

Kriging of NDVI of Sentinel2, I'm getting an error: Want to interpolate pixel values of NDVI obtained from Sentinel2. Exponential: Tile error: Property ' ndvi ' is missing. My code: var image = ee....
1
vote
0answers
26 views

Concatenating export path in Google Earth Engine

My goal is to store different exports from Earth Engine projects in separate subfolders of a main GEE_export folder on my Google Drive. I'm using Export.image.toDrive: Export.image.toDrive({ ...
-1
votes
0answers
19 views

Get longitude and latitude values of geometry in Google Earth Engine [duplicate]

I am working on a code for urbanisation classification. I have a shapefile defined for a particular district as: var city = 'Jaipur'; var district = ee.FeatureCollection('ft:...
1
vote
1answer
45 views

Missing values when calculating mean

I have uploaded a table containing information on river basins within countries (https://code.earthengine.google.com/?asset=users/basins/TFDD_BCU). I want to calculate the mean population density in ...
0
votes
0answers
20 views

Extracting Results of KMeans using Google Earth Engine?

How can I extract the Values for the Cluster-Means in Google Earth Engine? // Define each water-body as a own region var region = water // training region is the full image var training = ms1_new....
0
votes
0answers
11 views

Sample regions collecting more points than actual

Trying to extract values by points in Earth Engine by sample regions in NDVI stacked image. My fusion table contains only 1200 features but during the process, it throws me an errors "Feature ...
0
votes
0answers
23 views

Google Earth Engine - Name Layers with Image Image ID

I have recently started to explore google earth engine - and would like to know if there is a way to name image layers (within a collection) with the individual image ID? I have come this far: var ...