Skip to content

GeoPressureR v3.9.0

Choose a tag to compare

@Rafnuss Rafnuss released this 19 Nov 19:54
· 23 commits to main since this release
08b0930

GeoPressureR v3.9.0

Main

  • Add source = "gcs" to tag_download_wind() to read ERA5 pressure levels from the public Google ARCO-ERA5 store on Google Cloud Storage, which has no CDS queue (#189). It writes the same files as source = "cds", and workers defaults to 6 for it.
  • Write smaller wind files in tag_download_wind(): only the flight hours, values packed as 16-bit integers (wind to 0.01 m/s), with CF attributes (units, long_name, standard_name) taken from one ERA5 variable table. Existing files still work with edge_add_wind() and graph_add_wind().
  • Lower the default workers of tag_download_wind() from 19 to 2 for source = "cds": the CDS rejects queued requests beyond about 2–3 per account and dataset, so the old default lost most flights without speeding anything up.
  • Speed up graph_add_wind(), process its edges in blocks and prune thr_as edges on flat vectors: about 2–3× faster and with lower peak memory on large graphs, with identical results. A graph disconnected by thr_as now aborts with a message suggesting a larger thr_as.
  • Add constant_speed to graph_add_wind() and edge_add_wind(): with constant_speed = "airspeed", the bird flies a constant air velocity (speed and heading) and the wind is averaged along the track curved by the wind (approximated by the straight edge plus the drift by the wind anomaly along it) instead of along the straight edge flown at constant groundspeed (default, unchanged results). It takes about 1.5–3 times longer and mostly matters for long flights (> 8 h). The choice is stored in param$graph_add_wind (and can be set in config.yml) and followed by edge_add_wind(), which can also refine the wind along a path on its own.
  • Deprecate interp_spatial_linear in graph_add_wind() and edge_add_wind(): wind is always taken from the nearest ERA5 grid cell. Bilinear interpolation changed airspeed by about 0.3 km/h (median) for a 4–6× longer run time. pracma is no longer a dependency.
  • Abort tag_create() on an unreadable SOI .settings file instead of printing a message and continuing without the clock drift and magnetic data.
  • Always warn when tag_create() drops SOI magnetic data: when the hardware version cannot be read from the .settings file, or there is no .settings file, the magnetic and acceleration data are not imported. This was silent with quiet = TRUE (e.g. in geopressuretemplate()) or without a .settings file.
  • Validate crop_start and crop_end in tag_create(): a date that does not parse fully (e.g. "2018-07-015", read as 1 July before) now aborts.

Minor

Full Changelog: v3.8.0...v3.9.0