Return, as data.frames, the checks that TRAINSET shows in its Check panel: short stationary periods, short flights and large hourly pressure changes within a stationary period. Use it to review labels from a script, with the same rules and defaults as TRAINSET.
The hourly pressure changes are computed on the series sent to the pressure map
(geopressure_map_preprocess()), per stationary period and elevation level (stapelev). A large
change usually means a flight, a take-off or a landing left inside a stationary period, or two
elevation levels that need different elev_n labels.
Usage
tag_label_check(
tag,
warning_stap_duration = 6,
warning_flight_duration = 2,
warning_pressure_diff = 3
)Arguments
- tag
a GeoPressureR
tagobject with labels and stationary periods (seetag_label()).- warning_stap_duration
Threshold of stationary period duration (hours). Stationary periods lasting this long or less are reported.
- warning_flight_duration
Threshold of flight duration (hours). Flights lasting this long or less are reported.
- warning_pressure_diff
Threshold of hourly pressure change (hPa). Changes of this size or more are reported.
Value
A list with
stap: short stationary periods, withstap_id,start,endandduration(hours).flight: short flights between consecutive stationary periods, withstap_s,stap_t,start,endandduration(hours).pressure: large hourly pressure changes, largest first, withdate(midpoint of the hour),stap_id,stapelev,pressure_diff(absolute change, hPa) andpressure(hPa).NULLwhen pressure has no label or cannot be pre-processed.error: the reason why pressure could not be pre-processed (e.g., a stationary period with every point discarded), orNULL.
Examples
withr::with_dir(system.file("extdata", package = "GeoPressureR"), {
tag <- tag_create("18LX", quiet = TRUE) |>
tag_label(quiet = TRUE)
})
tag_label_check(tag)
#> $stap
#> [1] stap_id start end duration
#> <0 rows> (or 0-length row.names)
#>
#> $flight
#> [1] stap_s stap_t start end duration
#> <0 rows> (or 0-length row.names)
#>
#> $pressure
#> [1] date stap_id stapelev pressure_diff pressure
#> <0 rows> (or 0-length row.names)
#>
#> $error
#> NULL
#>
