Commit c3a0f9de authored by Thomas Shatwell's avatar Thomas Shatwell
Browse files

Updated description and manual after adding new functions

parent 2803270b
Package: seefo
Title: Useful Tools for The Lake Research Department at UFZ
Version: 0.0.0.9000
Version: 0.0.1.0000
Authors@R:
person(given = "Tom",
family = "Shatwell",
......@@ -10,15 +10,12 @@ Authors@R:
Maintainer: Tom Shatwell <tom.shatwell@ufz.de>
Description: A collection of useful tools for lake research. These tools include: calculating ice and stratification phenology, reading raw data files from sondes, calculating water density and leap years, calculating volume-weighted mean using hyspographic information, interpolating to fixed depth grids or daily values.
License: GPL (>= 3)
Depends:
R (>= 3.5),
data.table
Depends: R (>= 3.5)
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.1
Imports:
plot3D
RoxygenNote: 7.1.2
Imports: plot3D, data.table, ncdf4
Suggests:
MASS,
testthat (>= 3.0.0)
......
......@@ -3,6 +3,9 @@
export(batch_read)
export(clean_profile)
export(delta_rho)
export(dewpoint_2_humidity)
export(era5cli)
export(gather_era5_var)
export(get_profile_info)
export(h2mix)
export(h3mix)
......
......@@ -49,7 +49,35 @@ Therefore the times from raw sonde data may need to be \code{cut()} first. Profi
}
\examples{
\dontrun{
out <- profile2grid(...)
depths <- c(0,2,4,6,8,10, 15, 20)
times <- c("2005-08-20", "2005-09-02", "2005-09-25")
temps <- c(
30.8, 30.5, 30.4, 30.3, 29.7, 28.8, 27.8, 27.3,
30.5, 30.0, 29.9, 29.7, 29.1, 29.0, 27.7, 27.3,
30.6, 30.6, 30.5, 30.0, 29.7, 29.2, 27.7, 27.3
)
dat <- data.frame(
time = rep(times, each=length(depths)),
depth=rep(depths, length(times)),
temp=temps)
out <- profile2grid(data=dat, datetime="time", depth="depth",
value="temp")
# set interpolation depths manually
out <- profile2grid(data=dat, datetime="time", depth="depth",
value="temp", outdepths=seq(0,17,0.5))
# works also with any identifier instead of a date
dat$time <- rep(c("A","B","C"), each=length(depths))
out <- profile2grid(data=dat, datetime="time", depth="depth",
value="temp")
attributes(out)
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment