<div dir="ltr"><span style="font-size:13px">This update adds two convenience functions:</span><div style="margin:0px;padding:0px;border:0px;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;font-size:13px"><ol><li style="line-height:17px">get_solposAM(location, datetimes, weather) - returns solar positions and airmass for arbitrary sequence of datetime vectors [year, month, day, hour, minute second].</li><li style="line-height:17px">get_solpos8760(location, year, weather) - returns 8760 annyual hourly solar position and airmass for given year.</li></ol></div><div style="margin:0px;padding:0px;border:0px;font-size:13px">For example:</div><div style="margin:0px;padding:0px;border:0px;font-size:13px"><pre style="margin-top:0px;margin-bottom:0px;padding:7px 30px;border:0px;overflow:auto hidden;font-family:Consolas,Menlo,"DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;font-size:0.9em;background:rgb(238,238,238);line-height:1.3em;color:rgb(62,67,73)"><span style="margin:0px;padding:0px;border:0px;color:rgb(198,93,9);font-weight:bold">>>> </span><span style="margin:0px;padding:0px;border:0px">location</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,102)">=</span> <span style="margin:0px;padding:0px;border:0px">[</span><span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">35.56836</span><span style="margin:0px;padding:0px;border:0px">,</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,102)">-</span><span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">119.2022</span><span style="margin:0px;padding:0px;border:0px">,</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,102)">-</span><span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">8.0</span><span style="margin:0px;padding:0px;border:0px">]</span>
<span style="margin:0px;padding:0px;border:0px;color:rgb(198,93,9);font-weight:bold">>>> </span><span style="margin:0px;padding:0px;border:0px">datetimes</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,102)">=</span> <span style="margin:0px;padding:0px;border:0px">[</span>
<span style="margin:0px;padding:0px;border:0px;color:rgb(198,93,9);font-weight:bold">... </span>    <span style="margin:0px;padding:0px;border:0px">(</span><span style="margin:0px;padding:0px;border:0px">datetime</span><span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,102)">.</span><span style="margin:0px;padding:0px;border:0px">datetime</span><span style="margin:0px;padding:0px;border:0px">(</span><span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">2013</span><span style="margin:0px;padding:0px;border:0px">,</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">1</span><span style="margin:0px;padding:0px;border:0px">,</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">1</span><span style="margin:0px;padding:0px;border:0px">,</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">0</span><span style="margin:0px;padding:0px;border:0px">,</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">0</span><span style="margin:0px;padding:0px;border:0px">,</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">0</span><span style="margin:0px;padding:0px;border:0px">)</span>
<span style="margin:0px;padding:0px;border:0px;color:rgb(198,93,9);font-weight:bold">... </span>     <span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,102)">+</span> <span style="margin:0px;padding:0px;border:0px">datetime</span><span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,102)">.</span><span style="margin:0px;padding:0px;border:0px">timedelta</span><span style="margin:0px;padding:0px;border:0px">(</span><span style="margin:0px;padding:0px;border:0px">hours</span><span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,102)">=</span><span style="margin:0px;padding:0px;border:0px">h</span><span style="margin:0px;padding:0px;border:0px">))</span><span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,102)">.</span><span style="margin:0px;padding:0px;border:0px">timetuple</span><span style="margin:0px;padding:0px;border:0px">()[:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">6</span><span style="margin:0px;padding:0px;border:0px">]</span>
<span style="margin:0px;padding:0px;border:0px;color:rgb(198,93,9);font-weight:bold">... </span>    <span style="margin:0px;padding:0px;border:0px;color:rgb(0,112,32);font-weight:bold">for</span> <span style="margin:0px;padding:0px;border:0px">h</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(0,112,32);font-weight:bold">in</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(0,112,32)">range</span><span style="margin:0px;padding:0px;border:0px">(</span><span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">1000</span><span style="margin:0px;padding:0px;border:0px">)]</span>
<span style="margin:0px;padding:0px;border:0px;color:rgb(198,93,9);font-weight:bold">>>> </span><span style="margin:0px;padding:0px;border:0px">weather</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,102)">=</span> <span style="margin:0px;padding:0px;border:0px">[</span><span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">1015.62055</span><span style="margin:0px;padding:0px;border:0px">,</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(32,128,80)">40.0</span><span style="margin:0px;padding:0px;border:0px">]</span>
<span style="margin:0px;padding:0px;border:0px;color:rgb(198,93,9);font-weight:bold">>>> </span><span style="margin:0px;padding:0px;border:0px">angles</span><span style="margin:0px;padding:0px;border:0px">,</span> <span style="margin:0px;padding:0px;border:0px">airmass</span> <span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,102)">=</span> <span style="margin:0px;padding:0px;border:0px">get_solposAM</span><span style="margin:0px;padding:0px;border:0px">(</span><span style="margin:0px;padding:0px;border:0px">location</span><span style="margin:0px;padding:0px;border:0px">,</span> <span style="margin:0px;padding:0px;border:0px">datetimes</span><span style="margin:0px;padding:0px;border:0px">,</span> <span style="margin:0px;padding:0px;border:0px">weather</span><span style="margin:0px;padding:0px;border:0px">)</span></pre></div><div style="margin:0px;padding:0px;border:0px;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;font-size:13px">For more info, please see:</div><div style="margin:0px;padding:0px;border:0px;font-size:13px"><ul><li style="line-height:17px">docs: <a href="https://sunpower.github.io/SolarUtils/" target="_blank" rel="nofollow" style="margin:0px;padding:0px;border:0px;text-decoration-line:none;color:rgb(102,17,204)">https://sunpower.github.io/SolarUtils/</a></li><li style="line-height:17px">repo: <a href="https://github.com/SunPower/SolarUtils" target="_blank" rel="nofollow" style="margin:0px;padding:0px;border:0px;text-decoration-line:none;color:rgb(102,17,204)">https://github.com/SunPower/SolarUtils</a></li><li style="line-height:17px">pypi: <a href="https://pypi.org/project/SolarUtils/" target="_blank" rel="nofollow" style="margin:0px;padding:0px;border:0px;text-decoration-line:none;color:rgb(102,17,204)">https://pypi.org/project/SolarUtils/</a></li></ul></div><div style="margin:0px;padding:0px;border:0px;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;font-size:13px">Thanks!</div><br class="gmail-Apple-interchange-newline"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><span style="font-size:12.8px">Mark Mikofski, PhD (2005)</span><br></div><div><span style="font-size:12.8px"><i>Fiat Lux</i></span><br></div></div></div></div></div>