Skip to contents

PEcAn.DB 1.8.2

Fixed

  • arrhenius.scaling.traits(): previously returned NULL when no temperature covariates were found, crashing query.trait.data() with argument is of length zero. The function now drops rows that lack a measurement temperature covariate and emits a logger.warn() with the row count. If no observations have any temperature covariate, an empty data frame (zero rows, same columns) is returned. The missing.temp argument is retained for backward compatibility but is no longer applied.

  • filter_sunleaf_traits(): returned NULL instead of data unchanged when no canopy_layer covariate was found. Now returns the input data frame unmodified in that case, consistent with the more standardised measurement protocol for sun-leaf traits.

  • query.trait.data(): the warning() call for missing trait data was placed after return(NA) and therefore never fired. Moved before the return and changed to logger.warn() for consistency with the rest of the codebase.

  • Refactored convert.input() internals into smaller, and hopefully more testable, chunks. No user-visible changes expected.

  • Roxygen cleanup.

PEcAn.DB 1.8.1

License change

  • PEcAn.DB is now distributed under the BSD three-clause license instead of the NCSA Open Source license.

Changed

  • Fixed several cases where dbfile.input.insert continued instead of returning early
  • Removed support for Browndog because the service is defunct

PEcAn.DB 1.8.0

Added

  • New functions stamp_started and stamp_finished, used to record the start and end time of model runs in the database. Both used to live in PEcAn.remote and were moved to resolve a circular dependency.
  • New function convert_input, used to convert between formats while reusing existing files where possible. It previously lived in package PEcAn.utils, but was moved here to simplify dependencies. (#3026; @nanu1605)
  • get.trait.data gains new argument write (with default FALSE), passed on to get.trait.data.pft (@Aariq, #3065).

PEcAn.DB 1.7.2

Removed

  • rename_jags_columns() has been removed from PEcAn.DB but is now available in package PEcAn.MA (#2805, @moki1202).

PEcAn.DB 1.7.1