Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle for Units Conversion #102

Open
eholum opened this issue Jun 3, 2016 · 1 comment
Open

Oracle for Units Conversion #102

eholum opened this issue Jun 3, 2016 · 1 comment

Comments

@eholum
Copy link
Member

eholum commented Jun 3, 2016

Need a framework or suite of tests that we know* correctly converts units (incl. errors)

@jbudynk
Copy link
Member

jbudynk commented Jun 17, 2016

I've got a Python units package you can clone at

https://github.com/jbudynk/unitoracle

Just run the usual python setup.py <develop|install> to work with it.

Check unitoracle/units-conversion-script.py to see how you can use the package. You'll need astropy and numpy. There are doc strings with each function, too. I mainly addressed converting between fluxes and magnitudes, but there's also a general converter for converting between all types of fluxes.

Note: I haven't yet tested velocity or wavenumber units, nor that Rayleigh/Angstrom unit, or the flux units.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants