Skip to main content

Access historical weather data in Australia

Project description

ausweather

Very very very alpha - built for daily/monthly/annual rainfall initially.

Download weather data from BoM via SILO, for now.

E.g. for Kent Town annual rainfall. Find the station number using the BoM Weather Station Directory:

>>> import ausweather
>>> data = ausweather.fetch_bom_station_from_silo(23090, 'kinverarity@hotmail.com')
station #: 23090 name: ADELAIDE (KENT TOWN) title: 23090 ADELAIDE (KENT TOWN) (fetched from SILO on 2020-03-04 16:23:26.395696)
>>> data.keys()
dict_keys(['silo_returned', 'station_no', 'station_name', 'title', 'df', 'annual', 'srn'])

>>> data['df'].info()
RangeIndex: 25630 entries, 1 to 25630
Data columns (total 28 columns):
Date       25630 non-null datetime64[ns]
Day        25630 non-null int32
Date2      25630 non-null object
T.Max      25630 non-null float64
Smx        25630 non-null int32
T.Min      25630 non-null float64
Smn        25630 non-null int32
Rain       25630 non-null float64
Srn        25630 non-null int32
Evap       25630 non-null float64
Sev        25630 non-null object
Radn       25630 non-null float64
Ssl        25630 non-null int32
VP         25630 non-null float64
Svp        25630 non-null int32
RHmaxT     25630 non-null float64
RHminT     25630 non-null float64
FAO56      25630 non-null float64
Mlake      25630 non-null float64
Mpot       25630 non-null float64
Mact       25630 non-null float64
Mwet       25630 non-null float64
Span       25630 non-null float64
Ssp        25630 non-null int32
EvSp       25630 non-null float64
Ses        25630 non-null int32
MSLPres    25630 non-null float64
Sp         25630 non-null int32
dtypes: datetime64[ns](1), float64(16), int32(9), object(2)
memory usage: 4.6+ MB
>>> data['annual'].head()
Date
1950    426.9
1951    677.9
1952    584.9
1953    601.0
1954    439.6
Name: Rain, dtype: float64
>>> ausweather.plot_silo_station(data['annual'], data['annual'].mean(), data['srn'])

chart of rainfall

List of changes

Version 0.2.1 (3 Mar 2020)

  • Fix bug for whitespace in BoM station name

Version 0.2.0 (3 Mar 2020)

  • Update, many changes.

Version 0.1.0 (11 Feb 2020)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ausweather-0.2.1.tar.gz (49.6 kB view details)

Uploaded Source

Built Distribution

ausweather-0.2.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file ausweather-0.2.1.tar.gz.

File metadata

  • Download URL: ausweather-0.2.1.tar.gz
  • Upload date:
  • Size: 49.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for ausweather-0.2.1.tar.gz
Algorithm Hash digest
SHA256 28cc216484c27fd42eec8ef48a391278f47fe90e9c392c0225293b9ba5f168db
MD5 47ff2beed1bc0c9e4527cfb8fae908bd
BLAKE2b-256 723f42e00377dceecd0de6da6f0c19c995ff3077348f8fe0726bb7f50ea6830c

See more details on using hashes here.

File details

Details for the file ausweather-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ausweather-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for ausweather-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 974023d00b830fee9b9a9701486859cb6eb2d2ecae7426ba51829e9f9d5c0335
MD5 e4e2ace0c0190f0b69407561d7ded6a8
BLAKE2b-256 441ffe8559ec5388a570e839070ae5923e227485d3dbcf59e4958fc81f910c4d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page