<div dir="ltr"><div>Hi Mario,</div><div><br></div><div>Your best bet (right now) is probably to use the ERFA library directly.  This is bundled in astropy.time.  You can get an example of this here:</div><div><br></div>  <a href="https://github.com/astropy/astropy/blob/v1.0/astropy/time/core.py#L1427" target="_blank">https://github.com/astropy/astropy/blob/v1.0/astropy/time/core.py#L1427</a><br><div><br></div><div>Note that this example uses the name <font face="monospace, monospace">erfa_time.dtf_jd</font> as an alias to the actual routine name <font face="monospace, monospace">dtf2d</font>.  See [1] for some words about the aliasing, but the short version is you should probably use <font face="monospace, monospace">dtf2d</font> to be safe.</div><div><br></div><div>An even better option would be to implement this as a new astropy Time format.  I've opened an issue to provide some detail:</div><div><br></div><div>  <a href="https://github.com/astropy/astropy/issues/3527">https://github.com/astropy/astropy/issues/3527</a><br></div><div><br></div><div>Cheers,</div><div>Tom</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 19, 2015 at 5:56 PM, Mario Juric <span dir="ltr"><<a href="mailto:mjuric@lsst.org" target="_blank">mjuric@lsst.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
  Â  Â  Â  Is there an efficient way to go from three ndarrays of year, month, day<br>
values to julian date? I.e., an equivalent of:<br>
<br>
  Â  Â  Â  jd  = ymd_to_jd(yy, mm, dd)<br>
<br>
, where all variables are (potentially large) ndarrays?<br>
<br>
Cheers,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Mario Juric,<br>
UW Astronomy Faculty | UW eScience | LSST DM Project Scientist<br>
Web : <a href="http://research.majuric.org" target="_blank">http://research.majuric.org</a>  Â  Â  Phone : <a href="tel:%2B1%20609%20933%201033" value="+16099331033">+1 609 933 1033</a><br>
_______________________________________________<br>
AstroPy mailing list<br>
<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
</font></span></blockquote></div><br></div>