Code Monkey home page Code Monkey logo

postfire's Introduction

Fire and Climate Change in Fynbos

A workshop in modeling post-fire recovery and ecosystem resilience in fynbos systems.

The workshop will consist primarily of stepping through example code that explores the use of LANDSAT NDVI data in modeling post-fire recovery of fynbos. The materials for the course are all available in a Git Repository at https://github.com/adammwilson/postfire.

Repository Structure

The repository is structured as follows:

Obtaining the code (via the repository)

  1. Open RStudio
  2. File -> New Project -> Version Control -> GIT
  3. Repository URL [email protected]:adammwilson/postfire.git
  4. Choose a location on your harddisk to save the repository

Editing a Git repository

Git is designed to archive (multi-author) changes in text-based content (especially code). It is completely decentralized, so when you clone a copy of a repository, you have the complete content and history of the files. If you want to edit the code and later still be able to download updates, it's good practice to create a personal branch in your local copy. You can do this as follows:

  1. In RStudio, click on the Git tab in the upper right corner

  2. Select the little gear icon -> Shell. This will open a terminal window where you have access to all git commands that are not available in the GUI.

  3. in the Git command shell, type:

    git checkout -b yourname

    where yourname is a name for your new branch (e.g. adam or testing)

  4. Now look for the branch selector menu on the right side in the Git tab. You should see your new branch selected. If you click it, you will also see the master branch.

After switching to your new branch, you can edit and save the scripts. When you want to update to a newer version of the code, you need to:

  1. commit your changes
  2. pull updates from the master (look for the green down arrow or run git pull in the shell)
  3. If you've edited a script that has also been updated on the master, you many need to merge the documents

Pre-Workshop Preparation

Software

Please attempt to have the following software installed and functioning prior to the workshop:

  1. RStudio This includes an installation of R. Use of RStudio is not vital for the course, participants could use the GUI included with R or another interface (e.g. EMACS-ESS if desired. However, in class we'll be demonstrating the use of RStudio, so it will be most straightforward if you use that.
  2. R packages. These are installed either with a package manager or via the command line (e.g. install.packages(raster)). See for here for a list of packages that we'll be using.
  3. GRASS. We'll be giving a brief introduction to this full featured open-source GIS in one section of the workshop. It isn't vital that you have it installed , but if you do, you'll be able to follow along. If you do, please also install the spGRASS6 R library.
  4. JAGS Program for analysis of Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC) simulation. You will also need the rjags library (included in list of R libraries above).

Workshop objectives

  1. Introduce participants to methods for quantifying post-fire recovery using satellite data
  2. Provide an example of using LANDSAT data and covariates to quantify variability in post-fire recovery over the Cape Peninsula of South Africa.

Day 1

Session 1 (9am - 12pm)

Session 2 (1pm - 4pm)

Day 2

Session 1 (9am - 12pm)

Session 2 (1pm - 4pm)

postfire's People

Contributors

adammwilson avatar gmoncrieff avatar jslingsby avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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.