PecanProject / pecan

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

`model2netcdf.ED2()`—Fix dimension issues when PFTs missing from ED2 output (Follow up on #3140) #3143

Closed Aariq closed 1 year ago

Aariq commented 1 year ago

Description

Apparently https://github.com/PecanProject/pecan/pull/3140 didn't fix this bug entirely. If a PFT is missing from the ED2 output for a full year, then there were still problems with the dimensions. Instead of using the ED2 output to figure out what PFTs need to have NAs for the output, this PR changes it to use the PFTs supplied by the user (e.g. in settings).

Motivation and Context

Review Time Estimate

Types of changes

Checklist: