Skip to content

*** v0.8.0 ***

Compare
Choose a tag to compare
@MagicForrest MagicForrest released this 18 Mar 14:07
· 325 commits to master since this release

This release has some minor new features, few minor bug fixes and some tidying and cleaning. Although the list of changes below is quite long, they shouldn't effect the core functionality of the package.

See also new repository for example scripts at https://github.com/MagicForrest/DGVMTools_Scripts

Feature improvements:

  • The getBiomes() function can now take a list of Source objects and average over them before calculating the biomes (#19)
  • Seasonal comparison metrics, including Mean Phase Difference, now included. plotSpatial also works for seasonal comparisons.
  • The compareLayers() function can now calculate user-defined metrics.
  • Function plotSubannual() included as a replacement for plotSeasonal(). plotSeasonal() had an inconsistent interface with the other plot functions and is now deprecated. In contrast, plotSubannual() has consistent arguments and also re-uses more code internally, however facetting is not yet fully implemented.
  • In selectGridcells(), the @spatial.extent now stores the gridcells or shapefile that was used.
  • Comparison objects now has an @type characters slot to say if they are "continuous", "categorical", "seasonal" or "relative.abundance" (this is also a potential break).

Potential breaks:

  • Fields are now saved to disk using the .RData file extension instead of .DGVMField to be more consistent with the R universe. You can simply rename your files of necessary.
  • Ugly LAI colour palette removed.
  • Function countCategoricalData() removed.
  • Function byIDfromList() now internal.
  • Function addArea() makes layers called "Area" instead of "area".
  • The @stats slot of a Comparison object is now a simple R list instead of a class, giving much more flexibility and the possibility for user-defined metrics.

Bug fixes:

  • Fields ids now done more consistently.
  • Function renameLayers() now actually returns the Field

Behind the scenes:

  • More code from plotSpatial() factored out into plotting-framework-functions.R
  • Benchmarking code re-organised
  • getBiomes() much slimmed down by removing code for cropping/aggregating (this was redundant since it was done in the getField calls)
  • udunits2 dependency removed