R Works with Google Earth Engine - Installation 【rgee - 安装问题解决集锦】
Date : 2022/04/24
Intallation Tutorial - Reference : Introduction to rgee (r-project.org)
Prerequisites :
1. A registered GEE acoount
2. A unrestricted-access VPN for google
3. A python package-management software , such as Anaconda
3. R and Rstudio
Process :
1. Install the 'rgee' package
2. Set up the dependent environment
3. Initialization
Step 1 : Install the 'rgee' package
First, start you Rtudio and create a new R file. Before your installation , set up your python interpreter in Rstudio.

! If you met with the following problem , try what the above picture shows.
> library(rgee)
Error: package or namespace load failed for ‘rgee’:
loadNamespace()里算'rgee'时.onLoad失败了,详细内容:
调用: py_module_import(module, convert = convert)
错误: ModuleNotFoundError: No module named 'ee'
Then install the 'rgee' package. Here is where you can install ,check and update the R packages.


Step 2 : Set up the dependent environment
Now, we load the package, set up the python environment.
library(rgee)
#set up the python environment, do follow the prompt, enter [y] to restart R session.
# ! Only need set up one time, if set up successfully, you don't have to write this line code again.
ee_install()# if this doesn't work , try the next line code
ee_install(py_env = "rgee") # if this doesn't work , try the next line code
ee_install_set_pyenv(py_env = "rgee")

After that , we need check out if all done.
ee_check()
Return Success Symbol :
(*) Python version
√ [Ok] D:/Anaconda3/envs/rgee/python.exe v3.8
(*) Python packages:
√ [Ok] numpy
√ [Ok] earthengine-api
! If don't , maybe the rgee and earthengine-api version doesn't match, just update your rgee package in Rstudio.
Step 3 : Initialization
Here is the Big Big Problem .
ee_Initialize() # You need to do it every time after loading the 'rgee' library.
Normally, you may encounter the following two problems:
√ email: not_defined
√ Initializing Google Earth Engine:
Error in py_call_impl(callable, dots$args, dots$keywords) :
1. TimeoutError: timed out [WinError 10060]
2. URLError: <urlopen error [WinError 10060]
I googled some solutions, but they didn't work, perhaps these attempts will solve your problems
## Solution 1 : clean up the environment then initialize
ee_clean_pyenv()
ee_Initialize() ## Solution 2 : Set the proxy then initialize
Sys.setenv(http_proxy='http://127.0.0.1:7890')
Sys.setenv(https_proxy='http://127.0.0.1:7890')
ee_Initialize()
Finally , I figured out the solution. It was unwise that I did not set system proxy , I just set up the browser proxy.
So, please make sure system proxy set up, then the initialization will succeess.

Step 4 : Enjoy working R with GEE
[ ^_^ ] If you have any problems , please comment on the box below.
R Works with Google Earth Engine - Installation 【rgee - 安装问题解决集锦】的更多相关文章
- Google Earth Engine城市水体提取
Google Earth Engine城市水体提取 大家都知道城市水体提取相比较于山区,丘陵的地区,肯定是比较难的,为什么呢,因为城市水体有很多高层建筑导致的阴影,这个就非常复杂了,而且现在很多高分影 ...
- 基于google earth engine 云计算平台的全国水体变化研究
第一个博客密码忘记了,今天才来开通第二个博客,时间已经过去两年了,三年的硕士生涯,真的是感慨良多,最有收获的一段时光,莫过于在实验室一个人敲着代码了,研三来得到中科院深圳先进院,在这里开始了新的研究生 ...
- Google Earth Engine学习资源分享
最近在学习Google Earth Engine的使用,发现这个平台确实是一个非常好用.非常强大的平台.在GEE官网上找到了一些中文的学习资料,现在搬运过来分享给大家共同学习.教程分为两个部分 教程一 ...
- Google earth engine 绘制图像间散点图
这段代码实现了在Google earth engine中绘制图像/波段间的散点图,得到相关关系.适用于探究数据间的相关性,进行数据的交叉验证. 代码来源于官方帮助:https://developers ...
- Google Earth Engine 中的位运算
Google Earth Engine中的位运算 按位运算是编程中一个难点,同时也是在我们后续处理影像数据,尤其要使用影像自带的波段比如QA波段经常会用到的一个东西.通过按位运算我们可以筛选出我们想要 ...
- Google earth engine 中的投影、重采样、尺度
本文主要翻译自下述GEE官方帮助 https://developers.google.com/earth-engine/guides/scale https://developers.google.c ...
- 基于Google Earth Engine的全国地表温度反演
国内研究landsat8温度反演的人员很多,但是现有算法一般都是一景为例子,进行开展. 这有一个局限性,当研究的尺度很大时,就需要比较大的运算量了,例如全省温度,全国温度,全球温度,当然大家可能会说, ...
- 使用google earth engine根据NDWI(归一化水指数)提取水体信息
交流合作请联系: ab000c@163.com
- 节能减排到底如何----google earth engine 告诉你!!
(First,再次严谨说明,本人成果未经允许,切勿发表到相关学术期刊,如果有技术交流,qq1044625113,顺便打个广告,兼职GEE开发,欢迎联系!) 终于过了严寒的冬天,2017年的冬天中国南方 ...
- 基于google earth engine的中等分辨率全国水质反演
我写博客的工作不像论文,假大空,我们直接上干货,之所以取一个这么大的名字,当然是我们能做到的... 不多说,我们对全国水体进行水质参数反演,不用MODIS,太粗,我们直接用哨兵,这样就可以直接做到大型 ...
随机推荐
- 1_ios系统httpstatus状态为0
这两天在开发中遇到了一个很奇怪的问题,我有一个上传文件的接口,在安卓系统运行完全没问题,但是一使用苹果系统运行就报错,看了下控制台和Network,发现HTTPStatus的状态为0 从来没见过状态返 ...
- Web初级——JavaScript
JavaScript JavaScript是一种基于对象的脚本语言,用于开发基于客户端和基于服务器的Internet应用程序 1.了解JS 1.1JavaScript的组成 JavaScript 的核 ...
- ACWJ_00扫描器
第一部分:词法扫描介绍 我们从一个简单的词汇扫描器开始我们的编译器编写之旅.正如我在之前部分所提到的,扫描器的任务是从输入语言中(用来编译的语句)识别词法元素或者是符号. 我们将定义一个只有5 ...
- csrf跨站请求伪造、csrf校验策略、csrf相关装饰器、auth认证模块、auth认证相关模块及操作、扩展auth_user表
今日内容 csrf跨站请求伪造 钓鱼网站:模仿一个正规的网站 让用户在该网站上做操作 但是操作的结果会影响到用户正常的网站账户,但是其中有一些猫腻 eg:英语四六级考试需要网上先缴费,但是你会发现卡里 ...
- 【转】C#接口知识
参考:日常收集 C# 接口知识 (知识全面) 目录 第一节 接口慨述 第二节 定义接口 第三节 定义接口成员 第四节.访问接口 第五节.实现接口 第六节.接口转换 第七节.覆盖虚接口 第一节 接口慨述 ...
- (16)go-micro微服务jaeger链路追踪
目录 一 jaeger链路追踪介绍 什么是链路追踪: 链路追踪主要功能: 二 jaeger链路追踪作用 三 jaeger链路追踪主要特性 四 jaeger链路追踪原理图 1.链路调用原理 2. 一次调 ...
- 动力节点——day07
什么是异常? 异常是指在程序的运行过程中所发生的不正常的事件,它会中断正在运行的程序 Java中异常的存在形式? 异常在java中以类的形式存在,每一个异常类都可以创建异常对象 异常的继承结构图 编译 ...
- Bootstrap Blazor Viewer 图片浏览器 组件更新, 支持流转图片(ImageFromStream), 用于本地项目例如 MAUI Blazor,Blazor hybrid
示例: https://blazor.app1.es/viewer 使用方法: 1.nuget包 BootstrapBlazor.Viewer 2._Imports.razor 文件 或者页面添加 添 ...
- python paramiko通过远程操作linux
python-paramiko通过远程操作linux 1. python-paramiko通过远程操作linux python3 远程操作linux 使用第三方paramiko库,对于实现运维自动部署 ...
- 【分析笔记】全志 i2c-sunxi.c 控制器驱动分析
分析平台:全志 A64 内核版本:Linux 4.9 数据手册:Allwinner_A64_User_Manual_V1.1.pdf (whycan.com) 驱动框架 I2C 设备驱动 作为方案应用 ...