<div dir="ltr">What are the values of T, cold_hours, and hot_hours?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 10, 2022 at 2:10 AM Barry Lynn via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi:<div><br></div><div>I can't figure out how this can be.  Why isn't "max"working and why are the values divided by 1000?</div><div><br></div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">cold_hours_cost = new(2,float)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">hot_hours_cost = new(2,float)</span></p></div><div><br></div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">p_cold = T*cold_hours</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">p_hot = T*hot_hours</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">cold_hours_cost(1) = p_cold</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">hot_hours_cost(1) = p_hot</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>print("cold_hours = " + cold_hours_cost)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>print("hot_hours = " + hot_hours_cost)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">max_c = max(cold_hours)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">max_h = max(hot_hours)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">print("max(cold_hours) = " + max_c)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">print("max(hot_hours) = " + max_h)</span></p></div><div><br></div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">(0)<span style="white-space:pre-wrap">      </span>cold_hours = 0</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">(1)<span style="white-space:pre-wrap">      </span>cold_hours = -4111.11</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">(0)<span style="white-space:pre-wrap">      </span>hot_hours = 0</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">(1)<span style="white-space:pre-wrap">      </span>hot_hours = 4111.11</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">(0)<span style="white-space:pre-wrap">      </span>max(cold_hours) = -4.11111</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span style="font-variant-ligatures:no-common-ligatures">(0)<span style="white-space:pre-wrap">      </span>max(hot_hours) = 4.11111</span></p><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior <font color="#000000">Scientist, Lecturer,</font></div><div><div><font color="#000000">The Institute of Earth Sciences, <br>The Hebrew University of Jerusalem, <br>Givat Ram, Jerusalem 91904, Israel <br></font></div><font color="#000000">Tel: 972 547 231 170<br>Fax: (972)-25662581</font></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">https://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>