Hysplit setup - lhenneman/hyspdisp GitHub Wiki

Running Hysplit on the Harvard Odyssey cluster

Installing Hysplit

cd /n/regal/zigler_lab/software
svn --username xxx xxx # see instructions in email
cd hysplit/trunk
./compile.sh base

Testing Hysplit

From a directory in your home folder, test the installation with:

library(SplitR)

dir.create("model1", showWarnings = FALSE)
setwd("model1")

trajectory1 <- 
  hysplit_trajectory(
    lat = 42.83752,
    lon = -80.30364,
    height = 50,
    duration = 24,
    run_period = "2007-02-02",
    daily_hours = c(0, 12),
    direction = "forward",
    met_type = "reanalysis",
    met_dir = "/n/home03/cchoirat/Documents/met_folder")

unlink("model1", recursive = TRUE)

setwd("..")

dir.create("model2", showWarnings = FALSE)
setwd("model2")

trajectory2 <- 
  hysplit_trajectory(
    lat = 42.83752,
    lon = -80.30364,
    height = 50,
    duration = 24,
    run_period = "2008-02-02",
    daily_hours = c(0, 12),
    direction = "forward",
    met_type = "reanalysis",
    met_dir = "/n/home03/cchoirat/Documents/met_folder")

unlink("model2", recursive = TRUE)