rebin

sitelle.utils.rebin(map, binsize, type)

Method used to rebin a map. For a regular map, the mean is used. For error maps, the RMS is preffered

Parameters:
  • map (2D ndarray) – The original map
  • binsize (int) – Binning to use.
  • type (str) – if type == ‘ERR’, the RMS is used; else the mean is used.
Returns:

binned_map – The binned data

Return type:

2D ndarray