Skip to content

Commit

Permalink
metric conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
khufkens committed Oct 2, 2024
1 parent 1e2aee7 commit 68873db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: snotelr
Title: Calculate and Visualize 'SNOTEL' Snow Data and Seasonality
Version: 1.5
Version: 1.5.1
Authors@R: c(person(
family = "Hufkens",
given = "Koen",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# snotelr 1.5.1

* adding metric conversion to snow depth

# snotelr 1.5

* adding snow depth as a return variable
Expand Down
1 change: 1 addition & 0 deletions R/snotel_metric.r
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ snotel_metric <- function(df) {
# precipitation (inches)
df$precipitation_cumulative <- df$precipitation_cumulative * 25.4
df$precipitation <- df$precipitation * 25.4
df$snow_depth <- df$snow_depth * 25.4

# temperature (fahrenheit to celcius)
df$temperature_max <- (df$temperature_max - 32) * 5/9
Expand Down
3 changes: 2 additions & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Dear CRAN team,

This is an update of the {snotelr} package (version 1.5). This package calculates and visualizes 'SNOTEL' snow data and seasonality. This update implements a new variable on the API endpoint, snow depth, which was requested by some.
This is an update of the {snotelr} package (version 1.5.1). This package calculates and visualizes 'SNOTEL' snow data and seasonality. This update implements the correct conversion of snow depth
values to metric, which escaped me during the last release - apologies.

No further changes were made to the package so the update does not affect previous code coverage and testing metrics (which remained the same).

Expand Down

0 comments on commit 68873db

Please sign in to comment.