Questions tagged [rgee]

rgee is a Google Earth Engine bindings package for R. Use with the 'r' and 'google-earth-engine' tags.

37 questions
1
vote
1 answer

What is the bucket in rgee?

I am trying to upload some large geometries to google earth engine. This is the example code given in the ?sf_as_ee description: # # 3. Upload large geometries to EE asset # ee_Initialize(gcs = TRUE) # assetId <- sprintf("%s/%s", ee_get_assethome(),…
1
vote
1 answer

Problems with ee$List$repeat

I am trying to get the following code to work in Google Earth Engine using the rgee package: # Load rgee library(rgee) # Initialise ee_users() ee_Initialize() # The incorrect use of repeat within an rgee context ee$List$repeat(1,3) But I get the…
Anthony W
  • 1,289
  • 2
  • 15
  • 28
0
votes
0 answers

Trouble loading earthengine-api in rgee R package

I have succesfully installed and loaded rgee. When I run ee_check() sometimes it does work and returns ✔ [Ok] earthengine-api and sometimes it does not work and returns ✔ [X] earthengine-api not installed. I alwasys follow the same…
Jfgrass
  • 1
  • 1
0
votes
0 answers

Can I use functions from another r package to calculate band values in rgee?

I am working on creating a GEE Image Collection by compiling bands from various image collections to do band arithmetic with and calculate my final variable of interest. There are already GEE datasets for 2 of the 3 variables I need (cloud cover and…
lsterup
  • 1
  • 1
0
votes
0 answers

ee_print() - rgee - object 'band_metadata' not found

I have a problem to access the metadata when I use ee_print() function in a Image or ImageCollection ee-object. In my global environment the img ee-object was created. But, When I use ee_rpint() function in a Feature or FeatureCollection ee-object,…
0
votes
0 answers

Error in ImageCollection$select() Error in py_get_attr_impl(x, name, silent) : OverflowError: Python int too large to convert to C long

I'm trying to apply $select at a imageCollection object in rgee but I face the error when I source my script: Error in py_get_attr_impl(x, name, silent) : OverflowError: Python int too large to convert to C long When I run every command…
0
votes
0 answers

Convert from "list" type to "ee.Image"

I want to add value to list to ee.Image. MODDAY_ext_lst <- select(MODDAY_ext, LST_Day_1km) print(MODDAY_ext_lst) class(MODDAY_ext_lst) Result: > class(MODDAY_ext_lst) [1] "data.frame" > typeof(MODDAY_ext_lst) [1] "list" cal_value <-…
edaasc
  • 3
  • 2
0
votes
0 answers

How do I add the na_interpolation values in imputeTS to the ee.Image data?

I'm making a prediction about the missing values in imputeTS. But I can't transfer the calculated na_interpolation values to ee.Image. MOD_lstNightMasked = MOD_lstNight$updateMask(MOD_mask_N) MODDAY_ext <- ee_extract(x = MOD_lstDayMasked , y = shp, …
edaasc
  • 3
  • 2
0
votes
0 answers

ee_extract after normalizing image (zero mean and unit variance)

I have working code for normalizing an image. Is there a more efficient way to achieve the same result and cut down on the steps involved? Asking because after finalizing this workflow on a per-Image basis, will want to adapt to a…
witek
  • 1
0
votes
0 answers

reticulate: python 2 works, python 3 does not

I am trying to get rgee properly installed for which python is a requirement. I have both an old version of python (2.7) and a new version (3.10) installed on my Mac running Big Sur OS. Installed via homebrew. I can set the location correctly for…
Nebulloyd
  • 264
  • 1
  • 9
0
votes
1 answer

Attempting to transform from JavaScript to RGEE

I am trying to rewrite this code from EarthEngine (JavaScript) to the RGEE API : function collection_index(image) { function setNdviMinMax(img) { var minMax = img .select('NDVI') .reduceRegion({ reducer: ee.Reducer.minMax(), …
cven
  • 11
  • 2
0
votes
2 answers

rgee::ee_Initialize(). Google earth engine website returns Authorization Error

Putting this up here mostly so that if I find a solution I can place it here for others. I am trying to use the package rgee to interface with Google Earth Engine via R/Rstudio. I have downloaded rgee with install.packages("rgee", dependencies = T).…
milo
  • 25
  • 4
0
votes
1 answer

Obtaining Metadata Information using ee_print function from RGEE

I am using the package RGEE (R wrapper for the Google Earth Engine Python API). The function ee_print() seems to work perfectly for an ImageCollection of just one variable, but seems to fail for ImageCollection with different variables where one…
codeload
  • 1
  • 2
0
votes
1 answer

How to use iterate() in rgee

The following JS equivalent code is working in the gee playground, but not in rgee. This should calculate the sum of 1:5. lst <- ee$List$sequence(1,5,1) runsum = lst$iterate(function(item,sum) { item = ee$Number(item) sum = ee$Number(sum) …
Ben Carlson
  • 1,053
  • 2
  • 10
  • 18
0
votes
1 answer

why rgee can not use the right version of python?

I'm trying to use rgee package in Rstudio. I installed reticulate and rgee packages. My python version is 3.7 (I'm very sure about it, installed and checked several times). But when I use ee_check(), it seems the version that was detected is 3.1?…
Zijie Chai
  • 1
  • 1
  • 1