View source: R/geopressure_map_preprocess.R
geopressure_map_preprocess | R Documentation |
geopressure_map()
Performs the follow pre-processing for the pressure data.frame:
Remove discarded and flight pressure measurements.
Group pressure measurements by stationary period and elevation level.
Smooth and downscale pressure to a 1 hour resolution to match ERA5 data.
This function is used within geopressure_map_mismatch()
but can be useful to check the
pressure data sent to the GeoPressureAPI.
geopressure_map_preprocess(tag, compute_known = FALSE)
tag |
a GeoPressureR |
compute_known |
logical defining if the map(s) for known stationary period should be
estimated based on twilight or hard defined by the known location |
Pressure data.frame without flight and discarded values, on a 1 hour resolution.
withr::with_dir(system.file("extdata", package = "GeoPressureR"), {
tag <- tag_create("18LX", quiet = TRUE) |> tag_label(quiet = TRUE)
})
pressure_processed <- geopressure_map_preprocess(tag)
str(pressure_processed)
# Plotting pressure displays the raw data (in grey) with the processed data from
# `geopressure_map_preprocess` (as coloured line)
plot_tag_pressure(tag, quiet = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.