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
171 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
2answers
775 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
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
96 views

Getting weekly mean composite in Google Earth Engine?

I am currently working on a time-series in Google Earth Engine. Iam still quite inexperienced, especially when it comes to functions. I want to extract the mean values of Sentinel1-images for each ...
1
vote
1answer
41 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 ...
1
vote
2answers
1k 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 ...
1
vote
2answers
1k views

Cloud mask for Landsat8 on Google Earth Engine

I'm creating a composite image, in order to create a timeseries. I've already created the composited image, but i am having difficulty masking the clouds of the composite image. I've followed the code ...
1
vote
2answers
1k views

Export images in google earth engine with date name

I would like to export the NDVI with the date in the filename. Now I can only export them with a list of numbers, e.g. example NDVI_1, NDVI_2 (as in the code that I show below) ... and I want it so ...
1
vote
1answer
195 views

Earth Engine mismatched type for band

I'm trying to calculate the average Julian day of year for greenness decrease from the MODIS MCD12Q2 dataset. Following is the code and error, which comes from having to normalize the julian day ...
1
vote
1answer
103 views

Exporting images in native CRS and resolution

When I use “Export.image.toDrive” command in Google Earth Engine it requests to define the scale and CRS of the raster. I did a search, but could not find clear solution for it. Is there any ...
1
vote
1answer
84 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
1k 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 ...
1
vote
2answers
132 views

I have NDVI layer in Earth Engine. I want to assign and calculate area of good and bad ndvi area

var mergedCollection = s2.map(function(image) { return image.select(['B8', 'B4'], ['NIR', 'red']) }) var mergedAllFunction = function(image) { var ndvi = image.normalizedDifference(['...
1
vote
1answer
1k 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
909 views

GEE: How to transform masked values (NODATA) to -9999?

How can I transform NoData (masked) values to a value? When the image is mapped, there are a lot of values that are masked and I would like to get a value (-9999) on that masked pixels. var region = ...
0
votes
1answer
1k views

Iterating over years for features in public feature collection using GEE?

I want to calculate the surfaces deforested every year for every protected area in Democratic Republic of the Congo. I am building from the script provided as answer by Rodrigo Principe in reply to ...
0
votes
1answer
138 views

Plot areas by class in a polygon with Google Earth Engine

I would like to plot the number of pixels or the area for each class contained in a polygon (shape of a country). I have found the ui.Chart.image.byClass function but I don't understand how to use it ...
0
votes
1answer
282 views

How can ee.Image.stratifiedSample() be used in Google Earth Engine to select training samples for a binary classifier?

This is a follow-on question to How can one create a binary image from a FeatureCollection in Google Earth Engine? The corresponding minimal example can be found here: https://code.earthengine.google....
0
votes
0answers
28 views

LSIB feature does not align with island boundary in Google Earth Engine?

It looks like there is an alignment issue that arises in EarthEngine with the LSIB polygons. It exists for Greenland in both the Detailed LSIB 2013 and Simple LSIB 2017 datasets, and can be verified ...
0
votes
1answer
113 views

Error on GEE: No features contain non-null values of “system:time_start”

I'm calculating DVI over a region using MODIS. I am able to get the printout of the map properly but not the chart to retrieve the data. To calculate DVI, I did: var dvi = img.expression( '(nir - ...
0
votes
1answer
40 views

How to create an array of repeated values on the client side using JavaScript in Google Earth Engine?

I want to do something like: var from = [2,3] var to = Array(from.length).fill(1) image.remap(from,to,0) Of course, I could just assign [1,1] to to, but from is an input of a function and it is not ...
0
votes
2answers
486 views

How to export a feature collection of feature collections in Google Earth Engine?

I have extracted NDVI values from Landsat 8 images to a shapefile of points 90 meters apart. I am trying to get these point files back into ArcGIS and R, but they are too big to print to the console. ...
0
votes
0answers
84 views

Shapefile not projecting properly in Google Earth Engine? [on hold]

The shapefile I recently downloaded from (http://www.naturalearthdata.com) does not project properly in Google Earth Engine. I guess the issue is with the projection, but unable to figure out. Sorry I ...
0
votes
1answer
37 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
166 views

Creating a time-series from an image-collection in GEE including null-values in case all pixels are masked

I want to create a time-series from an image-collection resulting in a list with the time-series values. It could be however, that some of the images in the collection are completely masked (i.e. have ...
0
votes
1answer
78 views

Create Cross Section in Google Earth Engine [closed]

I need to create a cross section and chart from it in Google Earth Engine. Here is an example that has been done using QGIS. Please find the image below - How can I do that?
0
votes
1answer
111 views

“print()” alternative for nodeJS

i need run this code in my nodeJS application: //Dates of Interest var start = ee.Date("2014-10-01"); var finish = ee.Date("2018-05-01"); ///--------------------- Landsat Collection -----------------...
0
votes
0answers
40 views

Function takes too long to run (over 72 hours)

I have an errorless code, which works for 3 days of daily data. however I wish to use it for 6000 days. It has not stopped running (we are on hour 75) There are two if statements inside a function ...
0
votes
1answer
477 views

Exporting data with different data types in Google Earth Engine. How to make data consistent to download?

I am working with Sentinel-2 data in GEE and I added NDVI and a specific SAVI as new bands to an Image. I had an error downloading 6 bands (RGBI, and VIs) because the data type is not the same: ...
0
votes
0answers
34 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 ...
0
votes
1answer
44 views

Getting 16 days composite in Google Earth Engine? [closed]

I've wrote this code. In this code I've call lst daily product. But I don't know how can I compute 16 days mean composite from daily product? code link: https://code.earthengine.google.com/...
0
votes
1answer
32 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. ...
0
votes
1answer
189 views

Creating multilayered classification map on Google Earth Engine?

I've been working on a classification scheme, and have 6 different classes i wish to map. Everything has been already done in terms of finding the classifications. the only thing I am struggling on ...
0
votes
0answers
492 views

Aggregating image information over two features in Google Earth Engine?

As per Iterating over years for features in feature collection using Google Earth Engine?, I am currently working with the Hansen data (Global Forest Change) in Earth Engine. I have imported two ...
0
votes
1answer
673 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
votes
1answer
634 views

Harmonic MODIS trend in Google Earth Engine?

I would like to plot in a histogram the difference between the real SAVI values and the harmonic trend. I use this code and I cannot make it. // Load a collection of Landsat TOA reflectance images. ...