Questions tagged [rgee]

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

37 questions
5
votes
0 answers

extract values of multiple lat lon for image collection in earth engine using rgee

I have a dataframe of lat-lon for which I want to extract the daily rainfall data from the "NASA/NEX-GDDP" dataset which is daily temporal resolution and 0.25 degree spatial resolution. My thought process is to download daily raster on my local…
89_Simple
  • 3,393
  • 3
  • 39
  • 94
2
votes
0 answers

Error related to Google Cloud when running rgee function (Google Earth Engine in R)

I have installed the rgee package in RStudio, but when running ee_initialize() before running Google Earth Engine functions, I get the following error stating that I have not installed gcloud, even though I have installed it. Does anyone know the…
J Clifford
  • 205
  • 2
  • 5
2
votes
1 answer

How do I update conda from 4.10.3 to 4.11.0

I am trying to use run reticulate so that I can use google earth engine in R. After updating my r, my current script is completely useless unless I can figure some issues with it. When I run reticulate::py_install('earthengine-api==####) ( the '###…
Cat Luc
  • 21
  • 2
1
vote
1 answer

object type as a condition in if else - from JS to rgee

I'm trying to convert this if/else function from JS (GEE) to rgee : if ((typeof band) === 'string') obviously, the "typeof" does not work in rgee, so I tried to find an alternative. I came up with the following code : if…
1
vote
0 answers

Issues connecting to GEE from R and connecting to Chrome using RSelenium

I recently tried configuring my R environment to connect to GEE directly from my desktop. I have certain consistent issues and don't know why. I could connect to a website through Rselenium before I started tampering with stuff to get rgee to…
Joke O.
  • 515
  • 6
  • 29
1
vote
0 answers

How can I load rgee in R

I am trying to load rgee in R and getting this error message: Error: package or namespace load failed for ‘rgee’: .onLoad failed in loadNamespace() for 'rgee', details: call: py_module_import(module, convert = convert) error:…
1
vote
1 answer

rgee: radar vegetation index

I'd like to create a temporal mean for the Radar vegetation index - RVI in a target roi. In my example: library(tidyverse) library(rgee) library(sf) ee_Initialize(drive=TRUE) # Define a Region of interest roi…
Leprechault
  • 1,531
  • 12
  • 28
1
vote
1 answer

Using rgee and fastDistanceTransform with a featureCollection

I have successfully extracted distance to nearest human settlement with rgee function fastDistanceTransform, where the original layer is a single image (DLR/WSF/WSF2015/v1). I want to repeat this with distance to nearest road, but the road dataset…
1
vote
0 answers

Mathematical expression problem using image$expression()

I'd like to create the SAVI index using the formula '1.5 * ((NIR - RED) / (NIR - RED + 0.5))' inside image$expression function, but when I try to do it: # Packages library(tidyverse) library(rgee) library(sf) …
Leprechault
  • 1,531
  • 12
  • 28
1
vote
0 answers

Having trouble when installing rgee at "2.Creating a Python enviroment(rgee)"

codes are simple: library(rgee) ee_install()` what shows in console are as follow: ee_install() ------------------------------------------------------------------------------------------------------ Python configuration used to create rgee…
1
vote
1 answer

ee$Reducer$mean: Extract mean several bands/indices with GEE in R

I'd like to get "B2","B3","B4","B8","NDVI","SAVI" and "TVI" average data from COPERNICUS/S2_SR collection by date/tile. I like to extract these bands and vegetation indices mean inside my ROI and I create a s2_clean function for bands selection and…
Leprechault
  • 1,531
  • 12
  • 28
1
vote
1 answer

What is the 'OR' logic operator for images in RGEE

I want to transform this gee line var reclassified=ee.Image(0).where(classifiedData.eq(7).or(classifiedData.eq(13))//.or(classifiedData.eq(10)), 1).rename('water').clip(studyArea); to rgee as follows …
1
vote
1 answer

Image stats using ee_extract in rgee?

I am using ee_extract to extract the mean value of all pixels in an image based on a geometry in rgee (R package to link to Google Earth Engine): test<-ee_extract(image, geometry,fun = ee$Reducer$mean(), scale = 30, sf = FALSE,via = "getInfo") But…
Steph
  • 33
  • 1
  • 5
1
vote
1 answer

Cannot configure rgee R package properly with ee_install()

I've searched for tutorials to help configure the package in my PC, and I've found this one: https://www.youtube.com/watch?v=_fDhRL_LBdQ I executed every part of the code interactively with the tutorial, but when I run ee_install() (after installing…
1
vote
1 answer

Converting GEE script to be used with rgee

I am attempting to run a script written for Google Earth Engine within Rstudio using the rgee package. I don't really know anything about Javascript and converting it to work within r has basically been a bash my head against a wall until something…
Mike D
  • 27
  • 4
1
2 3