PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
202 stars 230 forks source link

Fix to job.sh model2netcdf line #3075

Closed Aariq closed 1 year ago

Aariq commented 1 year ago

Description

With large numbers of PFTs the model2netcdf.ED2() line in job.sh would get cut off. This is because deparse() has a default line width cutoff and would then split the output into multiple lines. I've replaced it with deparse1() which always produces a character vector of length 1.

Motivation and Context

The model2netcdf.ed2() step was failing for runs with more than a few PFTs

Review Time Estimate

Types of changes

Checklist: