Skip to content

Romanian radar data seems to be absent around midnight #162

@bart1

Description

@bart1
httr2::request("https://opendata.meteoromania.ro/radar/MED/") |>
  httr2::req_perform() |>
  httr2::resp_body_html() |>
  xml2::xml_find_all("//a/@href") |>
  xml2::xml_text()|> substr(5, 16) |> 
  strptime("%Y%m%d%H%M", tz="UTC") |> unique()   ->aa
plot(seq_along(aa), aa)

table(as.Date(aa))
#> 
#> 2025-12-07 2025-12-08 2025-12-09 2025-12-10 
#>         25        276        276        118
table(as.Date(aa), lubridate::hour(aa))
#>             
#>               1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22
#>   2025-12-07  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1 12
#>   2025-12-08 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12
#>   2025-12-09 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12
#>   2025-12-10 12 12 12 12 12 12 12 12 12 10  0  0  0  0  0  0  0  0  0  0  0  0
#>             
#>              23
#>   2025-12-07 12
#>   2025-12-08 12
#>   2025-12-09 12
#>   2025-12-10  0

In the last table hour 0 is missing. I have checked slightly different issues seem to occur in other radars, this is a problem on their side and out of scope for getRad but can cause testing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions