google-earth-engine

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

给你一囗甜甜゛ 提交于 2020-04-30 10:18:25
问题 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 --------------------------------- region_1 2010 1 0.5 region_1 2010 2 -0.6 region_1 2010 3 0.7 region_1 2010 4 -0.3 region_1 2010 5 0.4 region_1 2010 6 -0.5 region_1 2010 7 0.5 region_1 2010 8 -0.7 region_1 2010 9 0.8 region_1 2010 10 -0.55 region_1 2010 11 -0.3 region_1 2010 12 -0.2 region_2 2010 1 0.5 region_2 2010 2 -0.6

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

流过昼夜 提交于 2020-04-30 10:15:21
问题 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 --------------------------------- region_1 2010 1 0.5 region_1 2010 2 -0.6 region_1 2010 3 0.7 region_1 2010 4 -0.3 region_1 2010 5 0.4 region_1 2010 6 -0.5 region_1 2010 7 0.5 region_1 2010 8 -0.7 region_1 2010 9 0.8 region_1 2010 10 -0.55 region_1 2010 11 -0.3 region_1 2010 12 -0.2 region_2 2010 1 0.5 region_2 2010 2 -0.6

Exporting image array to TFRecord in Google Earth Engine

做~自己de王妃 提交于 2020-04-18 06:12:13
问题 I want to convert a collection of 3 Landsat images (each 12 band) to a single image array and then export it in TFRecord format. I used below code. My input collection is named images . imageT is the accumulated image, starting with a zero band which is dropped at the end. Each pixel of final imageOfSeries image contain a matrix of size 3x12: var imageT = ee.Image(0) images = images.map(function(image){ return image.toArray(); }) var accumulate = function(image, imageT) { return(ee.Image

Populate FeatureCollection with values from bands of each individual image in an image collection in Google Earth Engine

孤街醉人 提交于 2020-01-24 17:33:50
问题 In Google Earth Engine, I have loaded in a Featurecollection as a JSON which contains a few polygons. I would like to add columns to this FeatureCollection which gives me the mean values of two bands for each polygon and from each of the multiple images contained within the Image Collection. Here is the code I have so far. //Polygons var polygons = ee.FeatureCollection('ft:1_z8-9NMZnJie34pXG6l-3StxlcwSKSTJFfVbrdBA'); Map.addLayer(polygons); //Date of interest var start = ee.Date('2008-01-01')

Convert what looks like a number but isn't to an integer (Google Earth Engine)

走远了吗. 提交于 2020-01-07 03:48:43
问题 I'm trying to get the number of images in an image collection in the Google Earth Engine (GEE) code editor. The image collection filteredCollection contains all Landsat 8 images on GEE that cover Greenwich (just an example). The number of images is printed as 113 but it doesn't appear to be of type integer and I can't coerce it to an integer either. Here's what that looks like: var imageCollection = ee.ImageCollection("LANDSAT/LC8_SR"); var point = ee.Geometry.Point([0.0, 51.48]); var

how to download images using google earth engine's python API

两盒软妹~` 提交于 2020-01-02 10:00:46
问题 I am using Google's Earth Engine API to access LandSat images. The program is as given below, import ee ee.Initialize() Load a landsat image and select three bands. landsat = ee.Image('LANDSAT/LC8_L1T_TOA /LC81230322014135LGN00').select(['B4', 'B3', 'B2']); Create a geometry representing an export region. geometry = ee.Geometry.Rectangle([116.2621, 39.8412, 116.4849, 40.01236]); Export the image, specifying scale and region. export.image.toDrive({ image: landsat, description:

Why I am getting the error “Server returned HTTP code: 404” using Google App Engine and Google Earth Engine

好久不见. 提交于 2019-12-24 17:29:21
问题 I am trying to run a simple program that I can use as a working example for the Google Earth Engine API, however I get the above error whenever I run it. Here is the code: import ee import ee.mapclient image1 = ee.Image(1); print(image1); As you can see it is a very simple program I just want to get it to run so I can do more advanced tasks but I can't even get this simple one to work. 回答1: You did not authenticate your application, hence the error. Add: ee.Initialize() and you're good to go.

Google Earth Engine: mask clouds and map a function over an image collection of different sensors

五迷三道 提交于 2019-12-24 06:18:36
问题 I want to combine all the Landsat sensors from 1985 up today in Google Earth Engine, remove the clouds and calculate the time-series of the NBR index. As a new GEE user I have the following: // find all data and filter them by date var lst5 = ee.ImageCollection('LANDSAT/LT5_SR').filterDate('1984-10-01', '2011-10-01'); var lst7 = ee.ImageCollection('LANDSAT/LE7_SR').filterDate('2011-10-01', '2013-04-07'); var lst8 = ee.ImageCollection('LANDSAT/LC8_SR').filterDate('2013-04-07', '2018-05-01');

Exporting all images in a Google Earth Engine image collection (Google Earth Engine API)

旧巷老猫 提交于 2019-12-18 17:28:35
问题 I need to download a bunch of Landsat images for my thesis. My problem seems simple but I don't have a clue about JavaScript and the documentation didn't help enough. I have filtered the collection to my region and time period and i want to export all images to Drive, seperately. Collection example: var surfaceReflectanceL5 = ee.ImageCollection('LANDSAT/LT5_SR'); var dateSR5=surfaceReflectanceL5.filterDate('1984-01-01', '1985-01-01'); var prSR5=dateSR5.filter(ee.Filter.eq('wrs_path', 182))

GEE Python API: Export image to Google Drive fails

一个人想着一个人 提交于 2019-12-13 04:08:25
问题 Using GEE Python API in an application running with App Engine (on localhost), I am trying to export an image to a file in Google Drive. The task seems to start and complete successfully but no file is created in Google Drive. I have tried to execute the equivalent javascript code in GEE code editor and this works, the file is created in Google Drive. In python, I have tried various ways to start the task, but it always gives me the same result: the task completes but no file is created. My