Questions tagged [google-earth-engine]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

GEE error when extracting image timestamp

I have filtered Sentinel 2 images to get suitable cloud free images from the time period I require, however I cannot figure out how to extract the date from the images, but with my current code I get ...
0
votes
0answers
16 views

Fraction of vegetation calculation for the whole Landsat Image Collection with Google Earth Engine

I'm trying to calculate Land Surface Temperature for my image Collection of 294 Landsat 8 images. I've calculated NDVI and try to apply the solution given in the previous question: Calculating LST ...
2
votes
2answers
22 views

Earth Engine get latest image from an imageCollection

I'm trying to get the last image available in an image collection but I can't find any function that works. I've tried also to sort the collection in the reverse order, but it doesn't work. here is ...
0
votes
0answers
11 views

Merge and CLASSIFY ImageCollections with different pixel size

I am trying to perform a classification on a merged imageCollection that includes median annual images for both the Landsat 8 and Sentinel-2 satellites. To merge the two datasets, I resampled all ...
1
vote
1answer
15 views

Adding time band as year to NDVI composite

I try to add time band to my NDVI time-series and using this function (took it from developers guide), for regression calculation. It looks like script is working but magnitude of slopes is extremely ...
2
votes
1answer
23 views

Google Earth Engine, Creating a Feature Collection (Geometric points)

I have created an image from the crop landcover dataset containing only the crop type rice (crop_rice). I hoping to make a feature collection (Geometric Points) on all points containing rice. Any ...
0
votes
1answer
19 views

Google Earth Engine,Selecting Image Properties

Any ideas on how to select image properties: In this instance, I want to mask all crop types except for Rice. var dataset = ee.ImageCollection('USDA/NASS/CDL') .filter(ee.Filter.date('...
0
votes
1answer
16 views

Extract one Feature from Feature Collection

I have a feature collection consisting of three individual features, each of which represents an AOI in an area. Now I want to get each feature separately to load the appropriate Sentinel2 data for it....
2
votes
1answer
31 views

Zero elements in my ImageCollection

I'm trying to obtain Sentinel-1 images in Google eart hengine and to have 3 different imagecollections: 1. HV 2.HH 3.VV I have written the following code but whenever I check my image collection it ...
1
vote
0answers
15 views

Extracting NDVI by regions defined by certain column using Google Earth Engine

I am trying to extract NDVI values by regions of a certain polygon shapefile. I need, as output a graph (or a table) where the regions are defined by a certain column, called 'FID_incend'. I need ...
0
votes
1answer
20 views

error:Required argument (index) missing to function: List.get(list, index)

I have written a code in GEE retrieves images from sentinel 1 and suppose to display those images. I have created a for loop that suppose to display those images but for some reason I am getting the ...
0
votes
1answer
40 views

Creating NDVI time series from single polygon of shapefile using Google Earth Engine

I am new in Google Earth Engine, I am trying to plot ndvi timeseries from a single polygon of shapefile, but when I run the code I get "Error generating chart: Collection query aborted after ...
0
votes
0answers
16 views

Reducer results are drawing very slowly in GEE

question from the newbie: why resulting from "image.reduce(ee.Reducer.mean())" raster image is taking forever to draw, or even never draws fully? Input image collection consists of 1811 images, it ...
1
vote
1answer
20 views

Exporting list using Google Earth Engine

I want to extract lat/lon values in GEE and I found the following code on stack exchange which does the job. However, when I try to print the lat/ lon values in GEE, it starts to crash. I am going to ...
1
vote
0answers
17 views

Exporting vector and raster in native projection

I'm trying to export raster and vector in native projection and resolution. And I have made a code for it. After exporting both raster and vector versions of data, I have added them to ArcMap, but ...
0
votes
0answers
33 views

Incorrect positioning in Google Earth Engine after exporting from Google Earth Engine

I have an image loaded in Google Earth Engine and I want to save an enlarged area around it both as a feature collection and another image. I use below code for this purpose and it works fine and ...
0
votes
0answers
15 views

Extracting pixel values from single IMAGE using shp [closed]

I have calculated max NDVI value over the below mentioned period and I am trying to extract mean NDVI value from calculated Image for each polygons in shp file. And I have faced with two issues: 1) ...
1
vote
0answers
8 views

Working/Functioning of “sampleRegions” function in Google Earth Engine

I am doing land use classification in Google Earth Engine. I am using three different classes(forest, building, water) for classification. For each class, there is a shapefile containing polygon ...
0
votes
1answer
31 views

Image exporting in Google Earth Engine

I used the code Export.image.toDrive () to export photos to Google Drive but got an error. Error: Image.setDefaultProjection, argument 'image': Invalid type. Expected: Image . Actual: ...
0
votes
1answer
16 views

Filter and show images from an imageCollection in Google Earth Engine

once filtered an imageCollection in Google Earth Engine, how can I add as layers the images resulting by the filter process? I need to show all the images (S2_L2A) available for a specific point (I'...
1
vote
0answers
14 views

Google Earth Engine: cumulative iteration of weekly mean anomaly

Using the link here I've managed to calculate a weekly mean anomaly for several regions of interest. I'm hoping to calculate a cumulative mean anomaly, then work out how many consecutive weeks have ...
0
votes
0answers
25 views

Google Earth Engine: Error for mapping expression function over feature collection

I'm having an issue when trying to create a function to map over a feature collection. I'm trying to create SST thresholds for several regions where over a certain SST value is 1, under another SST, ...
0
votes
0answers
15 views

Double Iteration loop for NDWi Calculation in Earth Engine

I am trying to create a double iteration loop to calculate max NDWI for multiple features (in the code, I have given two adjacent shapefiles). In first iteration, I want to iterate years and in inner ...
0
votes
1answer
25 views

How to get mean from image collection in numerical format?

I have some GEE code that works fine in the code editor and it plots a chart like this: It has this image collection called 'toplot' and you pass it to the UI chart function and it plots the chart for ...
0
votes
0answers
25 views

Earth Engine: clean false positives from raster layer

I'm trying to reduce the number of false positives in a disturbance raster. I'd like to perform a post-processing filter whereby a count of the number of other disturbed pixels within a radius must ...
-1
votes
0answers
25 views

Focal Statistics in Google Earth Engine? [closed]

I am attempting to derive a texture band from NAIP imagery inside of Earth Engine. I have succesfully completed this procedure through the Focal Statistics tools and the Raster Calculator in ArcGIS. ...
3
votes
1answer
19 views

Earth Engine - how to access an image added to Map from inside a function

I have a simple UI that allows the user to select an image from a collection, and loads it to the map. The user then can select a polygon from a list, and a .reduceRegion() using that geometry is to ...
1
vote
1answer
20 views

Exporting Night Lights data as per the given shapefile in Google Earth Engine

I am new to GIS and Google Earth Engine Platform. I am trying to get the night lights for all counties in a country. I have uploaded the shapefile as an asset to the platform. I want to export the ...
-1
votes
0answers
21 views

Finding difference between two images using Google Earth Engine

all_properties and changes, both are images which have 1-17 values in each image. Both should be exactly same but they are different. Hence I want to compare two images. I find code for finding the ...
0
votes
1answer
27 views

Specifying region in export image in GEE Python API

When I export an image in GEE code editor I can pass a geometry to the 'region' parameter without problem. However, it doesn't work for Python API and I get below error for the shown code: task = ee....
0
votes
1answer
28 views

Accessing asset objects and working with them in GEE

I have some areas defined by square polygons and saved as tables in my GEE assets. I want to read them one by one, enlarge them and save the enlarged box to my assets again. I wrote below code but it ...
0
votes
0answers
14 views

Problem in exporting array images to TFRecord format in GEE

I was previously able to convert an N band image to an array image in GEE code editor and then export it in TFRecord format by the following command: Export.image.toCloudStorage({ image: image....
1
vote
1answer
16 views

Exporting Lists from Earth Engine

I am using code from the emapr lab to learn to use LandTrendr to get mean NDVI values per year for a geometry. I am trying to export the generated list from earth engine to Drive. The list only ...
0
votes
1answer
51 views

geopandas.overlay() doesn't work in google colaboratory this return AttributeError: 'NoneType' object has no attribute 'intersection'

When I try to make an intersection between two Geodataframes in google colab, I get it the next error message: This is my pace of code: link1 = 'https://drive.google.com/open?id=...
2
votes
1answer
28 views

Applying Google Earth Engine cloud mask on each individual image BEFORE mosaicing the images?

How can I apply a cloud mask to each individual image in a collection THEN mosaic them together based on (for example) mean pixel value across images? The code does not work because the maskClouds ...
1
vote
0answers
12 views

How to manage GEE assets with service account (Permission issue)

I need to export some images to my GEE Assets using the Python API and I am getting this error: "Insufficient permissions to create asset 'users/ramizsami95/kyrgyz/ndvi_anomaly". This is my code: ...
2
votes
1answer
29 views

Import Sentinel-1 Image on GEE and clip it with geometry

I'm trying to create image collection from images of Sentinel-1.I have written a code that suppoose to create image collection, clip it with a given polygon and then count the number of images in the ...
1
vote
1answer
50 views

Get the surrounding pixel coordinates from an ee.Geometry.Point?

Not the best example, but say I have an image of Sea Surface Temperature and a point like so: // Load an image of sea surface temperature (SST). var sst = ee.Image('NOAA/AVHRR_Pathfinder_V52_L3/...
0
votes
0answers
13 views

Radiometric enhancement for Landsat-8 scene. Google Earth Engine

I´m performing a spatial and radiometric enhancement of landsat-8 image. I performed the spatial processing using and HSV transformation, and then using the PAN band to do the correction. I was ...
2
votes
1answer
41 views

Save centroids into txt file

I'm using Google Earth Engine with the Python API. I have this piece of code: centroids = imNDVI4.reduceToVectors( geometry = test2, geometryType = 'centroid', scale = 30, ...
0
votes
0answers
19 views

Creating imageCollection for each date from a table in Google Earth Engine?

In my AOI there are 8 different Firms alarms on different places, which are available as a table (Feature Collection). Now I want to create an image collection that displays the last five images and ...
1
vote
1answer
26 views

Server-side loop export

Given a FeatureCollection that contains multiple Features (each consisting of polygons), I would like to use the Python API to loop through them all, and batch export them to Google Cloud Storage. ...
0
votes
0answers
20 views

How to Import/Export data trough GEE App?

I want to allow user to import a table (.shp) in a GEE App, perform some analysis and export the resulting layer to the Drive (user drive or script owner drive). So far I created a ui.Button with ...
0
votes
0answers
12 views

In Google Earth Engine set the respective date as Date of Interest in a list from a Feature Collection

I have a list of dates (Firms alarms) which is output as a feature collection. Now I want to get the matching Sentinel2 dates for each of these dates, 30 days before and after. At the moment I enter ...
0
votes
0answers
7 views

Calculating area of classified pixels in Google Earth Engine for each feature in featureCollection

I have run a random forest classification on my three class system, but now I would like to determine the area of each class within each feature in my featureCollection. Can I add this as a property ...
1
vote
1answer
50 views

histogram of classified image in Google Earth Engine

I'm using Google Earth Engine to run a supervised classification and I want to visualize, for each class in my classification, the distribution of DN's or Reflectance in each band of a Landsat image. ...
2
votes
1answer
61 views

Earth Engine API run a task on interval

Is there a way using the Earth Engine Python APIs to run every ten days (I'll use chron for scheduling) the following Earth Engine script: Export.image.toDrive({ image: anomaly10D.first(), ...
0
votes
0answers
17 views

GEE: resampling MODIS LST from 1km to 200km produces gradient

I am trying to resample raster from 1km resolution to 200m using this code: var august = ee.ImageCollection(landsat) .filterDate('2019-08-01', '2019-08-30') .filterBounds(geometry); //Mean ...
0
votes
1answer
15 views

Mapping over a dictionary in Earth Engine?

Say I have a dictionary in Earth Engine as follows: var dictionary = ee.Dictionary({ key1: null, key2: null, key3: null }); How do I use the map() function to change all the values of each key ...
1
vote
1answer
24 views

Set bar colors on a Google Earth Engine chart

I am trying to define a set of colours by month on a ui.Chart.image.series, however, after adding the .style line, no changes are made. I would like to have a different bar color for each month, the ...