Questions tagged [google-earth-engine]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
2k views

Downscaling raster images in Google Earth Engine?

How can I downscale raster images using basic interpolation methods in Google Earth Engine? For example, I want to resample Landsat image from 30m to 10m, but I cannot find corresponding functions in ...
6
votes
1answer
1k views

Mosaicking a Image Collection by Date (day) in Google Earth Engine

I have an image collection of Sentinel-1 data over 3 years filtered by a region of interest that spans 3-4 tiles, and want to know the best way to mosaic all the images (tiles) that were taken on the ...
4
votes
1answer
6k views

Clipping vs Filtering Images with a Polygon - Google Earth Engine

I need to analyze the area defined by a polygon that I drew (call it 'X') of the images of Modis Terrra. What is the difference between filtering bounds and clipping to define the area of interest? I'...
3
votes
1answer
3k views

Extracting LANDSAT time-series data by polygon using Google Earth Engine?

importing the landsat 5 TM 32-day NDVI composite data set. I have made it as far as drawing a polygon of my ROI and extracting from a different data set, a global land cover map (ESA/...
3
votes
1answer
2k views

Iterate over ImageCollection returning pandas dataframe using earth engine & python

I'm trying to extract values from an ImageCollection to a series of points. My goal is to create a pandas dataframe that includes the values from each image & band of the ImageCollection for each ...
2
votes
1answer
3k views

How can I export a set of images from Google Earth Engine?

I'm trying to export images of a bunch of latitude and longitude points, but I keep getting errors. For example, I am trying to export an image of this single point in this fusion table, but this is ...
0
votes
1answer
2k views

download Landsat data from Google Earth Engine for the Continental United States

I need to download one image of the Landsat 7 NDVI 32 day from Google earth engine for the continental United States. Just this specific one image from 2005-08-13 to 2005-09-14. Please see my code ...
4
votes
1answer
1k views

Google Earth Engine Reprojection to non-EPSG defined CRS

Is it possible to reproject an image in earth engine to non-EPSG defined coordinates? In particular either Goode Homosline (SR-ORG:7619) or Mollweide (ESRI:54009). Passing either to .reproject() ...
2
votes
1answer
2k views

Mapping over list of dates in Google Earth Engine

My function fnc returns as Image but on using the ee.ImageCollection(dates.map(fnc)), it returns an error ImageCollection (Error) ImageCollection.fromImages: Attempt to create an ImageCollection with ...
2
votes
1answer
198 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",...
2
votes
1answer
426 views

Adding timestamp to video export in Google Earth Engine

I am exporting an image collection to video using: Export.video.toDrive({ collection: mov_EVI, description: 'Modis EVI-Classified Water', dimensions: 720, framesPerSecond: 10, region:ROI });...
1
vote
1answer
194 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 ...
1
vote
1answer
120 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
1answer
196 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
248 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
749 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
2answers
419 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 ...
1
vote
1answer
62 views

Computing volumetric precipitation in Earth Engine [closed]

I am attempting to calculate volumetric precipitation (km^3) over a region in California, but the values seem too high to be plausible. The data suggests an average of 12 cm of precipitation for every ...
0
votes
2answers
373 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 ...
0
votes
1answer
122 views

Extracting position date of max and min value in NDVI time series in Google Earth Engine?

I need to extract the DATE for max and min NDVI values in a MODIS NDVI time series. i think I am able to extract the date for max but I have problems with the minimum. // turn image collection into ...
0
votes
1answer
44 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
0answers
123 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), ...
4
votes
1answer
355 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
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('...
3
votes
1answer
910 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 ...
3
votes
2answers
3k views

inconsistent types in google earth engine with Export.image.toDrive()

I have computed NDVI from Landsat7 image, but when I want to export the result in google drive with Export.image.toDrive() it failed with the message error : Fail with an error : Error: Exported bands ...
3
votes
1answer
118 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 ...
3
votes
1answer
846 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
2k 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
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
1k views

Exporting an image in Google Earth Engine image alignment

When I export an image in Google Earth Engine the resulting raster does not match the original. When I import the export back into Google Earth Engine the is an spatial misalignment between the ...
3
votes
2answers
255 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 ...
2
votes
1answer
395 views

GEE Export.image.toDrive output not matching bounding box?

I am new to GEE and javascript. Copy-pasting here and there, I managed to put together this code that extracts NDVI from cloud-free Sentinel-2 images on GEE. I created a fusion table from a KML with ...
2
votes
1answer
2k views

Creating Sentinel-2 NDVI time series chart in Google Earth Engine?

I am exploring Sentinel-2 time-series NDVI with Google Earth Engine. In another post (here) I calculated and exported NDVI values from Sentinel-2. Now I would like to create a NDVI time series chart, ...
2
votes
1answer
168 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
2answers
1k 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
1answer
2k 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: #...
2
votes
1answer
2k 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
0answers
956 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
1k 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 ...
2
votes
1answer
820 views

Calculating NDVI per region, month & year with Google Earth Engine?

I want to calculate the mean NDVI per region (admin level 3, also called woreda), month and year. So my end result would look something like this: regions year month NDVI ------------------...
1
vote
1answer
2k 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: ...
1
vote
2answers
165 views

Calculating area by classified image in Earth Engine

I want to calculate the area for each classified color in earth engine. Here are my codes. var image = ee.Image(ee.ImageCollection('LANDSAT/LC8_L1T_TOA') .filterBounds(roi) .filterDate('2015-01-...
1
vote
2answers
784 views

How to import handdrawn polygon using json file in earthengine

Is there any way to import a data, say handdrawn polygons (saved as coordinates) as json or text files? I have hard time reading a file into the code editor, even ones created locally, as the code ...
1
vote
1answer
523 views

Cloud cover percentage in Google Earth Engine

I'm doing a project at my university about the Cloud cover percentage in determinate areas in the world. I'm completely new to Google Earth Engine and I'm struggling a lot trying to find a solution ...
1
vote
1answer
174 views

Extracting qualified image patches in Google Earth Engine?

I want to extract qualified (e.g., cloud-free) image patches (e.g. size of 128x128) in a large image (e.g. 10000x10000) in Google Earth Engine. These image patches can overlap with other qualified ...
1
vote
1answer
33 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 ...
1
vote
1answer
284 views

Calculating cost distance in Google Earth Engine?

I need to calculate cost distance for each cell in my raster (bounding box: Sumatera island) to points (palm oil mills), with slope as its cost. The cost layer (slope) has float data type (val: 0-90), ...
1
vote
1answer
52 views

Seeking Function to calculate red-edgeNDVI in Google Earth Engine?

I am trying to calculate the red-edgeNDVI ((NIR – red edge)/(NIR + red edge)) of an Image.Collection in Google Earth Engine. There is a built in function for NDVI but not for red-edge NDVI. The code I ...
1
vote
1answer
73 views

Export pixel neighborhood in Google Earth Engine

I have some points and know how to extract the Landsat data at these points and build and export a training dataset to feed an external classifier. But how can I efficiently and automatically build a ...