Corrects band-reversed signal due to poor image rejection. More...

#include <ImageCorrection.h>

Inheritance diagram for Pulsar::ImageCorrection:
Pulsar::Transformation< Integration > Pulsar::Algorithm Reference::Able Reference::HeapTracked

Public Member Functions

 ImageCorrection ()
 Default constructor.
void correct (Archive *)
 Perform correction on full archive.
void transform (Integration *)
 Perform correction on one integration.
virtual TextInterface::Parserget_interface ()
 Return a text interface that can be used to configure this instance.
void set_strict (bool flag=true)
 Set strict mode.
bool get_strict () const
 Get strict setting.
void set_coherent (bool flag=true)
 Set coherent dedisp flag.
bool get_coherent () const
 Get coherent dedisp flag.
void set_fadc (double f)
 Set center freq at sampler.
double get_fadc () const
 Set center freq at sampler.
void set_fcenter (double f)
 Set sky center freq.
double get_fcenter () const
 Get sky center freq.
void set_band_dir (int d)
 Set band direction at sampler.
int get_band_dir () const
 Get band direction.
void set_dt (double dt0, double dt1)
 Set dt per poln.
void set_gain (double a0, double a1)
 Set gain per poln.
Public Member Functions inherited from Pulsar::Transformation< Integration >
void operator() (Integration *container)
 Functor interface.
Public Member Functions inherited from Reference::Able
 Able (const Able &)
Ableoperator= (const Able &)
unsigned get_reference_count () const
Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
HeapTrackedoperator= (const HeapTracked &)
bool __is_on_heap () const

Protected Member Functions

double f_adc (double f_sky) const
double ratio (double f, unsigned ipol) const
 The ratio of image power from input sampler freq f.
int match_channel (const Integration *subint, double f_sky) const
 Find channel matching given sky freq, returns -1 for no match.
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Protected Attributes

double f_cent_adc
 The center frequency of the band at the ADC (MHz)
double f_cent_sky
 The center sky frequency of the sampled band (MHz)
int dir
 Band direction at the sampler.
bool strict
 strict==true means uncorrectable channels will be zero-weighted
bool coherent
 Set true if data have been coherently dedispersed.
double dt [2]
 The time misalignment between samplers, per-poln (us)
double alpha [2]
 The gain mismatch between samplers, per-poln.

Additional Inherited Members

Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
static void operator delete (void *location, void *ptr)
static void operator delete (void *location)
static size_t get_heap_queue_size ()

Detailed Description

Corrects band-reversed signal due to poor image rejection.

Member Function Documentation

◆ ratio()

double Pulsar::ImageCorrection::ratio ( double f,
unsigned ipol ) const
protected

The ratio of image power from input sampler freq f.

See equations 2 and 3 from Kurosawa et al (2001)

References alpha, dt, f_cent_adc, and f_cent_sky.

Referenced by transform().

◆ transform()


The documentation for this class was generated from the following files:

Generated using doxygen 1.14.0