cosine_correct_data#

smart.processing.cosine_correct_data(im_map: <sunpy.map.map_factory.MapFactory object at 0x7ff1d3e39a80>, cosmap=None)[source]#

Perform magnetic field cosine correction.

Parameters:
  • im_map (Map) – Processed SunPy magnetogram map.

  • cosmap (numpy.ndarray, optional) – An array of the cosine correction factors for each pixel. If not provided, computed using calculate_cosine_correction.

Returns:

corrected_data – The magnetic field data after applying the cosine correction (units = Gauss).

Return type:

ndarray