smpy.coordinates.get_coordinate_system

smpy.coordinates.get_coordinate_system(system_name)[source]

Create the appropriate coordinate system instance.

Factory function that returns the correct coordinate system implementation based on the specified system name.

Parameters:

system_name (str) – Name of coordinate system (‘radec’ or ‘pixel’).

Returns:

coord_system – Instance of RADecSystem or PixelSystem subclass.

Return type:

CoordinateSystem

Raises:

ValueError – If system_name is not ‘radec’ or ‘pixel’.