-
Notifications
You must be signed in to change notification settings - Fork 20
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
Wrong output cardinality #80
Comments
For some reason it seems like the API is returning a full year when only a month is requested. @darrenwiens are you able to take a look at this? |
This is caused by the pulling the yearly data down for every month when it isn't required. YOu are getting exactly 12*365 days. So if you set the time frame to 2, the month parameter is ignored. So you get the data 12 times. Should be simple enough to wrap the retrieval in a some conditionals and then filtering the data frame to drop the values outside the desired range. For daily summaries you want to iterate over the years of the span and filter to keep the rows between the days. You also are going to need to deduplicate the rows. I will take a swing at this and add some tests to check this. curl "https://climate.weather.gc.ca/climate_data/bulk_data_e.html?stationID=10761&Year=2022&Month=1&format=csv&timeframe=2&submit=Download+Data" | wc -l |
This is fixed by #97. v0.8.0 released. |
Hi,
Using a simple query for historical weather data for the past year, I get a lot of duplicated values.
I was expecting 365 values, but I get 4380, which are exactly the same records repeated 12 time. I assume there is a loop iterating over months happening somewhere, but I'm not sure where
The text was updated successfully, but these errors were encountered: