Joe, Have given this some more thought, did a bit of googling and reading of the online VWS manual. I've developed the opinion that importing VWS data is best done through CSV files, the so called 'daily tabulated text files' are just too 'variable' and too hard to parse. The daily text files have everything in there that you need; they identify the column, provide the units, provide an unambiguous date and time and of course the observations. But trying to pull out the column names and match them with their units is difficult, and to be able to handle all cases without some user input will be very complex and I am sure will lead to errors. In googling I found a wide variety of day text files formats, the most complex had the following columns/units:
Time Vapor Press Wind Dir A Wind Spd A WindGust A Hum In A Humidity A Temp In A Temp Out A Barom A Tot Rain A UV Avg Solar Avg WindCh AHeatIx In A HeatIx A Dew Pt A SL Barom A Wind Dir H Wind Spd H WindGust H Hum In H Humidity H Temp In H Temp Out H Barom H Tot Rain H UV Hi Solar Hi WindCh HHeatIx In H HeatIx H Dew Pt H SL Barom H Wind Dir L Wind Spd L WindGust L Hum In L Humidity L Temp In L Temp Out L Barom L Tot Rain L UV Lo Solar Lo WindCh LoHeatIx In L HeatIx L Dew Pt L SL Barom L RainRate in ° mph mph % % °F °F in in W/sqm °F °F °F °F in ° mph mph % % °F °F in in W/sqm °F °F °F °F in ° mph mph % % °F °F in in W/sqm °F °F °F °F in in/hr Would be a lot easier (and less prone to errors) if there weren't so many single spaces! Some columns having no units (eg UV) makes it more complex again. That being said it was a fairly simple matter to rework the existing VWS import code to be a bit smarter and handle a variable number of columns rather than the fixed format I had originally coded. If you go and pull down the latest relase from GitHub you should have more success. Gary On Saturday, 6 August 2016 04:17:50 UTC+10, jmltech wrote: > > Thanks for the info Gary. I'll take a closer look this weekend at the > early daily files. -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
