Skip to content

Commit

Permalink
moved ncdf dependency in sipnet module to "Depends" field in DESCRIPTION
Browse files Browse the repository at this point in the history
  • Loading branch information
dlebauer committed Jan 28, 2013
1 parent cca78a0 commit 5f3e065
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion models/sipnet/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ Description: The Predictive Ecosystem Carbon Analyzer (PEcAn) is a scientific
efficacy of scientific investigation.
Depends:
PEcAn.utils,
coda
coda,
ncdf
Suggests:
testthat
SystemRequirements: SIPNET ecosystem model
Expand Down
4 changes: 2 additions & 2 deletions models/sipnet/R/model2netcdf.SIPNET.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
# http://opensource.ncsa.illinois.edu/license.html
#-------------------------------------------------------------------------------
#--------------------------------------------------------------------------------------------------#
##' Convert SIPNET output to netCDF
##'
##' Converts all output contained in a folder to netCDF.
##' @name model2netcdf.SIPNET
##' @title Function to convert SIPNET model output to standard netCDF format
##' @param outdir Location of SIPNET model output
##'
##' @export
##' @author Shawn Serbin, Michael Dietze
model2netcdf.SIPNET <- function(outdir) {
require(ncdf)

### Read in model output in SIPNET format
sipnet.output <- read.table(file.path(outdir, "sipnet.out"), header=T, skip=1, sep='')
Expand Down

0 comments on commit 5f3e065

Please sign in to comment.