This is my first post on this forum so if there is any inaccuracy please be easy on me. Advice and recommendations are always appreciated.

I hope to start getting my PPL in airports around CYXX. From my observation and research the weather in the lower mainland in winter is terrible which makes flight training difficult. To find out the best time for flight training in which consistent flying is possible (to save money), I decided to find out the VFR hours throughout the year through the METAR report in the last year. I come from a computer background and the chart below is made with the help of AI (ChatGPT/Claude), total work time is around 4 hours.
As a person who is new to aviation, the VFR hour definition below is based on what I can find on the internet and the VFR minimum. Please let me know what other considerations should be factored in to make the result more accurate.
1. Daytime
2. Visibility >= 3SM
3. Cloud base (BKN/OVC) >= 3000ft --- I just made the number up based on VFR minimum + 2000 ft. Any input is appreciated.
Data referenced :
1. Hourly METAR of CYXX in the previous year, 24*365 = 8760 entries
2. Daylight hour data of CYXX in the previous year.
Methodology:
1. Determine the cloud base based on the data in METAR
2. Combine the daylight data to filter out the non-daytime hours.
3. Extract visibility
4. Clear out some abnormal data.
Results:
The results are listed below. Each square represents one day in the month, with the leftmost square representing the first day of the month, and the rightmost square representing the last day of the month. The greener the square it is, the more flyable hours that day has. White square represent 0 flying hours available or the day doesn't exist. Refer to the legend on the right.

As I want to do my training part-time after 3 PM, I made another chart to represent the hours flyable on or after 3 PM.

Findings :
1. Obviously the number of flying days in summer is significantly more than those in winter because of the amount of daytime hours and weather.
2. Most of the days in summer are flyable, with up to 15 flyable hours in July!
3. To fly after 3 PM, the best start date is probably in April.
Limitation:
1. As a person who hasn't flown before, the definition of VFR hour is solely based on the VFR requirements. Please let me know what are the factors to be considered.
2. I also somehow find that the number of VFR hours in winter is more than I expected. This may be caused by factors that are not in the VFR criteria.
3. The result is based on METAR which is posted every xx:00. Weather can deteriorate right after the METAR is posted hence making the hour not flyable.
4. Certain limitations exist on the hours of sunrise and sunset. If the sunrise time is 6:01, the METAR posted at 6:00 will be disregarded. Same case with sunset time. I choose to disregard this because the extra hour from the sunset hour somehow offsets the error in the sunrise hour.
The chart above is produced on an experiment and is to help to determine the training schedule for myself. If there's anything you find inaccurate please do leave a comment below.
Any input is appreciated, especially on the factors that determine when can / cannot fly
