VOUnit

class astropy.units.format.VOUnit(*args, **kwargs)[source]

Bases: 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]

Convert a string to a unit object.

classmethod to_string(unit)[source]

Convert a unit object to a string.