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

Implement units within our workspaces #942

Closed
NickDraper opened this issue Feb 14, 2008 · 1 comment
Closed

Implement units within our workspaces #942

NickDraper opened this issue Feb 14, 2008 · 1 comment
Milestone

Comments

@NickDraper
Copy link
Contributor

After consideration this should not use the gnu units program, this would be over complicated and perhaps not support what we need anyway.

LibIsis takes a simpler approach where it supports a limited number of units
[http://web2.isis.rl.ac.uk/libisiswiki/units%20code].

We need to understand how LibISIS performs it’s units onversion, and implement sonething similar as an algorithm (or collection of algorithms). Talk to Dickon to get an idea of how LibISIS does it.

We would need to store a unit for the Y and X values.
We will also need to store a bool for each to indicate if the data is a distribution.

The units string should be as standard as possible use the settings in UDUnits (google it) as examples(i.e. no pluralisation of the unit). However do not include the use of UDUnits itself.

After speaking to Freddie it appears that for the conversions we can probably get away with using a common unit as a middle man in all conversions. Eg. to convert from wavelength to energy you first convert wavelength to TOF and the TOF to energy. this reduces the number of conversions you need from n*n to n+n.

@NickDraper
Copy link
Contributor Author

This issue was originally trac ticket 94

@NickDraper NickDraper added this to the Iteration 7 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant