Author Topic: MesoWest Import to WeatherCat Success  (Read 1621 times)

rpmik

  • Gentle Breeze
  • **
  • Posts: 22
    • F2476
    • KCAORLAN7
    • distortions.net
  • Station Details: Ambient WS-1401-IP w/Meteobridge. M2 Mac Studio.
MesoWest Import to WeatherCat Success
« on: August 25, 2023, 03:07:38 AM »
Hi all,
It took a few weeks but I finally came up with a really ugly Python script to convert my weather station's CWOP historical data in MesoWest's CSV format into WeatherCat data files. I used the Synoptic bulk download and that worked out real well. Converting MesoWest's precipitation data from accumulations since UTC midnight to a running year total for the local time zone was a nice puzzle to solve.

So should anyone need help importing their station CWOP data from MesoWest/Synoptic, please contact me and I'll be willing to share the script along with guidance for use.

So now I've got locally accessible historical weather data dating back to 2018 in WeatherCat!  The software's stats are great!  ThU5:-)

Ryan




elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Thank you! (Re: MesoWest Import to WeatherCat Success)
« Reply #1 on: August 25, 2023, 11:10:38 PM »
Dear Ryan and WeatherCat faithful,

It took a few weeks but I finally came up with a really ugly Python script to convert my weather station's CWOP historical data in MesoWest's CSV format into WeatherCat data files. I used the Synoptic bulk download and that worked out real well. Converting MesoWest's precipitation data from accumulations since UTC midnight to a running year total for the local time zone was a nice puzzle to solve.

So should anyone need help importing their station CWOP data from MesoWest/Synoptic, please contact me and I'll be willing to share the script along with guidance for use.

Thank you Ryan for announcing your success and your willingness to share your script with others!

So now I've got locally accessible historical weather data dating back to 2018 in WeatherCat!  The software's stats are great!  ThU5:-)

I'm glad that you are enjoying the powerful features of WeatherCat.  I think you are starting to understand why the folks on this forum are hooked!

Cheers, Edouard

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: MesoWest Import to WeatherCat Success
« Reply #2 on: August 26, 2023, 12:01:37 AM »
I love it when a WeatherCatter figures out a solution and shares it with the rest of us. Thanks Ryan.
Blick


rpmik

  • Gentle Breeze
  • **
  • Posts: 22
    • F2476
    • KCAORLAN7
    • distortions.net
  • Station Details: Ambient WS-1401-IP w/Meteobridge. M2 Mac Studio.
Re: MesoWest Import to WeatherCat Success
« Reply #3 on: August 26, 2023, 03:13:01 PM »
Thanks everyone for the kind words!

I decided to put the script up on git so you can see how bad I am at Python, or at least, how bad at code hygiene ;-)

This script needs a fair amount of initial human intervention and the one last step to remove a bizarre end of line character that I can't figure out how to prevent. You need to be pretty comfortable with Python and somewhat with how WeatherCat data files work.

https://github.com/rpmik/MesoWestToWeatherCat/