Repository navigation
GeoPressureR v3.9.0
GeoPressureR v3.9.0
Main
- Add
source = "gcs"totag_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 assource = "cds", andworkersdefaults 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 withedge_add_wind()andgraph_add_wind(). - Lower the default
workersoftag_download_wind()from 19 to 2 forsource = "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 prunethr_asedges on flat vectors: about 2–3× faster and with lower peak memory on large graphs, with identical results. A graph disconnected bythr_asnow aborts with a message suggesting a largerthr_as. - Add
constant_speedtograph_add_wind()andedge_add_wind(): withconstant_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 inparam$graph_add_wind(and can be set inconfig.yml) and followed byedge_add_wind(), which can also refine the wind along a path on its own. - Deprecate
interp_spatial_linearingraph_add_wind()andedge_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.pracmais no longer a dependency. - Abort
tag_create()on an unreadable SOI.settingsfile 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.settingsfile, or there is no.settingsfile, the magnetic and acceleration data are not imported. This was silent withquiet = TRUE(e.g. ingeopressuretemplate()) or without a.settingsfile. - Validate
crop_startandcrop_endintag_create(): a date that does not parse fully (e.g."2018-07-015", read as 1 July before) now aborts.
Minor
- Bind a list of
knownrecords by row intag_set_map(), e.g. YAML- stap_id: 1items, instead of keeping only the first with a warning. - Warn in
geopressuretemplate_config()whenconfig.ymlhas no entry for the tag id (onlydefaultis used) and when function arguments (e.g.crop_start) sit directly under the tag id, where they are ignored. - Warn when
geopressuretemplate_graph()fails: the graph is still returned without saving, but with a warning carrying the original error instead of a printed message, so a failure in a batch run is no longer mistaken for a success. - Explain how to fix
map_lightwithout light data ingeopressuretemplate_tag()instead of the error "light is not a data frame". - Abort
plot.map()on an unknown palette name withplot_leaflet = FALSEinstead of silently using the default palette, and draw"magma"and the other viridis palettes in static plots, which used to fall back to a blue ramp. - Correct the ERA5 availability warning in
geopressure_map(): ERA5 on Google Earth Engine lags about a week, not three months, so the warning now only flags data from the last two weeks. - Documentation: the elevation mask of
geopressure_map()uses the Copernicus GLO DEM, not SRTM-90; Trainset Save always writes{id}-labeled.csvintag_label(); twilight labels come from GeoLightViz intwilight_label_read(), not TRAINSET; corrected page range of the 2023 trajectory paper in the citation. - Internal changes without change in results: validation only at public entry points (tag readers, TRAINSET files, light refinement),
cliandgluemessages,codemeta.jsonremoved and docs updated to roxygen2 8.1.1.
Full Changelog: v3.8.0...v3.9.0