Skip to content

Releases: Simularia/simulariatools

simulariatools 3.1.0

08 Jan 10:52

Choose a tag to compare

  • New feature: contourPlot2() utilizes the coordinates extent of a geo-referenced TIFF
    basemap file. If plot limits are not provided, use the basemap extent to set them. If
    xlim or ylim are provided, the basemap is automatically cropped.
  • contourPlot2() now deprecates background in favour of basemap.
  • contourPlot2() now deprecates domain in favour of xlim, ylim and nticks.
  • contourPlot2() now deprecates bare in favour of theme_void.
  • New function: turnerStabilityClass() to compute PGT stability class with Turner
    method.
  • Removed dependency on reshape2 package.
  • In plotStabilityClass(), fixed a bug when input data is a tibble.
  • In plotAvgRad(), fixed a bug where the bars at hours 0 and 23 were not
    always shown.
  • Fixed typos in the documentation.

simulariatools 3.0.0

11 Sep 20:19

Choose a tag to compare

Breaking changes

  • Deprecated functions contourPlot() and createBaseMap() have been
    removed.
  • downloadBasemap() now returns a tiff file with GeoTIFF metadata,
    instead of png.

New features

  • contourPlot2() introduces new arguments mask and inverse_mask.
    These allow plotting data only inside (or outside) a polygon specified
    by a shp file.
  • Labels in plotAvgTemp(), plotStabilityClass() and plotAvgRad()
    now respect the locale setting. The optional argument locale has
    also been added to override the system locale. Currently supported
    locales are Italian and English; unsupported locales are converted to
    English.
  • plotAvgRad() now includes options to change the y-axis label and the
    title.
  • plgtAvgTemp() and plotStabilityClass() gain date argument to specify the
    name of the column with datetime data.

Minor improvements and fixes

  • contourPlot2() now masks content outside the plot domain.
    Previously, values outside plot domain were set to NA's, which could
    potentially cause artefacts at the borders.
  • contourPlot2() has been updated to fix some breaking changes
    introduced by ggplot2 since version 3.5.0 where guide_legend()
    only draws a key glyph for a layer when the value is in the layer’s
    data.
  • contourPlot2() now removes -Inf from the levels list (if present)
    when plotting only contour lines.
  • In plotAvgRad(), a missing colour for average radiation in the
    legend has been fixed.
  • In plotAvgTemp(), a missing colour for average temperature in the
    legend has been fixed.
  • In plotAvgTemp(), a bug related to the name of the column with
    temperature data has been fixed.
  • In stabilityClass(), the tables defining the stability class as
    functions of radiation, wind speed and cloud cover have been slightly
    updated.
  • In stabilityClass() the impact method has been deprecated and
    renamed to iaea.
  • In plotStabilityClass(), a bug where a missing class was not shown
    in the legend has been fixed.
  • Almost all the dependencies from Openair have been removed.
  • Other minor bugs have been fixed and documentation has been updated
    and hopefully improved.

simulariatools 2.5.1

08 Nov 14:50

Choose a tag to compare

  • Removed Unicode symbols (on CRAN request).
  • Explicitly add x and y scales limits to contourPlot2.
  • Updated deprecated functions from scales package.
  • Bugfix: avoid Inf duplication in contourPlot2 legend.
  • Documentation: spell check and improvements.

simulariatools 2.5.0

22 Jun 07:14

Choose a tag to compare

  • Dependency from other packages has been reviewed. RColorBrewer, dplyr and
    png are not required anymore.
  • raster becomes suggested, since it is only required by the deprecated
    contourPlot() function. Geo processing is now performed by the required
    terra package.
  • Openair is now a suggested package.
  • Bugs were fixed in the Pasquill stability class functions stabilityClass()
    and plotStabilityClass(). Furthermore, some working examples have been added.
  • In contourPlot2(), deprecation of stat(level) and size of ggplot2()
    have been fixed.
  • Improved documentation and README file.

Version 2.4.0

29 Nov 23:52

Choose a tag to compare

The first version to be released on CRAN:

  • The package is ready to be submitted to CRAN.
  • Fixed many syntax errors, cleaned up code to try to comply with best practices.
  • Fixed warnings in the documentation and added some working examples in
    some functions.
  • Added some tests.
  • Added a sample dataset stMeteo with hourly values of wind speed, wind
    direction, temperature, global radiation, total cloud cover and stability class.
  • Renamed NEWS to NEWS.md.
  • Updated README file.

Version 2.3.1

19 Nov 12:50

Choose a tag to compare

  • Trying to fix issues with fonts in contourPlot2().
  • Updated readme file and fixed some minor issues in the documentation.

Version 2.3.0

22 Sep 14:14

Choose a tag to compare

  • BREAKING CHANGE: in raster plots with contourPlot2 (tile = TRUE) intervals are closed on the
    left and open on the right. In previous versions it was the opposite. In this way an interval
    [0 - 1) does include values equal to 0 and does not include values equal to 1.

Version 2.2.3

23 Jul 16:55

Choose a tag to compare

Version 2.2.3

Version 2.2.2

09 Jul 09:18

Choose a tag to compare

Version 2.2.2

Version 2.2.1

24 Mar 15:30

Choose a tag to compare

Version 2.2.1