On Wednesday, 13 May 2020 08:24:13 UTC+10, Ryan Stasel wrote:
>
>
> how can I easily go about deleting the rain data for today so I can 
> re-import from another system? I'm good deleting everything from today and 
> re-importing. 
>
>
Really depends on how you are going to 'import'. If you are planning on 
using wee_import then you need to delete the offending records from the 
archive as wee_import adds records to the archive it does not update 
existing records. If you intend manually changing the rain data using some 
command line SQL or a GUI app of some description then you just need 
delete/change the rain field data. This wiki entry 
<https://github.com/weewx/weewx/wiki/Cleaning-up-old-'bad'-data> covers 
cleaning up 'bad' data but its techniques can be equally applied to 
updating incorrect rain data. At the end of the day it probably comes down 
to how many records you have to update and whether you have the complete 
suite of observations for the archive records you need to alter. Remember 
also that your rainRate field may have been calculated based upon your 
bogus rain data so you may need to alter that as well. If you are running 
WeeWX 4 one solution may be to set any bogus rainRate entries to null/None 
and then use the wee_database utility 
<http://weewx.com/docs/utilities.htm#wee_database_utility> with the 
--calc-missing option to re-calculate your (now missing) rainRate fields.

A couple of other implied tasks, if you update your archive using something 
other than wee_import once you have updated your archive data you need to 
rebuild your daily summaries over the period you updated/modified. The 
wee_database utility will take care of this. Also, if you are generating 
any NOAA format reports you will need to delete them all so that WeeWX can 
rebuild them with the updated data.

Gary

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b90e7dfc-27b3-4563-8790-53ac0ff311c5%40googlegroups.com.

Reply via email to