11@if (inDashboard) {
2- < div class ="upload-banner banner d-flex justify-content-between w-100 ">
3- < div class ="banner-title ">
4- < h3 > < span class ="fa fa-temperature-half "> </ span > Weather Data</ h3 >
5- </ div >
2+ < div class ="upload-banner banner d-flex justify-content-between w-100 ">
3+ < div class ="banner-title ">
4+ < h3 > < span class ="fa fa-temperature-half "> </ span > Weather Data</ h3 >
65 </ div >
6+ </ div >
77}
88
99< div class ="wrapper main-content ">
1313 < p >
1414 This page provides a detailed look of the weather data available for use by VERIFI. The weather data is pulled
1515 from < a href ="https://www.ncei.noaa.gov/ " target ="_blank "> The National Centers for Environmental
16- Information</ a > . If quality
17- data is found, VERIFI can automatically calculate heating and cooling degree days, average relative humidity and
18- average dry bulb temperature. The calculated weather data can
19- be used as predictor data for analysis.
20- </ p >
21- < p >
22- For much more information on all things degree days, visit < a href ="https://www.degreedays.net/ "
23- target ="_blank "> https://www.degreedays.net/</ a >
24- </ p >
25- < p >
26- Average relative humidty and dry bulb temperature are calculated using a weighted average where the weights are
27- the number of minutes that a reading covers.
28- </ p >
29- < hr >
16+ Information</ a > . If quality
17+ data is found, VERIFI can automatically calculate heating and cooling degree days, average relative humidity and
18+ average dry bulb temperature. The calculated weather data can
19+ be used as predictor data for analysis.
20+ </ p >
21+ < p >
22+ For much more information on all things degree days, visit < a href ="https://www.degreedays.net/ "
23+ target ="_blank "> https://www.degreedays.net/</ a >
24+ </ p >
25+ < p >
26+ Average relative humidity and dry bulb temperature are calculated using a weighted average where the weights are
27+ the number of minutes that a reading covers.
28+ </ p >
29+ < hr >
3030 < router-outlet > </ router-outlet >
3131</ div >
3232
@@ -36,49 +36,101 @@ <h4>
3636 < button class ="item-right " (click) ="cancelApplyToFacility() "> x</ button >
3737 </ div >
3838 < div class ="popup-body ">
39- @if (weatherDataSelection == 'HDD') {
40- < p > Select the facility to create new heating degree day predictors using
41- the selected weather station and temperature threshold.</ p >
42- }
43- @if (weatherDataSelection == 'CDD') {
44- < p > Select the facility to create new cooling degree day predictors using
45- the selected weather station and temperature threshold.</ p >
46- }
4739 @if (weatherDataSelection == 'degreeDays') {
48- < p > Select the facility to create new heating and cooling degree day
40+ < p > Select the facility to create new heating and cooling degree day
4941 predictors using the selected weather station and temperature thresholds.</ p >
5042 }
51- @if (weatherDataSelection == 'relativeHumidity') {
52- < p > Select the facility to create new relative humidity
53- predictors using the weighted average relative humidity of the selected station.</ p >
54- }
55- @if (weatherDataSelection == 'dryBulbTemp') {
56- < p > Select the facility to create new dry bulb temperature
57- predictors using the weighted average dry bulb temp of the selected station.</ p >
43+ @else {
44+ < p > Select the facility and one or more predictor types below to create predictors using the selected weather station
45+ and temperature thresholds.</ p >
5846 }
47+
5948 < form >
60- < select class ="form-select " name ="selectedFacility " [(ngModel)] ="selectedFacility "
61- (change) ="setFacilityData() ">
49+ < select class ="form-select " name ="selectedFacility " [(ngModel)] ="selectedFacility " (change) ="setFacilityData() ">
6250 @for (facility of facilities; track facility) {
63- < option [ngValue] ="facility "> {{facility.name}}</ option >
51+ < option [ngValue] ="facility "> {{facility.name}}</ option >
6452 }
6553 </ select >
54+
55+ @if(selectedFacility) {
56+ < div class ="d-flex flex-column mb-3 mt-3 ">
57+ @if(cddSelected || hddSelected) {
58+ < div class ="row justify-content-end ">
59+ < div class ="col-6 ">
60+ < span class ="text-muted fst-italic "> Base Temperature</ span >
61+ </ div >
62+ </ div >
63+ }
64+ < div class ="row g-2 align-items-center mb-2 flex-nowrap predictor-row ">
65+ < div class ="col-6 ">
66+ < input type ="checkbox " id ="cddSelected " name ="cddSelected " class ="form-check-input "
67+ [(ngModel)] ="cddSelected ">
68+ < label for ="cddSelected " class ="fw-bold ps-2 "> Cooling Degree Days</ label >
69+ </ div >
70+ @if(cddSelected) {
71+ < div class ="col-6 ">
72+ < div class ="input-group ">
73+ < input type ="number " class ="form-control border-primary bg-light " name ="cddBaseTemp "
74+ [(ngModel)] ="cddBaseTemp ">
75+ < span class ="input-group-text "> ℉</ span >
76+ </ div >
77+ </ div >
78+ }
79+ </ div >
80+
81+ < div class ="row g-2 align-items-center mb-2 flex-nowrap predictor-row ">
82+ < div class ="col-6 ">
83+ < input type ="checkbox " id ="hddSelected " name ="hddSelected " class ="form-check-input "
84+ [(ngModel)] ="hddSelected ">
85+ < label for ="hddSelected " class ="fw-bold ps-2 "> Heating Degree Days</ label >
86+ </ div >
87+ @if(hddSelected) {
88+ < div class ="col-6 ">
89+ < div class ="input-group ">
90+ < input type ="number " class ="form-control border-primary bg-light " name ="hddBaseTemp "
91+ [(ngModel)] ="hddBaseTemp ">
92+ < span class ="input-group-text "> ℉</ span >
93+ </ div >
94+ </ div >
95+ }
96+ </ div >
97+
98+ < div class ="row g-2 align-items-center mb-2 flex-nowrap predictor-row ">
99+ < div class ="col-12 ">
100+ < input type ="checkbox " id ="relativeHumiditySelected " name ="relativeHumiditySelected "
101+ class ="form-check-input " [(ngModel)] ="relativeHumiditySelected ">
102+ < label for ="relativeHumiditySelected " class ="fw-bold ps-2 ">
103+ Relative Humidity
104+ </ label >
105+ </ div >
106+ </ div >
107+
108+ < div class ="row g-2 align-items-center mb-2 flex-nowrap predictor-row ">
109+ < div class ="col-12 ">
110+ < input type ="checkbox " id ="dryBulbTempSelected " name ="dryBulbTempSelected " class ="form-check-input "
111+ [(ngModel)] ="dryBulbTempSelected ">
112+ < label for ="dryBulbTempSelected " class ="fw-bold ps-2 ">
113+ Dry Bulb Temperature
114+ </ label >
115+ </ div >
116+ </ div >
117+ </ div >
118+ }
66119 </ form >
67120 @if (facilityPredictorData?.length == 0 && facilityMeterData?.length != 0) {
68- < div class ="alert alert-warning ">
69- No facility predictor entries found. Entries will be created to match facility meter dates.
70- </ div >
121+ < div class ="alert alert-warning ">
122+ No facility predictor entries found. Entries will be created to match facility meter dates.
123+ </ div >
71124 }
72125 @if (facilityMeterData?.length == 0) {
73- < div class ="alert alert-danger ">
74- No meter data found for this facility, predictors cannot be created.
75- </ div >
126+ < div class ="alert alert-danger ">
127+ No meter data found for this facility, predictors cannot be created.
128+ </ div >
76129 }
77130 </ div >
78131 < div class ="saveCancel popup-footer text-end ">
79132 < button class ="btn btn-secondary " (click) ="cancelApplyToFacility() "> Cancel</ button >
80- < button class ="btn action-btn " (click) ="confirmCreate() "
81- [disabled] ="!selectedFacility || facilityMeterData?.length == 0 "> Create
82- Predictors</ button >
133+ < button class ="btn action-btn " (click) ="confirmCreate() " [disabled] ="isButtonDisabled() "> Create
134+ Predictors</ button >
83135 </ div >
84136</ div >
0 commit comments