Title: | PEcAn Package for Integration of FATES Model |
---|---|
Description: | The Predictive Ecosystem Carbon Analyzer (PEcAn) is a scientific workflow management tool that is designed to simplify the management of model parameterization, execution, and analysis. The goal of PECAn is to streamline the interaction between data and models, and to improve the efficacy of scientific investigation. This package provides functions to link the FATES model to PEcAn. |
Authors: | Mike Dietze |
Maintainer: | Mike Dietze <[email protected]> |
License: | BSD_3_clause + file LICENSE |
Version: | 1.7.3.9000 |
Built: | 2024-12-17 17:29:37 UTC |
Source: | https://github.com/PecanProject/pecan |
met2model wrapper for FATES
met2model.FATES( in.path, in.prefix, outfolder, start_date, end_date, lst = 0, lat, lon, overwrite = FALSE, verbose = FALSE, ... )
met2model.FATES( in.path, in.prefix, outfolder, start_date, end_date, lst = 0, lat, lon, overwrite = FALSE, verbose = FALSE, ... )
in.path |
location on disk where inputs are stored |
in.prefix |
prefix of input and output files |
outfolder |
location on disk where outputs will be stored |
start_date |
the start date of the data to be downloaded |
end_date |
the end date of the data to be downloaded |
lst |
timezone offset to GMT in hours |
lat , lon
|
latitude and longitude of site in decimal degrees |
overwrite |
should existing files be overwritten |
verbose |
should the function be very verbose for(year in start_year:end_year) |
... |
additional arguments, currently ignored |
Code to convert FATES netcdf output into into CF standard
model2netcdf.FATES( outdir, sitelat, sitelon, start_date, end_date, vars_names, pfts )
model2netcdf.FATES( outdir, sitelat, sitelon, start_date, end_date, vars_names, pfts )
outdir |
Location of FATES model output (e.g. a path to a single ensemble output) |
sitelat |
Latitude of the site |
sitelon |
Longitude of the site |
start_date |
Start time of the simulation, not string |
end_date |
End time of the simulation, not string |
vars_names |
Names of Selected variables in PEcAn format, (e.g. c("","")) |
pfts |
a named vector of PFT numbers where the names are PFT names |
Michael Dietze, Shawn Serbin
## Not run: example.output <- system.file("case.clm2.h0.2004-01-01-00000.nc",package="PEcAn.FATES") model2netcdf.FATES(outdir="~/",sitelat, sitelon, start_date, end_date, vars_names, pfts) ## End(Not run)
## Not run: example.output <- system.file("case.clm2.h0.2004-01-01-00000.nc",package="PEcAn.FATES") model2netcdf.FATES(outdir="~/",sitelat, sitelon, start_date, end_date, vars_names, pfts) ## End(Not run)
recursively follow the file structure in 'ins' and create all the same folders in 'path' as well as symbolic links to all the file. This is done, rather than creating a symbolic link to the whole structure, so individual files can later be unlinked and replaced with different files/links.
recurse.create(path, ins)
recurse.create(path, ins)
path |
new location to create folders and links |
ins |
reference location of inputs |
Mike Dietze
Writes config files for use with FATES.
write.config.FATES(defaults, trait.values, settings, run.id)
write.config.FATES(defaults, trait.values, settings, run.id)
defaults |
list of defaults to process |
trait.values |
vector of samples for a given trait |
settings |
list of settings from pecan settings file |
run.id |
id of run |
none
Mike Dietze, Shawn Serbin