Skip to content

Commit

Permalink
Fix bug related to precipitation calculation
Browse files Browse the repository at this point in the history
Precipitation was reported to be in mm in this package, but was only
converted to cm. This fixes that bug. Units for precipitation are now
reported in mm.
  • Loading branch information
adamhsparks committed Jul 8, 2016
1 parent a28262a commit 8d09f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_GSOD.R
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ get_GSOD <- function(years = NULL, station = NULL, country = NULL, path = "",
NA_integer_)
tmp$MIN <- ifelse(!is.na(tmp$MIN), round( (tmp$MIN - 32) * (5 / 9), 2),
NA_integer_)
tmp$PRCP <- ifelse(!is.na(tmp$PRCP), round( (tmp$PRCP * 25.4) * 10, 1),
tmp$PRCP <- ifelse(!is.na(tmp$PRCP), round( (tmp$PRCP * 25.4) * 100, 1),
NA_integer_)
tmp$SNDP <- ifelse(!is.na(tmp$SNDP), round( (tmp$SNDP * 25.4) * 10, 1),
NA_integer_)
Expand Down

0 comments on commit 8d09f22

Please sign in to comment.