convert_quantities_to_units#
- ndcube.utils.misc.convert_quantities_to_units(coords, units)[source]#
- Converts a sequence of Quantities to units used in the WCS. - Non-Quantity types in the sequence are allowed and ignored. - Parameters:
- coords (iterable of - astropy.units.Quantityor- None) – The coordinates to be converted.
- units (iterable of - astropy.units.Unitor- str) – The units to which the coordinates should be converted.
 
- Returns:
- converted_coords (iterable of - astropy.units.Quantityor- None) – The coordinates converted to the units. Non-quantity types remain.
 
