[AstroPy] Units with time-dependent conversion
JJ Kavelaars
jjk at uvic.ca
Thu Aug 4 13:26:34 EDT 2016
Perhaps currency is a coordinate transform rather than a unit change.
JJ
> On Aug 4, 2016, at 3:33 AM, Elke Schaper <elkewschaper at gmail.com> wrote:
>
> Dear Astropy-Team,
>
>
> thanks for a great tool first of all!
> Perhaps this question has been asked before:
>
> We would like to add “Currency” as a unit system to astropy, with units such as “USD”, “EUR”, …
> This would allow to use all of the great astropy functionality (e.g. the close integration with numpy) on monetary data also, combined with all already integrated units.
>
> In principle, new units are easy to add to Astropy.
> Now comes the challenge:
>
> Conversions between these units change with time. For example, there are other great Python packages (such as https://pypi.python.org/pypi/CurrencyConverter/0.5 <https://pypi.python.org/pypi/CurrencyConverter/0.5>) to do a time dependent conversion.
>
> Is it possible to add “time” as an input parameter to unit conversion in Astropy?
> If yes, could you give me some hints how to best go ahead (I would probably need to overwrite some of the internal functionality?). Or is this a solved problem, just I overlooked it?
>
>
>
> Thanks a lot, all the best!
>
>
> Elke
>
>
>
>
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> https://mail.scipy.org/mailman/listinfo/astropy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20160804/89eaaeb9/attachment.html>
More information about the AstroPy
mailing list