VOUnit

class astropy.units.format.VOUnit[source] [edit on github]

Bases: astropy.units.format.Generic

The IVOA standard for units used by the VO.

This is an implementation of Units in the VO 1.0.

Attributes Summary

name

Methods Summary

parse(s[, debug]) Convert a string to a unit object.
to_string(unit) Convert a unit object to a string.

Attributes Documentation

name = 'vounit'

Methods Documentation

classmethod parse(s, debug=False)[source] [edit on github]

Convert a string to a unit object.

classmethod to_string(unit)[source] [edit on github]

Convert a unit object to a string.