Questions tagged [google-earth-engine]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
3k views

Export data from time-series image collection to a table in Google Earth Engine

On Google Earth Engine, I'd like to accomplish two tasks: extract data from every pixel, across a time-series, within the given geometry bounds and save it as a table. I need a column which prints ...
3
votes
2answers
3k views

Conversion from Raster to Vector in Google Earth Engine?

I have applied unsupervised classification on an image in Google Earth Engine using k means clustering algorithm. I have made 15 classes and I have visualized those 15 classes by adding a map layer. ...
3
votes
1answer
562 views

Image Collection Statistics in Google Earth Engine?

How can I extarct mean of each image collection in google earth engine? for example for this code: var modis = ee.ImageCollection("MODIS/006/MOD13Q1") .filterBounds(geometry) .filterDate("2000-01-01",...
3
votes
2answers
2k views

Unique List of Image Dates from Image Collection in Google Earth Engine

I would like to create a list or array object containing a unique set of dates represented in an image collection for a given region of interest. I have a function that extracts and converts dates for ...
2
votes
1answer
514 views

Google Earth Engine: How to avoid gaps in date-wise image mosaicks?

This question is a follow-up to the excellent answer of Rodrigo E. Principe here: Mosaicking a Image Collection by Date (day) in Google Earth Engine I am trying to apply the suggested code to gather ...
2
votes
2answers
5k views

Start a loop from information in a feature property

I have a feature collection of polygons that contains a property ("yrbegun") indicating the year I want to use to do some manipulation. I would like to start a loop from the year before to the year ...
2
votes
2answers
738 views

How to generate a collection of mosaic images by mapping over date list in Google Earth Engine

I want to generate a collection of mosaicked images from Landsat 5 over multiple years. I have checked that the individual images are not null but on returning the mosaic in the code below throws the ...
2
votes
1answer
2k views

Reprojecting with Google Earth Engine?

Link to GEEScript var L8 = L8.filterBounds(geometry).first() Map.addLayer(L8,{max:3000},'Before Reprojection') var proj = ee.Projection('EPSG:4326').getInfo() var L8r = L8.reproject(proj.crs,proj....
2
votes
1answer
50 views

Reduce multiple images per day to a single image in time series collection (Earth Engine)

I have a code which coverts the MODIS Aqua dataset into monthly means. The code is here. However, I'm want to do the same for a new data set, the NOAA/CDR/SST_WHOI/V2. However, rather than single ...
1
vote
2answers
1k 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()['...
1
vote
2answers
933 views

Pansharpen landsat mosaic in Google Earth Engine

Does anyone have a good way to pansharpen an entire mosaic of landsat 8 images? I would use the Panchromatic band (band 8). I have found tutorials on how to pansharpen a single image, but not for a ...
1
vote
1answer
989 views

Google Earth Engine - Remove geometry fields from FeatureCollection for export to table

How do I remove the geometry fields from this feature collection? They are not necessary and give me a messy table in excel. // Add reducer output to the Features in the collection. function ...
1
vote
0answers
558 views

Writing code to add calculated image to display in Google Earth Engine?

I wrote a code for Land Surface Temperature (LST) from Landsat 8 images in google earth engine. I have successfully calculated the following steps, NDVI, fractional vegetation (fv), emissivity (EM), ...
1
vote
1answer
442 views

DOY chart in Google Earth Engine

With the following code I am trying to produce a NDVI graph with the days of the year on the x axis (based on this example, 2nd graph). var modisNDVI = ee.ImageCollection ('MODIS/MCD43A4_006_NDVI'); ...
1
vote
1answer
241 views

Reducing hourly rainfall data to monthly data for particular period of time and making a timeseries chart

I am working with GSMaP image collection (hourly rainfall data) in Google Earth Engine. I would like to make a script which is calculating and making a chart of sum rainfall in particular location ...
1
vote
2answers
374 views

Google Earth Engine Modis Data Scaling

I'm new to GEE. I'm currently working on NDVI data analysis. So this is my code for MODIS Ndvi. I want to know how to divide all the images there inside ImageCollection by 10000 to get real NDVI ...
1
vote
1answer
1k views

Google Earth Engine - filter landsat by cloud cover over multiple polygons

I want to make a Landsat image collection that is totally cloud free over a SET of polygons. I have about 300 polygons (all within a single Landsat tile). I found this question, which is doing exactly ...
1
vote
1answer
141 views

Google Earth Engine: eq filter not taking values in list

I want to filter a raster in GEE with multiple values. I input a list of values and map over the function to apply the filter. Here is the GEE code to loop over a list of numbers and filter the raster ...
0
votes
1answer
180 views

10 days composite from Sentinel 2 Images Collection

A monthly composite can be made using the following code, I take example from Sentinel 2 L1C: var geometry = ee.Geometry.Point([109.061, 11.78]); var col = ee.ImageCollection('COPERNICUS/S2') ...
0
votes
1answer
51 views

How to compute LST every 3rd day for 19 years (Earth Engine)

I want to calculate LST for every 3rd day from 01-02-2000 to 31-12-1-2019, I don't Know how to do that. Using MODIS/006/MOD11A1 var lst = lstImg.select('LST_Day_1km') .filter(ee.Filter.date(...
0
votes
2answers
531 views

Exporting loss pixels from Hansen data/Global Forest Change dataset on Google Earth Engine

I am trying to export the loss pixels from the Hansen/UMD dataset for each year from 2001-2014, for a region. I hope to obtain a stack of 13 rasters (one for each year), with a pixel having 0 or 1 in ...
5
votes
1answer
2k views

How to apply a Cloud Mask in a collection?

I am trying to apply a mask cloud in a SAVI collection (LANDSAT) to get a chart with time variations between pixels. var region = table3 Map.addLayer(table3) var col = ee.ImageCollection('...
5
votes
1answer
621 views

Black vertical lines on exported image from Google Earth Engine

I tried to export the NDVI obtained from the Landsat 8 Surface Reflectance Collection in Google Earth Engine and I keep on getting black lines in my final export. Everything looks fine when displaying ...
4
votes
1answer
3k views

google earth engine: access ImageCollection features list?

the console gives me a view into the 'properties' of the ImageCollection object: ImageCollection LANDSAT/LC08/C01/T1_SR (107 elements) type: ImageCollection id: LANDSAT/LC08/C01/T1_SR version: ...
4
votes
1answer
639 views

What's the difference between sample, sampleRegions, and stratifiedSample in Google Earth Engine?

According to the documentation of GEE, ee.Image.sample() samples the pixels of an image and returns them as a FeatureCollection, in which each feature has 1 property per band in the input image. You ...
4
votes
2answers
3k views

Stratified random sampling with Google Earth Engine Error

I am trying to sample points from a classified raster using Google Earth Engine, but am running into some problems. I developed a script based on the Classification video located here. Here is a toy ...
3
votes
1answer
259 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 ...
3
votes
1answer
2k views

Mask clouds in an ImageCollection google earth engine

Is It possible to create .median() Surface Refletance image (landSat 8 RS) without clouds before calculating the NDVI in goolge earth engine? I need to work with a year (eg. 2016-01-01, 2016-12-31), ...
3
votes
1answer
3k views

Calculating number of pixels in polygon using Google Earthy Engine?

How to calculate the number of pixels in a polygon, especially, when an image contains null-value pixels? I tried the function ee.Reducer.countEvery(), but it does not work. var geometry = /* color: #...
3
votes
1answer
2k views

How to mask pixels in image collection?

I want to mask pixels based on the quality band information for image collection Landsat 5. this is a code but the image-collection is empty afterward. I would be thankful if anyone could help me. ...
3
votes
2answers
3k views

Getting List elements from .reduceRegion() results in Google Earth Engine?

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 ...
3
votes
2answers
1k views

Filtering Sentinel2 image collection to get least cloudy image for entire ROI

I am trying to obtain the least cloudy image (or images) across my entire ROI. Though I do not get any errors, the true color composite is not being mapped for me to check if I have indeed sorted and ...
3
votes
1answer
103 views

Using computed min/max image values to set min/max visualization parameters in GEE [duplicate]

I would like to use the calculated min/max values of an image region to set the min/max visualization parameters of that image. I can retrieve the actual numbers, but can't use them as variables in ...
3
votes
1answer
1k views

Polygons vs MultiPolygons in Google Earth Engine

Is there an advantage to work with Polygons versus MultiPolygons in Google Earth Engine? I need to subdivide a region of interest into many sub-areas for which I will calculate the evolution of some ...
2
votes
1answer
110 views

Sudden increase in the download size of images from GEE

I am working on LandSat 8 data to build a classifier for built up and non built up areas in a particular district. I was using the following code for classification and then to export my classified ...
2
votes
1answer
342 views

How to load an image asset from a list of assets in the folder?

I have a folder in my Assets that contains 44 images. I want to add them to the Map in sequence. However I'm getting an error that I can only create an image that is a constant. var image = ee....
2
votes
2answers
1k views

Error -Collection query aborted after accumulating over 5000 elements

I have created a code that suppose to take sentinel images and calculate the NDVI for a speficif polygon I have. I need it to run it for 2 years, but I have realized that for some reason the dataset ...
2
votes
1answer
3k views

exporting table in to a drive from Google earth engine returns blank rows

I am trying to find the mean precipitation of a watershed. When I print the feature collection BasinMean, I can see the mean precipitation in the console. A lot of them are zeros but the first two ...
2
votes
2answers
2k views

Concerning “Landsat 5's cloud mask and pixel quality assessment” in Google Earth Engine

I need assistance for solving a problem with Landsat 5 surface reflectance image's cloud mask. I am new to this tool/programming and want to try this tool to process cloud mask. Through the provided ...
2
votes
0answers
2k views

Trying to map through and reduce regions of image using Google Earth Engine?

I'm working on building a model in google earth engine that will estimate carrying capacities for bird species based off of a table I have of bird densities per land cover type and an image of land ...
2
votes
1answer
542 views

Applying a reducer over a very large feature

The problem: How can we work around memory limits to apply a reducer over a large feature? EE's debugging page suggests either setting using tileScale to reduce the size of the tiles used for server-...
2
votes
1answer
2k views

number of pixels inside a polygon in Google Earth Engine

I'm trying to know how many pixels are inside my polygon when I calculate the mean (and other statistics) by using the "count" reducer. I guess many things go into this: what GEE does with pixels that ...
1
vote
1answer
1k views

Reclassifying NDWI using Google Earth Engine?

I'm trying to reclassify a NDWI raster into 1 for values >0.4 and 0 for <0.4. I understand that its possible to use .remap in case of discrete values, but not sure how to reclassify NDWI raster ...
1
vote
1answer
59 views

Exporting rasters in GCS in Google Earth Engine

I have a raster that covers an entire country with the base data having a 0.05° resolution. The country spans two UTM zones, so I am reluctant to reproject the file to a projected coordinate system. ...
1
vote
1answer
75 views

Calculating CIredEdge from Sentinel 2 composite image and adding as Band in Google Earth Explorer?

This is a follow-up question to Seeking Function to calculate red-edgeNDVI in Google Earth Engine? I’ve added the redEdgeNDVI band to the image collection by mapping the function over the collection ...
1
vote
1answer
217 views

Calculating area of different classes in Google Earth Engine

I am trying to classify the India into forest, agriculture and urban areas using Google Earth Engine, but after classification I am trying to calculate areas of classes like this: var im=l8....
1
vote
1answer
98 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, ...
1
vote
1answer
492 views

Masking out shadows in Sentinel images using Google Earth Engine?

This question is an addition to this answer to Creating Sentinel-2 cloud free, cloud-shadow free composite or scene on Google Earth Engine (GEE)? There Rodrigo E. Principe showed how to mask out the ...
1
vote
1answer
2k views

Combine two collections (MOD13Q1 and MYD13Q1) from Google Earth Engine

Need to combine two image NDVI collections (MOD13Q1 and MYD13Q1) in Google Earth Engine but don't know how to proceed. My proposed workflow is to combine the two NDVI products from two collections to ...
1
vote
1answer
797 views

Converting Feature Collection of one element (Multi Point Geometry) into Feature Collection of different elements

CODE: var l8 = ee.ImageCollection("LANDSAT/LC08/C01/T1_SR") .filterBounds(geometry); // TEST IMAGE var first = ee.Image(l8.first()).clip(geometry) // get image projection var proj = first....