Skip to content

GeoPressureR v3.9.1

Latest

Choose a tag to compare

@Rafnuss Rafnuss released this 20 Nov 06:53
d5fe510

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 and plot_tag_pressure() now use it.
  • Add pressurepath_check() (renamed): the error of each stationary period and elevation level (empirical sd vs the sd used, offset, outliers), as in plot_pressurepath(type = "histogram"), which now uses it. It also works on a geopressure_timeseries() output.
  • Add tag_label_stapelev(): TRAINSET's automatic stapelev for one stationary period at a position, from a script. It returns the tag with the labels of that stationary period replaced, as TRAINSET's Apply does. The algorithm moved from inst/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 in geopressure_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_split to geopressure_map(): GeoPressureAPI also returns the share of samples above and below the ground, summarised as frac_above and frac_below in the stapelev table, and the warning says whether a masked level is mostly above or below the ground. It needs a GeoPressureAPI version with includeMaskSplit; 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 attribute provenance of geopressure_timeseries() and pressurepath_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 (NULL with older API versions). print.param() lists it, and GeoPressureAPI errors show the API version. The pressurepath attributes source and era5_dataset are 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, as plot_twl_calib(tag, path) flags per stationary period. The plot now uses it.

Minor

Behaviour that users relied on has changed:

  • Pressure maps at scale = 4 computed 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() and pressurepath_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.apply and progressr are 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