weather_data_analysis

Climate data for historic stations

Monthly data are available for a selection of long-running historic stations. The series typically range from 50 to more than 100 years in length.

Our historic station data consists of:

Mean daily maximum temperature (tmax) Mean daily minimum temperature (tmin) Days of air frost (af) Total rainfall (rain) Total sunshine duration (sun) Monthly mean temperature The monthly mean temperature is calculated from the average of the mean daily maximum and mean daily minimum temperature i.e. (tmax+tmin)/2.

How do run the script?

  • Download the code as zip file.
  • Extract the zip file and navigate to weatherReport.py file location
  • To open the command prompt in file location
  • Install required modules by entering below command
  •     pip install -r requirements.txt
  • Run the program by entering below command.
  •     python weatherReport.py
  • Enter the number respective station
  • Select number for data analysis
  • You have to close the chart for next one
  • You have to end the program for next station by run again
  • Process

        0 , Aberporth
        1 , Armagh
        2 , Ballypatrick
        3 , Bradford
        4 , Camborne
        5 , Cambridge NIAB
        6 , Cardiff Bute Park
        7 , Chivenor
        8 , Dunstaffnage
        9 , Durham

    After enter the station number, it will download the data as txt file and that data file convert into valid csv file. Then, it will read the csv file to DataFrame and filter to get the last 20 years data.

        0 , Monthly Averages for minimum and maximum temperature
        1 , Monthly Averages for precipitation
        2 , Monthly Averages for Hours of Sunlight
        3 , All Data
        4 , End

    Enter the number to call the particular data and data visualization. You can end the program by enter 4.