pybsm.otf.functional.slice_otf
- pybsm.otf.functional.slice_otf(*, otf: ndarray, ang: float) ndarray
Returns a one dimensional slice of a 2D OTF (or MTF) along the direction specified by the input angle.
- Parameters:
otf – OTF defined by spatial frequencies (u,v) (unitless)
ang – slice angle (radians); a 0 radian slice is along the u axis. The angle rotates counterclockwise. Angle pi/2 is along the v axis.
- Returns:
- o_slice:
one-dimensional OTF in the direction of angle; the sample spacing of o_slice is the same as the original otf