LSRKfreq_to_chan#
- auto_selfcal.selfcal_helpers.LSRKfreq_to_chan(msfile, field, spw, LSRKfreq, spwsarray, minmaxchans=False)#
Identifies the channel(s) corresponding to input LSRK frequencies. Useful for choosing which channels to split out or flag if a line has been identified by the pipeline.
- Parameters:
- msfile: Name of measurement set (string)
- spw: Spectral window number (int)
- obsid: Observation ID corresponding to the selected spectral window
- restfreq: Rest frequency in Hz (float)
- LSRKvelocity: input velocity in LSRK frame in km/s (float or array of floats)
- Returns:
- Channel number most closely corresponding to input LSRK frequency.