PecanProject / pecan

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

wrong dimensions assigned for some variables by `model2netcdf.ED2()` #3069

Open Aariq opened 1 year ago

Aariq commented 1 year ago

Bug Description

Consistently get warnings from ncvar_put() like:

[1] "ncvar_put: warning: you asked to write 6912 values, but the passed data array has 12288 entries!"

I think this is because one of the put_*_values() functions is assigning dimensions incorrectly or something.

To Reproduce

run model2netcdf.ED2() on ED2 output.

Expected behavior

No warnings!

Aariq commented 1 year ago

I believe this is fixed for the monthly -E- files data, but not for -T- files.