Comments (6)
If there is another endpoint structure implemented, I can introduce a Branche with a function to build the right url.
But I have to understand the endpoint mapping before. So let me know the right structure behind the API endpoint.
from meteostat-python.
Hi Daniel,
That's interesting.
I tried with the following code:
from datetime import datetime
from meteostat import Point, Hourly
Hourly.max_age = 0
dt_start = datetime(2021, 10, 1)
dt_end = datetime(2021, 10, 10)
data = Hourly(Point(53.2811, 13.8583, 100), dt_start, dt_end)
data = data.fetch()
print(data)
It prints the warning because Woldegk didn't report data in 2021. However, my DataFrame isn't empty:
temp dwpt rhum prcp snow wdir wspd wpgt pres tsun coco
time
2021-10-01 00:00:00 7.5 5.1 85.0 0.0 NaN 180.0 11.2 17.0 1024.8 0.0 1.0
2021-10-01 01:00:00 7.7 5.0 83.0 0.0 NaN 170.0 13.7 20.0 1024.4 0.0 2.0
2021-10-01 02:00:00 7.4 4.7 83.0 0.0 NaN 170.0 15.5 21.0 1024.0 0.0 1.0
2021-10-01 03:00:00 7.2 4.7 84.0 0.0 NaN 170.0 15.8 23.0 1023.6 0.0 3.0
2021-10-01 04:00:00 6.7 4.7 87.0 0.0 0.0 160.0 18.0 24.0 1023.3 0.0 4.0
... ... ... ... ... ... ... ... ... ... ... ...
2021-10-09 20:00:00 7.0 2.3 72.0 0.0 0.0 110.0 10.1 13.0 1033.7 0.0 1.0
2021-10-09 21:00:00 6.9 2.2 72.0 0.0 0.0 110.0 9.7 14.0 1033.8 0.0 1.0
2021-10-09 22:00:00 5.8 2.3 78.0 0.0 0.0 110.0 9.4 13.0 1033.8 0.0 1.0
2021-10-09 23:00:00 6.0 1.7 74.0 0.0 0.0 120.0 10.8 16.0 1033.3 0.0 1.0
2021-10-10 00:00:00 5.1 1.6 78.0 0.0 0.0 130.0 8.6 15.0 1033.1 0.0 1.0
[217 rows x 11 columns]
Generally, for hourly data Meteostat provides both annual and full dumps (for better performance when querying data for just one or two years).
Are you on the latest version @meteoDaniel?
from meteostat-python.
@clampr I am running the latest version available here https://pypi.org/project/meteostat/
I have added a bugfix that makes the code a bit more sustainable.
from meteostat-python.
And I have detected another bug.
In case of downloading multiple years, every local file will be overwritten from the recent year.
from meteostat-python.
Thanks @meteoDaniel 🙂
I merged your changes into dev
branch. Feel free to submit another PR for the bug you discovered. Otherwise, I'll look into it once I have some time.
from meteostat-python.
@clampr there was no bug. All fine. I have just added a minor update on the local file path function.
Can you make a new release (1.6.0?) on pypi?
from meteostat-python.
Related Issues (20)
- station data error? HOT 3
- Integrate solar radiation HOT 6
- proposing requests as download data method for mobile, due to issues with certificates verification in pandas HOT 2
- "wpgt" does not populate. HOT 4
- Missing Data Frame Values
- interpolation error "ValueError: The name station occurs multiple times, use a level number" HOT 3
- `Hourly` attempts to fetch data of next year HOT 1
- Hacktoberfest? HOT 1
- DeprecationWarning
- Data from ISD datasource no longer included? HOT 7
- Data from METAR missing for some stations? HOT 2
- Support for proxies HOT 2
- NaN discrepancy between older versions (<=1.5.11) and newer versions (>=1.6.0) HOT 2
- Got Different Results in Local and AzureML
- Point interpolation weighted method error
- Stations and Hourly data availability times don't match
- README Example Faisl With [SSL: CERTIFICATE_VERIFY_FAILED] HOT 1
- Bug in Stations module
- Update `numpy` dependency HOT 1
- Humidity data HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteostat-python.