Title: | PEcAn Package for Integration of the SiBCASA Model |
---|---|
Description: | This module provides functions to link (SiBCASA) to PEcAn. It is a work in progress and is not yet fully functional. |
Authors: | Rob Kooper [cre], Tony Gardella [aut], Yasin Elshorabany [aut], Chris Black [aut], University of Illinois, NCSA [cph] |
Maintainer: | Rob Kooper <[email protected]> |
License: | BSD_3_clause + file LICENSE |
Version: | 0.0.1.9000 |
Built: | 2024-11-20 21:33:15 UTC |
Source: | https://github.com/PecanProject/pecan |
Converts a met CF file to a sibcasa specific met file. The input files are calld <in.path>/<in.prefix>.YYYY.cf
met2model.SIBCASA(in.path, in.prefix, outfolder, overwrite = FALSE)
met2model.SIBCASA(in.path, in.prefix, outfolder, overwrite = FALSE)
in.path |
path on disk where CF file lives |
in.prefix |
prefix for each file |
outfolder |
location where model specific output is written |
overwrite |
logical: Replace output if it already exists? |
OK if everything was succesful.
Tony Gardella
Convert SIBCASA output into the NACP Intercomparison format (ALMA using netCDF)
model2netcdf.SIBCASA(outdir, sitelat, sitelon, start_date, end_date)
model2netcdf.SIBCASA(outdir, sitelat, sitelon, start_date, end_date)
outdir |
Location of model output |
sitelat |
Latitude of the site |
sitelon |
Longitude of the site |
start_date |
Start time of the simulation |
end_date |
End time of the simulation |
Tony Gardella
Read restart files from model.
read_restart.SIBCASA(outdir, runid, stop.time, settings, var.names, params)
read_restart.SIBCASA(outdir, runid, stop.time, settings, var.names, params)
outdir |
Output directory |
runid |
Run ID |
stop.time |
Year that is being read |
settings |
PEcAn settings object |
var.names |
Variable names to be extracted |
params |
Any parameters required for state calculations |
Forecast numeric matrix
Alexey Shiklomanov
TODO: Provide a complete description here of the dataset, including its origin and purpose. The column descriptions below were written by someone looking at the file with no insight into its usage
sibcasa_output_vars
sibcasa_output_vars
data frame with 6 unnamed columns
? (t 0, t 3, etc)
short name
row number?
description
units
unused
Write restart files for model
write_restart.SIBCASA( outdir, runid, start.time, stop.time, settings, new.state )
write_restart.SIBCASA( outdir, runid, start.time, stop.time, settings, new.state )
outdir |
Output directory |
runid |
Run ID |
start.time |
Time of current assimilation step |
stop.time |
Time of next assimilation step |
settings |
PEcAn settings object |
new.state |
Analysis state matrix returned by |
Alexey Shiklomanov
Requires a pft xml object, a list of trait values for a single model run, and the name of the file to create
write.config.SIBCASA(defaults, trait.values, settings, run.id)
write.config.SIBCASA(defaults, trait.values, settings, run.id)
defaults |
list of defaults to process |
trait.values |
vector of values for a given trait |
settings |
list of settings from pecan settings file |
run.id |
id of run |
configuration file for SIBCASA for given run
Anthony Gardella, Rob Kooper