Skip to content

Add reference print vpts - #794

Open
bart1 wants to merge 7 commits into
masterfrom
add-citation-print-vpts
Open

bart1 wants to merge 7 commits into
masterfrom
add-citation-print-vpts

Conversation

@bart1

@bart1 bart1 commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

To make sure users actually get exposed to the reference and can retrieve them I made this pull request. It is in conjunction with the changes in getRad: aloftdata/getRad#207. Nothing should change for existing workflows and object (expect for on extra line break that was in the pvol print). I directly implemented it for pvol as well although currently getRad only adds it for vpts:

require(getRad)
#> Loading required package: getRad
devtools::load_all("~/Repositories/bioRad/")
#> ℹ Loading bioRad
#> Registered S3 methods overwritten by 'readr':
#>   method                    from 
#>   as.data.frame.spec_tbl_df vroom
#>   as_tibble.spec_tbl_df     vroom
#>   format.col_spec           vroom
#>   print.col_spec            vroom
#>   print.collector           vroom
#>   print.date_names          vroom
#>   print.locale              vroom
#>   str.col_spec              vroom
#> Welcome to bioRad version 0.12.0.9000
#> using vol2birdR version 1.3.1 (MistNet not installed)
a<-get_vpts("bewid", as.Date("2023-3-3"))
example_vpts
#>                    Irregular time series of vertical profiles (class vpts)
#> 
#>            radar:  KBGM 
#>       # profiles:  1934 
#> time range (UTC):  2016-09-01 00:02:00 - 2016-09-10 11:56:00 
#>    time step (s):  min: 180     max:  16320
a
#>                    Irregular time series of vertical profiles (class vpts)
#> 
#>            radar:  bewid 
#>       # profiles:  24 
#> time range (UTC):  2023-03-03 22:00:00 - 2023-03-03 23:45:00 
#>    time step (s):  min: 0     max:  900 
#>       references: Desmet, P. et al. (2025); Kranstauber, B.... (use get_bibliography())
print(a, references=F)
#>                    Irregular time series of vertical profiles (class vpts)
#> 
#>            radar:  bewid 
#>       # profiles:  24 
#> time range (UTC):  2023-03-03 22:00:00 - 2023-03-03 23:45:00 
#>    time step (s):  min: 0     max:  900
get_bibliography(a)
#> Desmet P, Shamoun-Baranes J, Kranstauber B, Dokter AM, Weisshaupt N,
#> Schmid B, Bauer S, Haase G, Hoekstra B, Huybrechts P, Leijnse H, Noé N,
#> Van Hoey S, Wijers B, Nilsson C (2025). "BALTRAD_VPTS - Vertical
#> profiles of biological targets derived from European weather radars."
#> doi:10.5281/zenodo.14711024 <https://doi.org/10.5281/zenodo.14711024>.
#> <https://doi.org/10.5281/zenodo.14711024>.
#> 
#> Kranstauber B, Huybrechts P, Desmet P (2026). _getRad: Download Radar
#> Data for Biological Research_. doi:10.32614/CRAN.package.getRad
#> <https://doi.org/10.32614/CRAN.package.getRad>. R package version
#> 0.3.0, <https://CRAN.R-project.org/package=getRad>.
get_bibliography(a, "bibtex")
#> @Misc{baltrad,
#>   author = {Peter Desmet and Judy Shamoun-Baranes and Bart Kranstauber and Adriaan M. Dokter and Nadja Weisshaupt and Baptiste Schmid and Silke Bauer and Günther Haase and Bart Hoekstra and Pieter Huybrechts and Hidde Leijnse and Nicolas Noé and Stijn {Van Hoey} and Berend-Christiaan Wijers and Cecilia Nilsson},
#>   title = {BALTRAD_VPTS - Vertical profiles of biological targets derived from European weather radars},
#>   month = {jan},
#>   year = {2025},
#>   publisher = {Research Institute for Nature and Forest (INBO)},
#>   doi = {10.5281/zenodo.14711024},
#>   url = {https://doi.org/10.5281/zenodo.14711024},
#> }
#> 
#> @Manual{getRad,
#>   title = {getRad: Download Radar Data for Biological Research},
#>   author = {Bart Kranstauber and Pieter Huybrechts and Peter Desmet},
#>   year = {2026},
#>   note = {R package version 0.3.0},
#>   url = {https://CRAN.R-project.org/package=getRad},
#>   doi = {10.32614/CRAN.package.getRad},
#> }

@bart1
bart1 requested review from adokter and peterdesmet August 28, 2026 13:35
@codecov

codecov Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.37209% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.16%. Comparing base (40ad8f4) to head (5399e29).
⚠️ Report is 65 commits behind head on master.

Files with missing lines Patch % Lines
R/get_bibliography.R 86.11% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #794      +/-   ##
==========================================
- Coverage   82.02%   81.16%   -0.87%     
==========================================
  Files          66       67       +1     
  Lines        4101     4211     +110     
==========================================
+ Hits         3364     3418      +54     
- Misses        737      793      +56     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant