[AstroPy] Units with time-dependent conversion

Peter Dzwig pdzwig at summaventures.com
Wed Aug 10 11:12:08 EDT 2016


...but how much historic data do you want to have to hold? and at what granularity?

Peter Dzwig

On 04/08/2016 18:26, JJ Kavelaars wrote:
> 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
>> <mailto: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) 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 <mailto:AstroPy at scipy.org>
>> https://mail.scipy.org/mailman/listinfo/astropy
> 
> 
> 
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> https://mail.scipy.org/mailman/listinfo/astropy
> 

-- 

===========================================================
Dr Peter Dzwig				




More information about the AstroPy mailing list