Just a few points here. I'm sure it's just a typo that has perpetuated itself through the thread, but the default WeeWX database is
weewx.sdb not
weewx.sbd. Also, case matters here.
The recommended approach for correcting spurious data in the database is to locate and fix the spurious data in the archive table and then rebuild the daily summaries for the period concerned using
wee_database. This procedure is covered in the
Cleaning up old 'bad' data wiki page (note this page details the use of
sqlite3 to manipulate the archive, these steps can equally be completed using other tools such as
DB Browser for SQLite etc, also the page currently does not mention the use of
--from,
--to or
--date to limit the period of any daily summary rebuilds). This may give some loss of max/min values and times but any such loss will be minor.
Fixing any spurious data in the daily summary tables by direct editing is also possible, but it will likely be time consuming and is prone to error and hence not recommended. Consider if there is one anomalous outTemp value in a day, first you need to edit and remove the spurious data in the archive. Then you would need to locate the day concerned in the outTemp daily summary table and edit the max and maxtime fields replacing the data with the new max outTemp and the time it occurred for that day obtained by looking through that days temperature values in the archive, perhaps looking through hundreds of records. If there are other days with spurious data you would need to repeat this process for each day. Likewise for other obs (remember some obs are derived from others so an anomaly in outTemp may cause anomalies in heatindex, windchill, dewpoint etc rain anomalies may cause anomalies in rainRate). Thus just a few days of anomalous data can result in many time consuming changes being required.
Also, the --reweight option was implemented to fix an issue in earlier WeeWX versions (post v3.0.0) where archive records in databases with multiple different archive intervals were not correctly weighted in the daily summary tables. This issue was fixed in v4.3.0 and providing you are running v4.3.0 or later the reweighing of the database should only be needed as a one-off 'patch' which should have been performed automatically on startup of v 4.3.0 or later, all archive records subsequently added/modified etc by WeeWX or wee_database are automatically correctly weighted. Bottom line is users should not really need to use the --reweight option. Note the --reweight option does not perform the same function as --rebuild-daily.
Gary