astropy.units.with_H0(H0=None)[source] [edit on github]

Convert between quantities with little-h and the equivalent physical units.

H0 : None or Quantity

The value of the Hubble constant to assume. If a Quantity, will assume the quantity is H0. If None (default), use the H0 attribute from the default astropy.cosmology cosmology.


For an illuminating discussion on why you may or may not want to use little-h at all, see https://arxiv.org/pdf/1308.4150.pdf