google-earth-engine

How to display changes in lake's surface area over time in a polygon bounded region, in a table in earth engine?

送分小仙女□ 提交于 2019-12-11 23:31:51
问题 The problem statement is that a region of interest is given. I need to find all the lakes in a polygon bounded region using the NDWI index for water bodies, which are at a height of more than 1500m. Then display the changes in the area of lake's surface water starting from the year 1984 till 2018 on a 2-year interval in a table like structure in Google Earth Engine. I have used Landsat 5 and 7 data. I need to display the results in the polygon marked region in a table sort of structure in the

Get results in an Earth Engine python script

ⅰ亾dé卋堺 提交于 2019-12-11 16:28:30
问题 I'm trying to get NDVI mean in every polygon in a feature collection with earth engine python API. I think that I succeeded getting the result (a feature collection in a feature collection), but then I don't know how to get data from it. The data I want is IDs from features and ndvi mean in each feature. import datetime import ee ee.Initialize() #Feature collection fc = ee.FeatureCollection("ft:1s57dkY_Sg_E_COTe3sy1tIR_U-5Gw-BQNwHh4Xel"); fc_filtered = fc.filter(ee.Filter.equals('NUM_DECS', 1

Collection.loadTable: not found in GEE

荒凉一梦 提交于 2019-12-11 08:54:10
问题 When I tried to upload my .shp file in Google Earth Engine Asset and import in Python like this: self.TS_POP = ee.FeatureCollection(users/arafayknysys/pop_TS) And when I tried to load the Geometric Data using self.TS_POP.getInfo() , I get the following error: Collection.loadTable: (*) not found Any help much appreciated 回答1: I have solved it by my self, Actually what I have done is after uploading my dataset in Google Earth Engine code editor. I forgot to give the read access to every one.

How to iterate over and download each image in an image collection from the Google Earth Engine python api

 ̄綄美尐妖づ 提交于 2019-12-09 01:21:30
问题 I am new to google earth engine and was trying to understand how to use the Google Earth Engine python api. I can create an image collection, but apparently the getdownloadurl() method operates only on individual images. So I am trying to understand how to iterate over and download all of the images in the collection. Here is my basic code. I broke it out in great detail for some other work I am doing. import ee ee.Initialize() col = ee.ImageCollection('LANDSAT/LC08/C01/T1') col.filterDate('1

Aggregate GPM hourly data to daily in GEE

我只是一个虾纸丫 提交于 2019-12-08 01:55:13
问题 I need to aggregate the sum of 48 half hourly images per day of a GPM collection getting a imageCollection with the band "precipitationCal" and daily images I've trying to fill and iterate a empty featureCollection but I get a empty collection without images var dataset = ee.ImageCollection('NASA/GPM_L3/IMERG_V05') var startdate = ee.Date.fromYMD(2014,3,1) var enddate = ee.Date.fromYMD(2014,4,1) var precipitation = dataset.filter(ee.Filter.date(startdate,enddate)).select('precipitationCal')

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

我只是一个虾纸丫 提交于 2019-12-06 12:45:09
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: 'imageToDriveExample', scale: 30, region: geometry }); it throws the following error. Traceback (most recent call last)

Double loop with map() function in Google Earth Engine

自古美人都是妖i 提交于 2019-12-04 02:11:32
问题 In Google Earth Engine Developer's Guide, there is a recommendation to avoid for() loops. They recommend to use map() function as this example: // to avoid var clientList = []; for(var i = 0; i < 8; i++) { clientList.push(i + 1); } print(clientList); // to use var serverList = ee.List.sequence(0, 7); serverList = serverList.map(function(n) { return ee.Number(n).add(1); }); print(serverList); I'm trying to select MODIS scenes from each month/year prior to compute VCI. So, the approach I'd take

Extract pixel values by points and convert to a table in Google Earth Engine

可紊 提交于 2019-12-03 22:07:05
I am undertaking a project that is relating field measurements of fire severity to band values and spectral indices derived from Landsat imagery before and after the fire. I am currently using Google Earth Engine to extract surface reflectance values from a collection of Landsat images. The approach I am using imports my field site locations (point data) as a feature collection and uses the getRegion function to extract band values from a Landsat image collection at each point. The code is provided below: //IMPORT SAMPLE POINTS var pts = ee.FeatureCollection('ft:1N9Hb01uCSHqGpz262K

HTTPException: invalid and/or missing SSL certificate for url: https://accounts.google.com/o/oauth2/token

牧云@^-^@ 提交于 2019-12-03 17:21:02
问题 When I call for the Google Earth Engine (GEE) Python APIs through Google AppEngine, it throws out a HTTPException which says " HTTPException: invalid and/or missing SSL certificate for url: https://accounts.google.com/o/oauth2/token ". The project runs well before the New Year's Holiday, but it suddenly broke out without any changes on my own codes when I tested it on yesterday. The detailed error information 回答1: I am also experiencing the same issue in my python script with App Engine. It

HTTPException: invalid and/or missing SSL certificate for url: https://accounts.google.com/o/oauth2/token

风格不统一 提交于 2019-12-03 06:20:17
When I call for the Google Earth Engine (GEE) Python APIs through Google AppEngine, it throws out a HTTPException which says " HTTPException: invalid and/or missing SSL certificate for url: https://accounts.google.com/o/oauth2/token ". The project runs well before the New Year's Holiday, but it suddenly broke out without any changes on my own codes when I tested it on yesterday. The detailed error information I am also experiencing the same issue in my python script with App Engine. It was running fine a few days ago and the certificate for accounts.google.com is valid until March, 9th 2017