# # Copyright Yves Dorfsman. # #
# # CanadianWeather.py # # Sends queries to the Canadian Weather Office (Environment # Canada, http://www.weatherOffice.gc.ca) to obtain data # for a given year (daily data) or month (hourly data) # and station ID, and convert to a python list. #
# # simple # # simple python script to demonstrate the use of CanadianWeather.py #
# # getdata # # Script using CanadianWeather.py to download weather data for a given # period of time, convert it to a list, pickle it and save it to a file. # # WARNING: This program can consume very large amounts of # memory. In hourly mode, it requires around 30 MiB of memory # per year of data downloaded. It initially only uses 18 MiB/year # but then needs the extra amount when pickling the data. # This seems modest, but it means 1.5 GiB for 50 years worth # of data (there is data available for over 54 years for Calgary # for example ). Python (version 2.5.1) pages in the whole amount # when it tries to update the list, you need that much real memory, # paging space will not help here. # # Only 1.5 MiB/year is required for daily data. #
# # loadAll # # simple script to demonstrate how to reload the data once pickled. #