Skip to content

jackagoldman/insect-fire-overlap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

36 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Code for implementing quasi-experiment matched pairs design within fires that have areas that were affected and not affected by insect disturbance.

Static Badge Static Badge

Steps:

  • Fork this repository Github docs

  • run renv::restore() to reproduce r environment

  • update the _targets.R file to include paths to files under the directories subheader

    • fire_path <- "<path/to/my/fire/shpfile>"
    • defol_path <- "<path/to/my/insect/shpfile>"
    • RES_DIR <- "<path/to/my/results/folder>"
  • update the _targets.R file to input the max, min and gap year for intersection function.

  • make sure to save _targets.R file after every change

  • Run the pipeline, using tar_make() from the targets package

NOTES:

  • Fire polygon shapefile must have column Fire_ID, Fire_Year (both case sensitive) and a geometry column. It is recommended that you remove all other columns.
  • Insect disturbance shapefile must have a Year column with one row per year, and a geometry column. It is recommended that you remove all other columns.

CC BY 4.0

This work is licensed under a Creative Commons Attribution 4.0 International License.

CC BY 4.0

About

identify wildfires that were defoliated ๐Ÿ”ฅ ๐Ÿ›

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages