<div dir="ltr">Hi Bruce --<div><br></div><div>This functionality and most of these parameters are available within Astropy, but they are spread between a few different classes. The relevant pieces are:</div><div><a href="http://docs.astropy.org/en/latest/api/astropy.coordinates.get_sun.html#astropy.coordinates.get_sun">http://docs.astropy.org/en/latest/api/astropy.coordinates.get_sun.html#astropy.coordinates.get_sun</a><br></div><div><a href="http://docs.astropy.org/en/latest/api/astropy.coordinates.EarthLocation.html#astropy.coordinates.EarthLocation">http://docs.astropy.org/en/latest/api/astropy.coordinates.EarthLocation.html#astropy.coordinates.EarthLocation</a><br></div><div><a href="http://docs.astropy.org/en/latest/api/astropy.coordinates.builtin_frames.AltAz.html#astropy.coordinates.builtin_frames.AltAz">http://docs.astropy.org/en/latest/api/astropy.coordinates.builtin_frames.AltAz.html#astropy.coordinates.builtin_frames.AltAz</a><br></div><div><br></div><div>Here is a small demo (as a Jupyter notebook) comparing the azimuth and altitude values computed on a grid of times in Astropy to the NREL form output:</div><div><a href="https://gist.github.com/9e58e1ba422c1df9b8d1fe28d790071b">https://gist.github.com/9e58e1ba422c1df9b8d1fe28d790071b</a></div><div><br></div><div>There are some small differences in altitude (possibly because of the approximate refraction estimate we are using from SOFA/ERFA), but otherwise they agree quite well.</div><div><br></div><div>Let me know if you need any help tracking down various parameters and figuring out where to pass them in to Astropy!</div><div><br></div><div>best,</div><div>Adrian</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 21, 2019 at 2:13 PM Bruce Simonson <<a href="mailto:bruce.simonson@gmail.com">bruce.simonson@gmail.com</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"><div dir="ltr"><div dir="ltr"><div>Greetings,</div><div><br></div><div>I'm new to astropy, and the mailing list.  I'm not sure (yet) how to search previous posts, or if there's an appropriate forum to use to post questions.</div><div><br></div><div>I'm wondering if a particular solar position calculator has been implemented in astropy.  Here is the reference:<br></div><div><br></div><div><a href="http://www.nrel.gov/docs/fy08osti/34302.pdf" target="_blank"><font color="#0066cc">Reda, I.; Andreas, A. (2003). Solar Position Algorithm for Solar Radiation Applications. 55 pp.; NREL Report No. TP-560-34302, Revised January 2008.</font><i title="PDF"></i></a></div><div><br></div><div>Here is an implementation, from NREL, online:</div><div><br></div><div><a href="https://midcdmz.nrel.gov/solpos/spa.html" target="_blank">https://midcdmz.nrel.gov/solpos/spa.html</a></div><div><br></div><div>I would like to compute solar positions, based on (most of) the parameters available in this solar position calculator -- ideally from a python module, especially astropy, if the calculator has been implemented.</div><div><br></div><div>Sorry for the post, if this has been discussed elsewhere.</div><div><br></div><div>Thanks,</div><div>-Bruce</div></div></div></div>
_______________________________________________<br>
AstroPy mailing list<br>
<a href="mailto:AstroPy@python.org" target="_blank">AstroPy@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/astropy" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/astropy</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Adrian M. Price-Whelan<br>Flatiron Institute, NYC<br><a href="http://adrn.github.io" target="_blank">http://adrn.github.io</a></div>