change_map_style

erwans3.Astro_tools.change_map_style(mapp: Union[PixList, SHCoeff], new_class: type, **kwargs) Union[PixList, SHCoeff]

Change the style of a map object to a different map class.

Parameters:
  • mapp (PixList or SHCoeff) – The map object to be converted.

  • new_class (type) – The target map class to convert to.

  • **kwargs – Additional keyword arguments to pass to the conversion methods.

Returns:

The map object converted to the specified new class.

Return type:

PixList or SHCoeff

Raises:

TypeError – If the input map class or target new class is unsupported or not recognized.

Notes

This function converts a map object of one class to another map class. It supports conversions between PixMap, HpxMap, HpxPart, and SHCoeff classes. The conversion is performed based on the input map class and the target new class specified by new_class.