Open Sustainable Technology

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

Browse accepted projects | Review proposed projects | Propose new project | Open Issues


R client for interacting with the USA National Phenology Network data web services.

data national-phenology-network phenology r r-package rstats species web-api

Last synced: about 10 hours ago
JSON representation

Repository metadata

R client for the National Phenology Network database API





```{r echo=FALSE}
comment = "#>",
collapse = TRUE,
warning = FALSE,
message = FALSE,

[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](](
[![CRAN status](](
[![R build status](](

`rnpn` is an R client for interacting with the USA National Phenology Network data web services. These services include access to a rich set of observer-contributed, point-based phenology records as well as geospatial data products including gridded phenological model and climatological data.

Documentation is available for the National Phenology Network [API documentation](, which describes the full set of REST services this package wraps.

There is no need for an API key to grab data from the National Phenology Network but users are required to self identify, on an honor system, against requests that may draw upon larger datasets. For functions that require it, simply populate the request_source parameter with your name or the name of your institution.

## Installation

CRAN version

```{r eval=FALSE}

Development version:

```{r eval=FALSE}


This package has dependencies on both curl and gdal. Some Linux based systems may require additional system dependencies for those required packages, and accordingly this package, to install correctly. For example, on Ubuntu:

```{r eval=FALSE}
sudo apt install libcurl4-openssl-dev
sudo apt install libproj-dev libgdal-dev

## The Basics

Many of the functions to search for data require knowing the internal unique identifiers of some of the database entities to filter the data down efficiently. For example, if you want to search by species, then you must know the internal identifier of the species. To get a list of all available species use the following:

```{r eval=FALSE}
species_list <- npn_species()

Similarly, for phenophases:

```{r eval=FALSE}
phenophases <- npn_phenophases()

### Getting Observational Data

There are four main functions for accessing observational data, at various levels of aggregation. At the most basic level you can download the raw status and intensity data.

```{r eval=FALSE}
some_data <- npn_download_status_data(request_source='Your Name or Org Here',years=c(2015),species_id=c(35),states=c('AZ','IL'))

Note that through this API, data can only be filtered chronologically by full calendar years. You can specify any number of years in each API call. Also note that request_source is a required parameter and should be populated with your name or the name of the organization you represent.
All other parameters are optional but it is highly recommended that you filter your data search further.

### Getting Geospatial Data

This package wraps around standard WCS endpoints to facilitate the transfer of raster data. Generally, this package does not focus on interacting with WMS services, although they are available. To get a list of all available data layers, use the following:

```{r eval=FALSE}
layers <- npn_get_layer_details()
You can then use the name of the layers to select and download geospatial data as a raster.

```{r eval=FALSE}
npn_download_geospatial(coverage_id = 'si-x:lilac_leaf_ncep_historic',date='2016-12-31',format='geotiff',output_path='./six-test-raster.tiff')

## Example of combined observational and geospatial data
For more details see Vignette VII

```{r, echo=FALSE, out.width = "70%", fig.pos="h"}

## What's Next

Please read and review the vignettes for this package to get further information about the full scope of functionality available.

## Acknowledgments

This code was developed, in part, as part of the integrated [Pheno-Synthesis Software Suite (PS3)]( The authors acknowledge funding for this work through NASA's AIST program (80NSSC17K0582, 80NSSC17K0435, 80NSSC17K0538, and 80GSFC18T0003). The University of Arizona and the USA National Phenology Network's efforts with this package are supported in part by US Geological Survey (G14AC00405, G18AC00135) and the US Fish and Wildlife Service (F16AC01075 and F19AC00168).

## Meta

* Please [report any issues or bugs](
* License: MIT
* Get citation information for `rnpn` in R doing `citation(package = 'rnpn')`
* Please note that this package is released with a [Contributor Code of Conduct]( By contributing to this project, you agree to abide by its terms.


Owner metadata

GitHub Events

Last Year

Committers metadata

Last synced: 1 day ago

Total Commits: 222
Total Committers: 11
Avg Commits per committer: 20.182
Development Distribution Score (DDS): 0.527

Commits in past year: 17
Committers in past year: 3
Avg Commits per committer in past year: 5.667
Development Distribution Score (DDS) in past year: 0.412

Name Email Commits
Scott Chamberlain m****s@g****m 105
npnlee85 l****e@u****g 45
[email protected] n****5@g****m 32
alyssarosemartin a****n@g****m 19
David LeBauer d****r@a****u 6
Eric R. Scott s****r@g****m 4
Jeff Switzer j****r@g****m 3
Kevin Wong k****n@u****g 3
Maëlle Salmon m****n@y****e 3
Jeroen Ooms j****s@g****m 1
steven2249 s****w@b****u 1

Committer domains:

Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 24
Total pull requests: 11
Average time to close issues: over 1 year
Average time to close pull requests: 2 months
Total issue authors: 11
Total pull request authors: 5
Average comments per issue: 3.0
Average comments per pull request: 1.36
Merged pull request: 8
Bot issues: 0
Bot pull requests: 0

Past year issues: 2
Past year pull requests: 3
Past year average time to close issues: 16 days
Past year average time to close pull requests: about 2 months
Past year issue authors: 2
Past year pull request authors: 1
Past year average comments per issue: 1.5
Past year average comments per pull request: 0.0
Past year merged pull request: 1
Past year bot issues: 0
Past year bot pull requests: 0

More stats:

Top Issue Authors

  • sckott (13)
  • tdlan80 (2)
  • ahhurlbert (1)
  • cboettig (1)
  • djhocking (1)
  • jeffswitzer (1)
  • lzachmann (1)
  • maelle (1)
  • Peter9192 (1)
  • rsbivand (1)
  • vijaybarve (1)

Top Pull Request Authors

  • npnlee85 (4)
  • Aariq (3)
  • dlebauer (2)
  • stevenysw (1)
  • maelle (1)

Top Issue Labels

  • bug (4)

Top Pull Request Labels

Package metadata rnpn

Interface to the National 'Phenology' Network 'API'

  • Homepage:
  • Documentation:
  • Licenses: MIT + file LICENSE
  • Latest release: 1.2.6 (published 6 months ago)
  • Last Synced: 2024-02-27T18:00:48.897Z (1 day ago)
  • Versions: 11
  • Dependent Packages: 0
  • Dependent Repositories: 2
  • Downloads: 645 Last month
  • Docker Downloads: 88,602
  • Rankings:
    • Docker downloads count: 0.018%
    • Forks count: 6.901%
    • Stargazers count: 13.388%
    • Average: 14.539%
    • Downloads: 19.528%
    • Dependent repos count: 19.546%
    • Dependent packages count: 27.852%
  • Maintainers (1)


  • R >= 3.5.0 depends
  • XML * imports
  • curl * imports
  • data.table >= 1.9.6 imports
  • httr >= 1.1.0 imports
  • jsonlite >= 0.9.19 imports
  • magrittr * imports
  • plyr * imports
  • raster * imports
  • rgdal * imports
  • sp >= 1.1 imports
  • tibble * imports
  • RColorBrewer * suggests
  • covr * suggests
  • ggplot2 * suggests
  • knitr * suggests
  • markdown * suggests
  • rmarkdown * suggests
  • testthat * suggests
  • vcr * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/upload-artifact main composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite

Score: 16.841625614582703