scopesim.effects.spectral_trace_list_utils.get_affine_parameters

scopesim.effects.spectral_trace_list_utils.get_affine_parameters#

scopesim.effects.spectral_trace_list_utils.get_affine_parameters(coords)#

Return rotation and shear for each MTC point along a SpectralTrace.

Parameters:

coords (dict of 2D arrays) –

Each dict entry [“x”, “y”, “s”] contains a [N, M] 2D array of coordinates, where:

  • N is the number of points along the slit (e.g. ~5), and

  • M is the number of positions along the trace (e.g. >100)

Returns:

  • rotations (array) – [deg] Rotation angles for M positions along the Trace

  • shears (array) – [deg] Shear angles for M positions along the Trace