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

Zmiana układu danych hydro od IMGW od 2023 r. #99

Open
adamperz opened this issue Oct 19, 2024 · 2 comments · May be fixed by #100
Open

Zmiana układu danych hydro od IMGW od 2023 r. #99

adamperz opened this issue Oct 19, 2024 · 2 comments · May be fixed by #100
Assignees

Comments

@adamperz
Copy link

Niestety pobranie danych hydro z IMGW za pomocą pakietu jest niemożliwe dla roku 2023 - zmieniono układ udostępniania danych, dla wcześniejszych lat dane dzienne były w oddzielnych plikach dla każdego miesiąca roku hydrologicznego, a dla 2023 r. dane ze wszystkich miesięcy są w jednym pliku.

@Nowosad
Copy link
Collaborator

Nowosad commented Oct 20, 2024

@bczernecki reprex:

# install.packages("climate")
library(climate)
h2022 = hydro_imgw_monthly(2022)
h2023 = hydro_imgw_monthly(2023)

@bczernecki bczernecki self-assigned this Oct 20, 2024
@bczernecki
Copy link
Owner

Powiedzieć, że zmiana układu w danych to tak jakby nic nie powiedzieć ;)

Zmieniono liczbę plików, ale też standard seperatora dla CSV i kodowanie pliku...
Poniżej porównanie pliku CSV po rozpakowaniu dla 2022 i 2023

bartosz@macbook:~/Downloads$ head -n2 codz_202*.csv
==> codz_2022_01.csv <==
" 149180020","CHA�UPKI","Odra (1)","2022","01","01",78,10.100,99.9,"11"
" 149180020","CHA�UPKI","Odra (1)","2022","01","02",84,12.100,99.9,"11"

==> codz_2023.csv <==
149180020;CHAŁUPKI;Odra (1);2023;01;01;14.200;88;99.9;11
149180020;CHAŁUPKI;Odra (1);2023;01;02;13.700;89;99.9;11

@bczernecki bczernecki linked a pull request Oct 20, 2024 that will close this issue
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 a pull request may close this issue.

3 participants