Deprecated since version 0.2: Use astropy.units instead.
UnitConverter(have, want, translate_units=’‘)
An object for converting from one system of units to another.
Use the returned object’s convert method to convert values from have to want.
This function is permissive in accepting whitespace in all contexts in a units specification where it does not create ambiguity (e.g. not between a metric prefix and a basic unit string), including in strings like "log (m ** 2)" which is formally disallowed.
Note
Deprecated in Astropy 0.2
UnitConverter will be removed in a future version of astropy. The astropy.units package should be used instead.
Parameters : | have : string
want : string
ctrl : string, optional
|
---|---|
Raises : | ValueError :
SyntaxError :
SyntaxError :
SyntaxError :
SyntaxError :
SyntaxError :
SyntaxError :
SyntaxError :
SyntaxError :
SyntaxError :
SyntaxError :
ValueError :
|