Giter VIP home page Giter VIP logo

Comments (6)

meteoDaniel avatar meteoDaniel commented on July 28, 2024

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.

clampr avatar clampr commented on July 28, 2024

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.

meteoDaniel avatar meteoDaniel commented on July 28, 2024

@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.

meteoDaniel avatar meteoDaniel commented on July 28, 2024

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.

clampr avatar clampr commented on July 28, 2024

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.

meteoDaniel avatar meteoDaniel commented on July 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.