google-earth-engine

" image.select(bands).sampleRegions is not a function error. what must i do?

≯℡__Kan透↙ 提交于 2021-02-11 14:26:38
问题 I am trying to conduct a lulc classification on google earth engine using landsat5 data for 2000, but every time it is showing me the error: image.select(bands).sampleRegions is not a function var shp = ee.FeatureCollection(mws) Map.addLayer(shp, {}, 'My Polygon') var pol = ee.FeatureCollection(poly2000) Map.addLayer(pol, {} ) //landcover for 2000// var dataset = ee.ImageCollection("LANDSAT/LT05/C01/T1_TOA") .filterBounds(roi1) .filterDate('2000-01-01', '2000-01-31') .map(function(image)

Reduce daily data to monthly using Google Earth Engine

喜夏-厌秋 提交于 2021-01-27 10:14:43
问题 I am looking at precipitation data (both GPM and CHIRPS) for different provinces in Indonesia using Google Earth Engine. GPM is sub-daily (every 30 minutes) and CHIRPS is daily. I am only interested in getting the monthly values. Unlike here and here I am not interested in getting the multi-annual monthly values, but simply the average of each month and make a time series. Here I found a way to create a list of values containing the mean of each month. Edit: Thanks to Nicholas Clinton's

Reduce daily data to monthly using Google Earth Engine

不打扰是莪最后的温柔 提交于 2021-01-27 10:13:43
问题 I am looking at precipitation data (both GPM and CHIRPS) for different provinces in Indonesia using Google Earth Engine. GPM is sub-daily (every 30 minutes) and CHIRPS is daily. I am only interested in getting the monthly values. Unlike here and here I am not interested in getting the multi-annual monthly values, but simply the average of each month and make a time series. Here I found a way to create a list of values containing the mean of each month. Edit: Thanks to Nicholas Clinton's

Reduce daily data to monthly using Google Earth Engine

£可爱£侵袭症+ 提交于 2021-01-27 10:11:17
问题 I am looking at precipitation data (both GPM and CHIRPS) for different provinces in Indonesia using Google Earth Engine. GPM is sub-daily (every 30 minutes) and CHIRPS is daily. I am only interested in getting the monthly values. Unlike here and here I am not interested in getting the multi-annual monthly values, but simply the average of each month and make a time series. Here I found a way to create a list of values containing the mean of each month. Edit: Thanks to Nicholas Clinton's

Why does the googledrive library in R identifies more than one file with only one file in the Drive folder?

拥有回忆 提交于 2020-12-12 06:13:04
问题 I am trying to download a .tif file from my Google Drive folder (which is exported to it via Google Earth Engine), using the googledrive library. However, when calling the map function, I get the following error: Error: 'file' identifies more than one Drive file. I have already managed to download other .tif files with this code, which worked without any error. Why do I get this error, and how do I resolve it? As you can see in the Drive folder (it's public), the folder contains only one file

Why does the googledrive library in R identifies more than one file with only one file in the Drive folder?

与世无争的帅哥 提交于 2020-12-12 06:11:19
问题 I am trying to download a .tif file from my Google Drive folder (which is exported to it via Google Earth Engine), using the googledrive library. However, when calling the map function, I get the following error: Error: 'file' identifies more than one Drive file. I have already managed to download other .tif files with this code, which worked without any error. Why do I get this error, and how do I resolve it? As you can see in the Drive folder (it's public), the folder contains only one file

Why does the googledrive library in R identifies more than one file with only one file in the Drive folder?

我们两清 提交于 2020-12-12 06:10:28
问题 I am trying to download a .tif file from my Google Drive folder (which is exported to it via Google Earth Engine), using the googledrive library. However, when calling the map function, I get the following error: Error: 'file' identifies more than one Drive file. I have already managed to download other .tif files with this code, which worked without any error. Why do I get this error, and how do I resolve it? As you can see in the Drive folder (it's public), the folder contains only one file

Upload asset in Google Earth Engine with Python?

余生长醉 提交于 2020-06-17 15:49:05
问题 I want upload an asset to Earth Engine with Python and I don't want use Google Cloud Storage. Is there a way to upload a particular file (from my computer) directly to the Google Earth Engine using the command line (or using a Python script)? 回答1: No. You can only upload from Google Cloud Storage via python. The only way to upload directly from your computer is via the playground. 回答2: i use geemap module and bypass uploading file on googleEarthEngine 来源: https://stackoverflow.com/questions

How can I copy a value from server to client in Google Earth Engine?

只愿长相守 提交于 2020-05-28 06:58:50
问题 On Google Earth Engine, suppose I have a Number on the server side. How can I get it as an integer on the client side? var x = ee.Number(42) typeof(x) // yields "object", i.e. server side var y = ??? // what function of x will get me a local 42 in y? 回答1: This seems to work, although it is not recommended by the documentation: var x = ee.Number(42) // server side variable var z = x.getInfo() // local string var y = parseInt(z) 来源: https://stackoverflow.com/questions/60892701/how-can-i-copy-a

How can I copy a value from server to client in Google Earth Engine?

别说谁变了你拦得住时间么 提交于 2020-05-28 06:58:45
问题 On Google Earth Engine, suppose I have a Number on the server side. How can I get it as an integer on the client side? var x = ee.Number(42) typeof(x) // yields "object", i.e. server side var y = ??? // what function of x will get me a local 42 in y? 回答1: This seems to work, although it is not recommended by the documentation: var x = ee.Number(42) // server side variable var z = x.getInfo() // local string var y = parseInt(z) 来源: https://stackoverflow.com/questions/60892701/how-can-i-copy-a