[docs]classStokesFrame(CoordinateFrame):""" A coordinate frame for representing Stokes polarisation states. Parameters ---------- name : str Name of this frame. axes_order : tuple A dimension in the data that corresponds to this axis. """def__init__(self,axes_order=(0,),axes_names=("stokes",),name=None,axis_physical_types=None,):pht=axis_physical_typesorself._default_axis_physical_types()super().__init__(1,["STOKES"],axes_order,name=name,axes_names=axes_names,unit=u.one,axis_physical_types=pht,)def_default_axis_physical_types(self):return("phys.polarization.stokes",)@propertydefworld_axis_object_classes(self):return{"stokes":(StokesCoord,(),{},)}@propertydef_native_world_axis_object_components(self):return[("stokes",0,"value")]