Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create aloft coverage function #556

Open
peterdesmet opened this issue Apr 17, 2023 · 0 comments
Open

Create aloft coverage function #556

peterdesmet opened this issue Apr 17, 2023 · 0 comments
Labels
VPTS CSV Related to VPTS CSV format
Milestone

Comments

@peterdesmet
Copy link
Collaborator

peterdesmet commented Apr 17, 2023

Before downloading vpts data from the aloft repository with download_vpts_aloft() (see #553), it might be useful for people to know what years/dates are covered for what radars. The repository does include a simple coverage.csv that lists all the files per directory:

baltrad/daily/bejab/2023,17
baltrad/hdf5/bejab/2018/05/18,47
baltrad/hdf5/bejab/2018/05/22,167
baltrad/hdf5/bejab/2018/05/23,229
baltrad/hdf5/bejab/2018/05/24,227
baltrad/hdf5/bejab/2018/05/25,215
baltrad/hdf5/bejab/2018/05/26,192
...

It might be useful to create a function that can return this information as a dataframe or visualize it immediately, e.g.:

show_aloft_coverage(
  # cf. download_vpts_aloft
  date_min = NULL, # limits columns
  date_max = NULL, # limits columns
  radars = c(), # limits rows
  format = "csv",
  source = "baltrad",

  # new params
  by = "year", "month", "day", # granularity of returned data
  show = "files", "boolean" # whether to indicate number of files or boolean
)

Alternatively, this functionality could be included in download_vpts(), but I'm not sure how.

Suggested output:

Screenshot 2023-04-17 at 17 32 44

@peterdesmet peterdesmet added the VPTS CSV Related to VPTS CSV format label Apr 17, 2023
@adokter adokter added this to the 1.0.0 milestone Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VPTS CSV Related to VPTS CSV format
Projects
None yet
Development

No branches or pull requests

2 participants