8000 GitHub - szambran/rgee at v.0.1.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

szambran/rgee

Repository files navigation

Google Earth Engine for R

Build Status AppVeyor build status Codecov test coverage License lifecycle

Google Earth Engine is a cloud-based platform that allows users getting access to a petabyte-scale archive of remote sensing data and run geospatial analysis on Google’s infrastructure. The rgee package provides full access to the Google Earth Engine API from within R and defines additional tools for automating processes.

Earth Engine Python API:

import ee
ee.Initialize()
image = ee.Image('CGIAR/SRTM90_V4')
image.bandNames().getInfo()
#> ['elevation']

rgee:

library(rgee)
ee$Initialize()
image <- ee$Image('CGIAR/SRTM90_V4')
image$bandNames()$getInfo()
#> [1] "elevation"

TODO

  • Improve documentation.
  • Generate better examples.
  • py_help: Generate compressible documentation in an html format.
  • Unit testing

Features

  • ee$…: Complete access to the Earth Engine API from within R.
  • ee_Initialize: Multi-user support for Initialize Earth Engine, a wrapper around ee$Initialize.
  • ee_install: Interface for installing Selenium drivers and Python packages effortlessly.
  • ee_check: Interface for dependencies checking.
  • ee_manage: Manage EE assets and tasks recursively.
  • ee_map: Display EE spatial objects using mapview.
  • ee_print: Print EE metadata.
  • ee_upload: Upload ESRI shapefiles or GeoTIFF’s to Earth Engine.
  • ee_download: Download EE spatial objects.
  • ee_as_sf & sf_as_ee: Convert EE tables (Feature Collection) to sf and vice-versa.
  • ee_as_thumbnail: Create a stars object based on an EE thumbnail image.
  • ee_extract: Extract values for EE ImageCollections, similarly to raster::extract.
  • ee_search: Search among the Earth Engine Data Catalog.
  • ee_help: Display the Earth Engine documentation.

NOTE: Access to Google Earth Engine is currently only available to registered users.

Installation

Install development versions from github with

remotes::install_git("csaybar/rgee")

Windows

Before install rgee be sure that Rtools is installed in the system. The static libraries will automatically downloaded from rwinlib.

Linux

Please install the follow system libraries.

Ubuntu

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libprotobuf-dev protobuf-compiler libv8-3.14-dev libjq-dev libudunits2-dev libproj-dev libgeos-dev libspatialite-dev libgdal-dev libjson-c-dev libnetcdf-dev netcdf-bin

MacOS

Use Homebrew to install system libraries:

brew install pkg-config
brew install gdal
brew install netcdf
brew install libgit2
brew install udunits
brew install curl
brew install sqlite

Docker image (Recommended way to use rgee)

docker run -d -p 8787:8787 -e USER=rgee -e PASSWORD=rgee --name rgee-dev csaybar/rgee

After that, in your preferred browser, run:

127.0.0.1:8787

How does it works?

workflow

Credits

The rgee has been inspired by the following third-party R/Python packages:

Contributing

About

Google Earth Engine for R

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • R 92.4%
  • Python 6.6%
  • Dockerfile 1.0%
0