Pulsar::CalibrationInterpolatorExtension Class Reference

Stores Polarization Calibration Model Interpolator information. More...

#include <CalibrationInterpolatorExtension.h>

Inheritance diagram for Pulsar::CalibrationInterpolatorExtension:
Pulsar::Archive::Extension Reference::Able Reference::HeapTracked

Classes

class  Interface
 Text interface to CalibrationInterpolatorExtension extension. More...

Public Member Functions

 CalibrationInterpolatorExtension (const char *name="CalibrationInterpolatorExtension")
 Default constructor.
 CalibrationInterpolatorExtension (const CalibrationInterpolatorExtension &)
 Copy constructor.
const CalibrationInterpolatorExtensionoperator= (const CalibrationInterpolatorExtension &)
 Operator =.
 ~CalibrationInterpolatorExtension ()
 Destructor.
CalibrationInterpolatorExtensionclone () const
 Clone method.
bool has_data () const
 Returns true if the Extension contains useful data.
void set_type (const Calibrator::Type *t)
 Set the type of the calibrator.
const Calibrator::Typeget_type () const
 Get the type of the calibrator.
void set_coupling_point (CalibratorStokes::CouplingPoint point)
 Set the point where the reference source signal is coupled.
CalibratorStokes::CouplingPoint get_coupling_point () const
 The point where the reference source signal is coupled.
void set_nreceptor (unsigned n)
 Set the number of receptors in flux calibrator.
unsigned get_nreceptor () const
 Get the number of receptors in flux calibrator.
bool get_native_scale () const
 Returns true if scale is native, false if scale is relative.
void set_native_scale (bool flag)
unsigned get_nsub_input () const
 Get the number of epochs in input data.
void set_nsub_input (unsigned n)
void set_reference_epoch (const MJD &epoch)
 Set the reference epoch of the interpolator.
MJD get_reference_epoch () const
 Get the reference epoch of the interpolator.
void set_minimum_epoch (const MJD &epoch)
 Set the minimum epoch of the interpolator.
MJD get_minimum_epoch () const
 Get the minimum epoch of the interpolator.
void set_maximum_epoch (const MJD &epoch)
 Set the maximum epoch of the interpolator.
MJD get_maximum_epoch () const
 Get the maximum epoch of the interpolator.
unsigned get_nchan_input () const
 Get the number of frequency channels in input data.
void set_nchan_input (unsigned n)
void set_reference_frequency (double freq)
 Set the reference frequency of the interpolator.
double get_reference_frequency () const
 Get the reference frequency of the interpolator.
void set_minimum_frequency (double freq)
 Set the minimum frequency of the interpolator.
double get_minimum_frequency () const
 Get the minimum frequency of the interpolator.
void set_maximum_frequency (double freq)
 Set the maximum frequency of the interpolator.
double get_maximum_frequency () const
 Get the maximum frequency of the interpolator.
std::string get_short_name () const
 Return a short name.
TextInterface::Parserget_interface ()
 Return a text interfaces that can be used to access this instance.
void add_parameter (Parameter *p)
unsigned get_nparam () const
Parameter * get_parameter (unsigned iparam)
const Parameter * get_parameter (unsigned iparam) const
Public Member Functions inherited from Pulsar::Archive::Extension
 Extension (const char *name)
 Construct with a name.
virtual ~Extension ()
 Destructor.
std::string get_extension_name () const
 Return the name of the Extension.
virtual void resize (unsigned nsubint, unsigned npol=0, unsigned nchan=0, unsigned nbin=0)
 Resize the Extension.
virtual void frequency_append (Archive *to, const Archive *from)
 Append data along frequency dimension, if applicable.
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 Attributes

Reference::To< const Calibrator::Typetype
 Type of the calibrator.
CalibratorStokes::CouplingPoint coupling_point
 The point where the reference source signal is coupled.
unsigned nreceptor
 Number of receptors in flux calibrator.
bool native_scale
 True if scale is native; false if scale is relative to reference.
unsigned nsub_input
 The number of epochs in the input data.
MJD reference_epoch
 The reference epoch.
MJD minimum_epoch
 The minimum epoch.
MJD maximum_epoch
 The maximum epoch.
unsigned nchan_input
 The number of frequency channels in the input data.
double reference_frequency
 The reference frequency in MHz.
double minimum_frequency
 The minimum frequency in MHz.
double maximum_frequency
 The maximum frequency in MHz.
std::vector< Reference::To< Parameter > > parameter
Protected Attributes inherited from Pulsar::Archive::Extension
std::string extension_name
 Extension name - useful when debugging.

Additional Inherited Members

Static Public Member Functions inherited from Pulsar::Archive::Extension
static Extensionfactory (const std::string &name)
 Derived type factory.
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 ()
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Detailed Description

Stores Polarization Calibration Model Interpolator information.

This Archive::Extension class implements the storage of Calibration Interpolator data, enabling such a calibrator to be constructed from file.

Member Function Documentation

◆ clone()

CalibrationInterpolatorExtension * Pulsar::CalibrationInterpolatorExtension::clone ( ) const
inlinevirtual

Clone method.

Implements Pulsar::Archive::Extension.

References CalibrationInterpolatorExtension().

◆ get_interface()

TextInterface::Parser * CalibrationInterpolatorExtension::get_interface ( void )
virtual

Return a text interfaces that can be used to access this instance.

Reimplemented from Pulsar::Archive::Extension.

◆ get_short_name()

std::string Pulsar::CalibrationInterpolatorExtension::get_short_name ( ) const
inlinevirtual

Return a short name.

Reimplemented from Pulsar::Archive::Extension.

◆ has_data()

bool CalibrationInterpolatorExtension::has_data ( ) const
virtual

Returns true if the Extension contains useful data.

Reimplemented from Pulsar::Archive::Extension.


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

Generated using doxygen 1.14.0