Skip to content

Releases: eliocamp/metR

metR 0.18.3

07 Jan 02:59

Choose a tag to compare

Bug fixes

  • Fixed I() notation in ReadNetCDF() subset.

metR 0.18.2

15 Sep 06:29

Choose a tag to compare

New features

  • ReadNetCDF() now supports cdo operations via the rcdo package. You can pass an rcdo operation and it will be executed.

  • ReadNetCDF() gains support for reading data from multiple files potentially in parallel.

Bug fixes

  • ResidLm() now returns a vector with NAs.
  • ReadNetCDF() with subset used to return the data based on the coordinate closest to the subset dimensions. This mean that subset = list(lat = c(-90, -20)) could return data north of 20°S if the gridpoint north of 20°S was closer to 20°S than the gridpoint South of it. While not a problem in general, this could fail catastrophically if the file didn't have data inside the requested range. This now is fixed to that it returns only data inside the desired range.

metR 0.18.1

13 May 07:32

Choose a tag to compare

New features

  • geom_streamline() will replace missing values with zeroes.
  • New ParseNetCDFtime() to quickly parse netCDF time axes.

Potentially breaking changes

  • ReadNetCDF()` now uses the CFtime package to parse times. This shouldn't lead to any braking changes, but times are weird and anything can happen. Please report anything amiss.

metR 0.18.0

19 Mar 22:59

Choose a tag to compare

New features

  • ReadNetCDF() can now subset based on dimension indices instead of dimension values. This makes it possible to read "the first 10 timesteps" or "the last 10 timesteps" without needing to know which dates they correspond to and how many timesteps are in total.

metR 0.17.0

19 Mar 22:58

Choose a tag to compare

Bug fixes

  • Longitude scales now properly pass the trans/transform argument.

metR 0.16.0

15 Oct 02:15

Choose a tag to compare

New features

  • EOF()'s rotate argument now will take a function to apply to the EOF loadings. rotate = TRUE is still supported but deprecated and will default to using function(x) stats::varimax(x, normalize = FALSE).

  • Contour functions gain a proj.latlon to decide if the projection needs to go to latlon coordinates or to projected coordinates.

Breaking changes

  • The GetSMNData() function is defunct. The functionality was a hack and hard to maintain and it's also very specific and should be out of scope for a general package.
  • The trans argument of scales has been renamed to transform following ggplot2's change.
  • scale_mag() internals are now much simpler and inherits all the functionality from common continuous scales. (thanks @teunbrand for the suggestion, #186)
  • The step computed variable in geom_streamline() now goes from 0 to the total number of steps instead of from negative half to positive half.

metR 0.15.0

09 Feb 14:55

Choose a tag to compare

New features

  • The contour functions gain a clip argument to only show contours in an area defined by a polygon.
  • The kriging argument of the contour functions now can be a numeric to control de number of pixels used.
  • Documentation of FitWave() and friends improved (#184, @pascaloettli).

Breaking changes

  • The proj argument in geom_contour_fill() and friends now operate over the isolines returned by the isoband package. This might break code that used a custom function to proj.

Bug Fixes

  • Guides are compatible with the new versions of ggplot2 (#117 and #185, @teunbrand).
  • Contour functions will work even if OutDec is not ".".

metR 0.14.1

30 Oct 20:45

Choose a tag to compare

Breaking Changes

  • The DivideTimeseries() function is now defunct.

New Features

  • FitLm() gains a new intercept argument that allows you to remove the intercept term that is automatically added.

Bug Fixes

  • Fixes error in Laplacian() when computing the laplacian of a single variable. (#170, Thanks @pascaloettli)
  • Removes dependencies on raster and gdal packages.

metR 0.14.0

25 Mar 14:03

Choose a tag to compare

New Features

  • Not really a new feature per se, but all geoms now support the new linewidth aesthetic. geom_relief() and geom_shadow() now don't have a size aesthetic, since they shouldn't have had it anyway.
  • The value of the maximum vector magnitude in scale_mag() is now chosen to be a "pretty" number close to the maximum. This will prevent guides with many unnecesary decimal places (thanks, @PanfengZhang #161).

Bug Fixes

  • Documents the correct default expand value in sale_x_longitude() and friends (thanks, @tamas-ferenci, #167).
  • Fixes inconsistencies in generic methods.

metR 0.13.0

06 Oct 22:45

Choose a tag to compare

New features

  • The new function Smooth2D() smooths a 2D field (hence the name). There are two smoothing methods. smooth_svd() computes the SVD of the field and reconstructs it keeping only the leading values that ensures a maximum variance lost. smooth_dct() computes the Discrete Cosine Transform of the field and sets a proportion of the components to zero.

Bug Fixes

  • Fixed a bug in geom_streamline() when plotting multiple fields on the same panel.

  • Fixes a bug with GetTopography() on Windows.

  • Updates documentation to use valid HTML5 per CRAN's new format.

  • Fixes the "The following aesthetics were dropped during statistical transformation" warning for contours.

  • Removes ReadNetCDF() file and URL checking because it didn't work in some cases.
    (#164, thanks @pascaloettli)

Breaking changes

  • Due to the udunits2 package being orphaned, ReadNetCDF() not longer uses it to parse dates and times. The homebrewed parser might be more limited, and the wild variety of netCDF files in the wild makes it hard to fully test. Please report any issues you have!