A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

forestables

Read and uniformize forest inventories data from the FIA (USA forest inventory), FFI (France forest inventory) and IFN (Spain forest inventory).
https://github.com/emf-creaf/forestables

Category: Biosphere
Sub Category: Forest Observation and Management

Keywords

forestry opendata r

Last synced: about 17 hours ago
JSON representation

Repository metadata

Read and uniformize forest inventories data from the FIA (USA forest inventory), FFI (France forest inventory) and IFN (Spain forest inventory) from R

README.Rmd

          ---
output: github_document
---

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

# forestables forestables website

[![R-CMD-check](https://github.com/emf-creaf/forestables/actions/workflows/R-CMD-check_main.yaml/badge.svg)](https://github.com/emf-creaf/forestables/actions/workflows/R-CMD-check_main.yaml)

Read and uniformize forest inventories data from the FIA (USA forest inventory), FFI (France forest
inventory) and IFN (Spain forest inventory).

## Installation

You can install the development version of forestables from
[GitHub](https://github.com/emf-creaf/forestables) with:

``` r
# install.packages("devtools")
devtools::install_github("emf-creaf/forestables")
```

## Inventories files

`forestables` offers download functions to get the inventory files from the official
websites from each inventory:

  - [FIA](https://www.fs.usda.gov/research/products/dataandtools/tools/fia-datamart)  
  - [FFI](https://inventaire-forestier.ign.fr/dataifn/?lang=en)  
  - IFN:
      - [IFN2](https://www.miteco.gob.es/es/biodiversidad/servicios/banco-datos-naturaleza/informacion-disponible/ifn2_descargas.html)
      - [IFN3](https://www.miteco.gob.es/es/biodiversidad/servicios/banco-datos-naturaleza/informacion-disponible/ifn3_bbdd_descargas_htm.html)
      (*accdb* are be used)
      - [IFN4](https://www.miteco.gob.es/es/biodiversidad/temas/inventarios-nacionales/inventario-forestal-nacional/cuarto_inventario.html)

We recommend to manually download and unzip the data in the desired folder.
Download functions are offered as helpers for programmatically approaches, but users should
be careful as data can be missing due to connection errors, link changes...

## Example

Download FFI (France forest inventory) and extract all plots from the Loire department for 2015:

```{r example_run}
library(forestables)
library(dplyr)

## Downloading all FFI data (if not already)
ffi_path <- tempdir()
download_inventory("FFI", destination = ffi_path)

## Get the plots
loire_plots_2015 <- ffi_to_tibble(
  "42",
  years = 2015,
  folder = ffi_path
) |>
  clean_empty(c("tree", "shrub", "regen")) |>
  inventory_as_sf()

## Explore the plots
loire_plots_2015
```
        

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 401
Total Committers: 3
Avg Commits per committer: 133.667
Development Distribution Score (DDS): 0.302

Commits in past year: 167
Committers in past year: 3
Avg Commits per committer in past year: 55.667
Development Distribution Score (DDS) in past year: 0.084

Name Email Commits
MalditoBarbudo v****a@g****m 280
adrianatovar o****7@g****m 120
Miquel De Cáceres m****s@g****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 35
Total pull requests: 2
Average time to close issues: 3 months
Average time to close pull requests: about 2 hours
Total issue authors: 3
Total pull request authors: 2
Average comments per issue: 0.8
Average comments per pull request: 3.0
Merged pull request: 2
Bot issues: 0
Bot pull requests: 0

Past year issues: 12
Past year pull requests: 1
Past year average time to close issues: 3 days
Past year average time to close pull requests: about 5 hours
Past year issue authors: 3
Past year pull request authors: 1
Past year average comments per issue: 1.17
Past year average comments per pull request: 6.0
Past year merged pull request: 1
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/emf-creaf/forestables

Top Issue Authors

  • MalditoBarbudo (30)
  • miquelcaceres (4)
  • adrianatovar (1)

Top Pull Request Authors

  • adrianatovar (1)
  • miquelcaceres (1)

Top Issue Labels

  • bug (26)
  • enhancement (4)
  • wontfix (3)

Top Pull Request Labels


Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • data.table * depends
  • dtplyr * depends
  • assertthat * imports
  • cli * imports
  • dplyr * imports
  • fs * imports
  • furrr * imports
  • glue * imports
  • rlang * imports
  • sf * imports
  • stringr * imports
  • tidyr * imports
  • future * suggests
  • testthat >= 3.0.0 suggests

Score: 3.401197381662156