Giter VIP home page Giter VIP logo

Comments (4)

clampr avatar clampr commented on July 28, 2024

Hi, data is definitely available for Bucharest: https://meteostat.net/en/place/3LX24L?t=2021-10-01/2021-10-31

Can you share your code?

from meteostat-python.

PetricaR avatar PetricaR commented on July 28, 2024

Import Meteostat library and dependencies

from meteostat import Stations, Daily, Hourly
from datetime import datetime
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

from meteostat import Stations
stations = Stations()
stations = stations.region('RO')
count = stations.count()

Show dataframe

station = stations.fetch(count)
station = pd.DataFrame(station)

station[station['daily_end'] > '2021-11-01']

station[station['name'] == 'Bucuresti / Imh']

Get closest weather station to Romania, RO

from datetime import datetime
import matplotlib.pyplot as plt
from meteostat import Daily

Time period

start = datetime(2021, 10, 1)
end = datetime(2021, 11, 10)

Get daily data

data = Daily('15420', start, end)

Group & aggregate weekly

data = data.normalize().aggregate(freq='1D').fetch()

Plot chart

data.plot(y=['tavg', 'tmin', 'tmax'])
plt.show()

from meteostat-python.

clampr avatar clampr commented on July 28, 2024

I tried with this code, based on your example:

from meteostat import Daily
from datetime import datetime
import matplotlib.pyplot as plt

start = datetime(2021, 10, 1)
end = datetime(2021, 11, 10)

data = Daily('15420', start, end)
data = data.normalize().aggregate(freq='1D').fetch()

data.plot(y=['tavg', 'tmin', 'tmax'])
plt.show()

And it prints the following chart:

Figure_1

from meteostat-python.

PetricaR avatar PetricaR commented on July 28, 2024

Thank you!

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.