Import Data from Mesowest

56 views
Skip to first unread message

rich T

unread,
Dec 11, 2019, 9:35:17 PM12/11/19
to weewx-user
What would the best way to import data into the weewx db from Mesowest. 

Thanks
Rich
Jan_Dec 2009.xlsx

gjr80

unread,
Dec 12, 2019, 1:54:18 AM12/12/19
to weewx-user
Hi,

I would save your data in csv format and import as a csv import via wee_import. A few suggestions:

1. On first glance it appears there are no significant gaps in your data so I would let wee_import derive the WeeWX interval field from the data being imported. A few missed records won't make any great difference.

3. You have two distinct fields with date and time for each record, you will need to massage this into a single field (a simple search and replace post csv conversion should work) and then come up with an appropriate date-time format string that wee_import can use to decode this combined date-time. This is covered briefly in the Importing from CSV files section in the Utilities Guide.

3. Work out what fields you wish to map to which WeeWX fields then use this info to produce your [[FieldMap]] stanza in your import config file. Remove the unused fields from the Excel/csv file.

4. Once you have your import config file setup up make sure you do a dry run import first.

There is an issue with the wee_import calc-missing functionality included in WeeWX 3.x that means that some missing derived observations that rely on historical data are skipped (this largely only affects calculating WeeWX field pressure). This issue will be fixed in wee_import included with WeeWX v4.0 so if this issue affects you you might want to wait for the soon to be released WeeWX V4.

Gary

rich T

unread,
Dec 12, 2019, 5:32:24 PM12/12/19
to weewx-user
Thanks Gary

I'm in no hurry, I'll wait until V4.0 is released.  It will give me some time to ensure all fields are correctly formatted.

Rich
Reply all
Reply to author
Forward
0 new messages