Repository navigation
GeoPressureR v3.9.1
Main
- Add
tag_label_check(): short stationary periods, short flights and large hourly pressure changes as data.frames. The TRAINSET Check panel andplot_tag_pressure()now use it. - Add
pressurepath_check()(renamed): the error of each stationary period and elevation level (empirical sd vs thesdused, offset, outliers), as inplot_pressurepath(type = "histogram"), which now uses it. It also works on ageopressure_timeseries()output. - Add
tag_label_stapelev(): TRAINSET's automatic stapelev for one stationary period at a position, from a script. It returns thetagwith the labels of that stationary period replaced, as TRAINSET's Apply does. The algorithm moved frominst/trainset/into the package, and TRAINSET uses the same functions. - Add a per-stapelev table to the pressure maps (
tag$map_pressure$stapelev) and a warning ingeopressure_map_mismatch(): one row per map requested with its number of samples, land pixels, pixels passing the mask and smallest MSE, before the elevation levels of a stationary period are combined. When no pixel of a stationary period passes the mask, a warning names it and the levels responsible. - Add
keep_mask_splittogeopressure_map(): GeoPressureAPI also returns the share of samples above and below the ground, summarised asfrac_aboveandfrac_belowin the stapelev table, and the warning says whether a masked level is mostly above or below the ground. It needs a GeoPressureAPI version withincludeMaskSplit; older versions warn and continue without it. - Record provenance of every step:
param$provenance$geopressure_map,$pressurepath_create(in the Template) and$graph_add_wind, and the attributeprovenanceofgeopressure_timeseries()andpressurepath_create()outputs, with the same fields: GeoPressureR version, date, source ("GeoPressureAPI","arco","api", or the wind source"cds","gcs","unknown"), ERA5 dataset, altitude formula and the GeoPressureAPI provenance objects (NULLwith older API versions).print.param()lists it, and GeoPressureAPI errors show the API version. The pressurepath attributessourceandera5_datasetare kept for this release. - Add
twilight_check(): the solar zenith angle of each twilight at the position of its stationary period and whether it falls outside the calibrated range, asplot_twl_calib(tag, path)flags per stationary period. The plot now uses it.
Minor
- Download the pressure maps with
httr2::req_perform_parallel()instead offutureworker sessions: the download step ofgeopressure_map()takes about 1–2 s instead of 5 s on 18LX, with the same steps, progress bar, error messages and files.future,future.applyandprogressrare no longer dependencies, andhttr2(>= 1.1.1) is required. - Send
pressurepath_create()requests to GeoPressureAPI in chunks of about 500 points (workers = "auto"), about twice as fast with identical results. - Read wind files with ascending pressure levels (old CDS files made with
grib_to_netcdf), detected from the levels of each file. They aborted since 3.8.0. From 3.6.0 to 3.7.x, wind computed with such files used the wrong pressure level (e.g. the 950 hPa wind for a bird at 980 hPa): results ofgraph_add_wind()andedge_add_wind()from these versions with old CDS files should be recomputed. - Make
tag_label_auto()deterministic: the k-means clustering starts from the lowest and highest activity instead of random centres (without using the random number generator), and the sampling interval is the median interval instead of the first one. Labels of the example tags are unchanged. - Fix
plot_pressurepath()with a singlesdon a pressurepath whosestap_idis not 1 (e.g. ageopressure_timeseries()output of one stationary period): the outlier thresholds and the histogram colours wereNA. - Share the parsing of
elev_nlabels betweengeopressure_map_preprocess(),geopressure_timeseries(),pressurepath_create()andplot_pressurepath().
Behaviour that users relied on has changed:
- Pressure maps at
scale = 4computed through GeoPressureAPI move by one ERA5 row in latitude, because/map/now takes the same ERA5 cell as/timeseries/,/pressurePath/and ARCO (GeoPressureAPI#38). Results computed before and after differ slightly. This is a server-side change: it applies to every GeoPressureR version calling the API. geopressure_timeseries()andpressurepath_create()with the API now abort (HTTP 416) for dates after the end of ERA5, instead of silently dropping those points (GeoPressureAPI#38).- Wind computed in 3.6.0–3.7.x from wind files with ascending pressure levels (old CDS files) used the wrong pressure level and should be recomputed. These files now give the same wind as descending files.
future,future.applyandprogressrare no longer imported, so they are no longer installed with GeoPressureR.httr2(>= 1.1.1) is required.
Full Changelog: v3.9.0...v3.9.1