Author Topic: How do .cat files handle transition from DST to ST?  (Read 3985 times)

TWSheppard

  • Gentle Breeze
  • **
  • Posts: 21
    • EW2262
    • IONSTITT1
    • Stittsville Weather
  • Station Details: Davis Vantage Pro 2, MacBook, 1 additional Temp/Hum sensor
How do .cat files handle transition from DST to ST?
« on: March 11, 2013, 10:05:16 PM »
I apologize in advance if this opens up wounds for some people.

I've searched the forum and wiki without success to determine how WC handles the transition from Daylight Saving Time to Standard Time. Since the .cat file is storing local times I can see the jump from 01:59 to 03:00. But what about in the fall when the time rolls from 01:59 to 01:00? Are there two sets of entries for 01:00 to 01:59, or just one set of entries? If just one, then which set, the first hour or the second hour?

Unfortunately, this is my first year using WC so I have no historical data to look at.

This is important to know because I'm importing WC files into MySQL. I chose not to use the Custom CGI to call a PHP page because some data is missing from the parameter list, and it floods the web server logs. Thus, I'm processing .cat files.

Already, I've encountered problems with the yyyydbase.csv files from Virtual Weather Station. It too uses local time in the files and did not account for DST being moved from April to March in 2007. Perhaps I didn't update the Vantage Pro firmware in time. In the fall for any year, I cannot find two sets of values from 01:00-01:59 so I presume it overwrote or ignored one set of data.

Surprisingly, the files exported from the Weather Underground web site have the same problem.

This is very disappointing because it means one hour of data has been lost for each year. This is why I always, always store timestamps in files or databases in UTC format and then convert only for display. Totally avoids the problems of storing a local time and it doesn't matter where the data was gathered and if the locale used DST, double DST, or whatever. It also makes comparing two sets of data much easier.

So, what can I expect to see in November in the 11_WeatherCatData.cat file?  :)

Thanks.

Randall75

  • Storm
  • *****
  • Posts: 1332
  • CWOP-CW6734 WeatherUnderground-KOHNEWAR6
    • CW6734
    • KOHNEWAR6
    • Randy's Weather On The Hill
  • Station Details: Davis Vantage Pro 2 Plus.iMac i5 OS High Sierra 10.13.6 8GB Ram, WeatherCat 3,Logitech 9000 Pro Web Cam
Re: How do .cat files handle transition from DST to ST?
« Reply #1 on: March 12, 2013, 12:17:27 PM »
Hi TWSheppard

Weathercat will go to 1:59 then go back to 1:00 when Daylight savings ends so you will have 2 (1:00 to 2:00) data reports
This is what was in mine cat data file for 2012
Hope this helps
cheers
 [cheers1]

TWSheppard

  • Gentle Breeze
  • **
  • Posts: 21
    • EW2262
    • IONSTITT1
    • Stittsville Weather
  • Station Details: Davis Vantage Pro 2, MacBook, 1 additional Temp/Hum sensor
Re: How do .cat files handle transition from DST to ST?
« Reply #2 on: March 12, 2013, 01:26:00 PM »
Thank you. Not as good as having UTC but certainly better than throwing away an hour like VWS and WU.