Your import config file is fine and provided a couple of conditions were 
met the missing fields should have been calculated. The two conditions are  
(1) any pre-requisites for calculating the fields concerned must exist, for 
example for heatindex, windchill and dewpoint you must have a non-None 
outTemp value. If a pre-requisite is missing the calculated value will be 
None. (2) Even if the calculated values were calculated there must be no 
record already existing in the archive with the same timestamp as the 
record being imported. If such a record already exists in the archive the 
imported record is discarded in it's entirety (not just the calculated 
fields). So if these conditions were met your imported data including 
calculated fields should have been imported and saved to archive, if they 
were not imported then something went wrong.

A few questions to try to narrow down the cause. What does your data look 
like? Can you post some of the records here or if you don't want to can you 
reply privately to this post with your raw import data. Did records already 
exist in your archive for the period covered by the data you were 
importing? How did you check the imported data? Did you query the database 
archive table directly or rely on WeeWX generated output? If the former 
what command did you use and what results were presented? Did the other 
non-calculated fields import correctly? What was presented on-screen when 
you ran wee_import? Were there any errors or warnings? wee-import will have 
written some entries to the log at the time of the import, they should be 
clearly evident with a 'wee_import' label, what do these entries say?

Gary

On Sunday, 7 August 2022 at 00:23:31 UTC+10 [email protected] wrote:

> I imported ~1 year of data from csv, using this `import.conf` 
> configuration:
>     source = CSV
>     [CSV]
>         file = my-data.csv
>         interval = 1
>         qc = True
>         calc_missing = True
>         ignore_invalid_data = True
>         tranche = 250
>         UV_sensor = False
>         solar_sensor = False
>         raw_datetime_format = %Y-%m-%dT%H:%M
>         rain = discrete
>         wind_direction = 0,360
>         [[FieldMap]]
>             dateTime    = dateTime, unix_epoch
>             usUnits     =
>             interval    =
>             barometer   = barometer, hPa
>             pressure    =
>             altimeter   =
>             inTemp      = insideTemp, degree_C
>             outTemp     = outsideTemp, degree_C
>             inHumidity  = insideHum, percent
>             outHumidity = outsideHum, percent
>             windSpeed   = windSpeed, km_per_hour
>             windDir     = windDirection, degree_compass
>             windGust    = hiWindSpeed, km_per_hour
>             windGustDir = hiWindDirection, degree_compass
>             rainRate    = hiRainRate, mm_per_hour
>             rain        = rain, mm
>             dewpoint    =
>             windchill   =
>             heatindex   =
>             ET          =
>             radiation   =
>             UV          =
>
> What I expected was that the following fields would have been calculated, 
> starting from the other available fields:
>     altimeter
>     dewpoint
>     heatindex
>     pressure
>     windchill
> But in the `archive` table, those columns are empty.
>
> Did I do something wrong, or is the behavior correct? So I cannot have 
> such fields calculated...?
>

-- 
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/619fe113-d24b-4f21-aa0d-6077d4240b41n%40googlegroups.com.

Reply via email to