-conda install earthengine-api=0.1.370 -rgee: 0.1.7

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

rgee2

R-CMD-check codecov

Installation

You can install the development version of rgee2 from GitHub with:

# install.packages("remotes")
remotes::install_github("rpkgs/rgee2")

网络设置详见:网络设置.md

Example

This is a basic example which shows you how to solve a common problem:

library(rgee2)
library(rgee)
ee_Initialize(drive = TRUE)

Illustration by EAR5L data

# bands = c('T', "Tdew", 'Pa', 'Rn', 'ET', 'U2')
year = 2020
month = 1
col <- ee$ImageCollection("ECMWF/ERA5_LAND/HOURLY")$
    filter(ee$filter$Filter$calendarRange(year, year, "year"))$
    filter(ee$filter$Filter$calendarRange(month, month, "month"))$
    select(0:4)
# print(col)

img = col$first()
print(img)
ee_timestart(col) %>% head()
ee_timeend(col) %>% head()

ee_bandNames(col)
ee_bandNames(img)

ee_properties(col)
ee_aggregate_array(col, prop = "system:index")


rpkgs/rgee2 documentation built on May 31, 2024, 6:58 p.m.