Skip to content

Commit

Permalink
corrected units of atmospheric pressure in the vignettes (thanks to P…
Browse files Browse the repository at this point in the history
…atricia H)
  • Loading branch information
stineb committed Sep 19, 2024
1 parent 3567ebb commit a0ddd52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion vignettes/cwd_example.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ This demonstrates the workflow for determining cumulative water deficit (CWD) ti

Read data from the file contained in this repository.
```{r}
df <- readRDS(file = paste0(here(), "/data/df_ch-lae.rds"))
df <- readRDS(file = paste0(here(), "/data/df_ch-lae.rds")) |>
# convert to from kPA to Pa (SI units are used for inputs to functions in the package)
mutate(PA_F = 1e3 * PA_F)
```

## Convert ET to mass units
Expand Down
4 changes: 3 additions & 1 deletion vignettes/potential_cwd.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ A potential cumulative water deficit can be calculated using net radiation and t

Read data from the example FLUNXET file contained in this repository.
```{r}
df <- readRDS(file = paste0(here(), "/data/df_fr-pue.rds"))
df <- readRDS(file = paste0(here(), "/data/df_fr-pue.rds")) |>
# convert to from kPA to Pa (SI units are used for inputs to functions in the package)
mutate(PA_F = 1e3 * PA_F)
visdat::vis_miss(df)
```
Expand Down

0 comments on commit a0ddd52

Please sign in to comment.