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:
- Returns:
The map object converted to the specified new class.
- Return type:
- 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.