heating_base and cooling_base values seems to be ignored in degreedays/NOAA reports

57 views
Skip to first unread message

mph

unread,
Jul 14, 2019, 4:32:29 AM7/14/19
to weewx-user

Hello,

I'd decided to change my base temperatures for DegreeDays and NOAA reports.

I've changed the values in /etc/weewx/weex.conf

pi@rpi-meteo:~ $ grep "_base" -r /etc/weewx/*
/etc/weewx/weewx.conf:                    heating_base = 21, degree_C
/etc/weewx/weewx.conf:                    cooling_base = 25, degree_C

then restarted weewx and deleted all the content of the var/weewx/reports/NOAA directory.

The NOAA reports were re-generated, but the reports and thus base temperatures are still the same (avg_temp - cool_days_deg = 18.3 ~ 65, degree_F)
I've dropped and regenerated the weewx daily data

sudo service weewx stop
sudo wee_database --drop-daily
sudo wee_database --rebuild-daily
sudo service weewx start

Then I've slightly modified the NOAA templates to be sure the reports are newly generated, and then removed the old reports again.
The reports were re-generated, see example NOAA-2019-06.txt in attachment. But there's still no change in the DegDays calculations - compare to an old NOAA-2019-06_backup.txt.

Seems the weewx.conf values are ignored, the default *_base value "65, degree_F" is always used.
Or am I doing something wrong?

NOAA-2019-06.txt
NOAA-2019-06_backup.txt

Thomas Keffer

unread,
Jul 14, 2019, 9:44:29 AM7/14/19
to weewx-user
Confirming this. The problem is one too many sets of brackets around the DegreeDays section in weewx.conf. Work around is to remove one set of brackets. Same with Trend. So, instead of this

                # The following section sets the base temperatures used for the
                #  calculation of heating and cooling degree-days.
                [[[[[DegreeDays]]]]]
                   
                    # Base temperature for heating days, with unit:
                    heating_base = 60, degree_F
                    # Base temperature for cooling days, with unit:
                    cooling_base = 60, degree_F
                    # Base temperature for growing days, with unit:
                    growing_base = 50, degree_F
               
                # A trend takes a difference across a time period. The following
                # section sets the time period, and how big an error is allowed to
                # still be counted as the start or end of a period.
                [[[[[Trend]]]]]
                   
                    time_delta = 10800    # 3 hours
                    time_grace = 300    # 5 minutes
        
you want this

                # The following section sets the base temperatures used for the
                #  calculation of heating and cooling degree-days.
                [[[[DegreeDays]]]]
                   
                    # Base temperature for heating days, with unit:
                    heating_base = 60, degree_F
                    # Base temperature for cooling days, with unit:
                    cooling_base = 60, degree_F
                    # Base temperature for growing days, with unit:
                    growing_base = 50, degree_F
               
                # A trend takes a difference across a time period. The following
                # section sets the time period, and how big an error is allowed to
                # still be counted as the start or end of a period.
                [[[[Trend]]]]
                   
                    time_delta = 10800    # 3 hours
                    time_grace = 300    # 5 minutes

        

I've opened up issue #432 to track. Thanks for finding this!

-tk

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3befa67e-d797-4248-816b-f00cf2039c86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mph

unread,
Jul 14, 2019, 12:06:26 PM7/14/19
to weewx-user
Hello Thomas,

you're welcome ;-)
I thank you for fast and helpfull response. Your advice works.

There's still a problem when using degree_C with *_base values.
I had to convert my *_base values to degree_F to receive valid NOAA records.

This issue is already being tracked somewhere.

Pavel


Dne neděle 14. července 2019 10:32:29 UTC+2 mph napsal(a):

Thomas Keffer

unread,
Jul 15, 2019, 3:17:32 PM7/15/19
to weewx-user
Fixed in commit abb2538, to appear in Version 4.0.

-tk

--
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 weewx-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages