Australian Weather Data (using bom.gov.au)
Project description
Australian Weather Data (using bom.gov.au)
Access to the Australian Bureau of Meteorology weather data.
Currently a work in progress!
Disclaimer
This project is not related to nor is it endorsed by the Australian Bureau of Meteorology (BOM).
From the BOM copyright notice: Where no terms of use are associated with a set of material, then you may download, use and copy that material for personal use, or use within your organisation but you may not supply that material to any other person or use it for any commercial purpose.
Usage
from weather import observations, place
obs = observations.Observations('Vic')
print(f'Product ID: {obs.identifier}\n')
for station in obs.stations():
wmo_id = station['wmo-id']
description = station['description']
air_temperature = obs.air_temperature(station['wmo-id'])
if air_temperature is None:
print(f'{wmo_id} {description}')
else:
print(f'{wmo_id} {description} ({air_temperature})')
obsp = place.Place('vic', 'parkville')
air_temperature = obsp.air_temperature()
station_id = obsp.station_id()
print(f'\n{station_id} {air_temperature}')
URL's
- Base for anon FTP data
ftp://ftp.bom.gov.au/anon/gen/
- Capital City Observations - VIC - Melbourne (Olympic Park)
http://www.bom.gov.au/fwo/IDV60901/IDV60901.95936.json
- where
IDV60901
is the product, and 95936
is the weather station id.
- where
- Weather Observations - VIC - Melbourne (Olympic Park)
http://www.bom.gov.au/fwo/IDV60910/IDV60910.95936.json
http://www.bom.gov.au/places/vic/parkville/
Resources
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
weather-au-0.0.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
weather_au-0.0.1-py3-none-any.whl
(16.7 kB
view hashes)
Close
Hashes for weather_au-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00f5dbc8a577055092a79a6716dab71b1587d638b83e5e69a4824a5ad6b91832 |
|
MD5 | be70f1a39dd1964b1540c1a094bee84f |
|
BLAKE2b-256 | 3cf92325abddf0266a15e4d0812bd247034e7fed7e648ee40daf987099d21ebb |