Code Monkey home page Code Monkey logo

rimpd's Introduction

rIMPD

R build status

Explore North American Fire-Scar Records from the International Multiproxy Paleofire Database

rIMPD provides basic functions to explore and extract tree-ring data stored on the International Multiproxy Paleofire Database (IMPD), hosted by the National Centers for Environmental Information under the US National Oceanic and Atmospheric Administration. The IMPD falls under the World Data Service for Paleoclimatology (WDS-Paleo): https://www.ncei.noaa.gov/products/paleoclimatology, and has become the defacto warehouse for publicly-accessible tree-ring fire history data.

For an overview of the package with some useful examples, run the following code: vignette(topic = "Introduction-to-rIMPD", package = "rIMPD")

Usage

Using rIMPD, you can discover the fire history sites across the North American continent:

library(rIMPD)
library(ggplot2)
library(dplyr)
library(sf)

all_sites <- search_impd() %>% 
    st_as_sf(coords = c("longitude", "latitude"), crs=4326) 

ggplot() +
  geom_sf(data = spData::world) +
  geom_sf(data = all_sites, color = "purple") +
  coord_sf(xlim=c(-165, -50), ylim=c(15, 70)) +
  labs(title = "North American Tree-Ring Records on the IMPD",
       caption = paste0("Data current as of ", lubridate::today())
       ) +
  theme_void()

The tree-ring data associated with each site can be obtained directly:

site_to_get <- all_sites[10, ]$studyCode
fhx <- get_impd_fhx(site_to_get)

and analyzed with tools from the burnr library (Malevich et al. 2018), for example:

library(burnr)
plot_demograph(fhx, 
               composite_rug = TRUE,
               plot_legend = TRUE) +
  labs(title = all_sites[10, ]$siteName, 
       subtitle = paste0("Collected by: ", all_sites[10, ]$investigators),
       caption = "Tree-ring fire history plot. Each horizontal line represents the life-span
       of a tree, with vertical tick marks denoting  fire scars recorded in the tree rings. 
       At bottom, vertical dashes indicate 'widespread' fires that were recorded on 25% of 
       the trees.")

Funding for rIMPD was provided by the USGS Community for Data Integration https://www.usgs.gov/centers/cdi

Disclaimer

This software is in the public domain because it contains materials that originally came from the U.S. Geological Survey, an agency of the United States Department of Interior. For more information, see the official USGS copyright policy.

Although this software program has been used by the U.S. Geological Survey (USGS), no warranty, expressed or implied, is made by the USGS or the U.S. Government as to the accuracy and functioning of the program and related program material nor shall the fact of distribution constitute any such warranty, and no responsibility is assumed by the USGS in connection therewith.

This software is provided “AS IS.”

Reference

Malevich, S.B., Guiterman, C.H., and Margolis, E.Q (2018). burnr: Fire History Analysis and Graphics in R. Dendrochronologia 49 (June): 9–15. https://doi.org/10.1016/j.dendro.2018.02.005

rimpd's People

Contributors

chguiterman avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

rimpd's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.