def unwrap_phase_map_0(self):
"""Unwrap order 0 phase map.
Phase is defined modulo pi/2. The Unwrapping is a
reconstruction of the phase so that the distance between two
neighboor pixels is always less than pi/4. Then the real phase
pattern can be recovered and fitted easily.
The idea is the same as with np.unwrap() but in 2D, on a
possibly very noisy map, where a naive 2d unwrapping cannot be
done.
"""
self.phase_map_order_0_unwraped = orb.utils.image.unwrap_phase_map0(
np.copy(self.phase_maps[0]))
# Save unwraped map
phase_map_path = self._get_phase_map_path(0, phase_map_type='unwraped')
self.write_fits(phase_map_path,
orb.cutils.unbin_image(
np.copy(self.phase_map_order_0_unwraped),
self.dimx_unbinned,
self.dimy_unbinned),
fits_header=self._get_phase_map_header(
0, phase_map_type='unwraped'),
overwrite=self.overwrite)
if self.indexer is not None:
self.indexer['phase_map_unwraped_0'] = phase_map_path
评论列表
文章目录