Stores PolnCalibrator parameters in an Archive instance. More...

#include <PolnCalibratorExtension.h>

Inheritance diagram for Pulsar::PolnCalibratorExtension:
Pulsar::CalibratorExtension Pulsar::HasChannels Pulsar::Archive::Extension Reference::Able Reference::HeapTracked

Classes

class  Transformation
 Intermediate storage of MEAL::Complex parameters. More...
 

Public Member Functions

 PolnCalibratorExtension ()
 Default constructor.
 
 PolnCalibratorExtension (const PolnCalibratorExtension &)
 Copy constructor.
 
const PolnCalibratorExtensionoperator= (const PolnCalibratorExtension &)
 Operator =.
 
 ~PolnCalibratorExtension ()
 Destructor.
 
PolnCalibratorExtensionclone () const
 Clone method.
 
TextInterface::Parserget_interface ()
 get the text ineterface More...
 
 PolnCalibratorExtension (const PolnCalibrator *)
 Construct from a PolnCalibrator instance.
 
std::string get_short_name () const
 Return a short name.
 
void set_type (const Calibrator::Type *type)
 Set the type of the instrumental response parameterization.
 
void set_nchan (unsigned nchan)
 Set the number of frequency channels.
 
void remove_chan (unsigned first, unsigned last)
 Remove the inclusive range of channels.
 
void set_weight (unsigned ichan, float weight)
 Set the weight of the specified channel.
 
float get_weight (unsigned ichan) const
 Get the weight of the specified channel. More...
 
unsigned get_nparam () const
 Get the number of parameters describing each transformation.
 
bool get_has_covariance () const
 Get if the covariances of the transformation parameters.
 
void set_has_covariance (bool)
 Set if the covariances of the transformation parameters.
 
bool get_has_solver () const
 Get if the covariances of the transformation parameters.
 
void set_has_solver (bool)
 Set if the covariances of the transformation parameters.
 
bool get_valid (unsigned ichan) const
 Return true if the transformation for the specified channel is valid. More...
 
void set_valid (unsigned ichan, bool valid)
 
Transformationget_transformation (unsigned c)
 Get the transformation for the specified frequency channel.
 
const Transformationget_transformation (unsigned c) const
 Get the transformation for the specified frequency channel.
 
void frequency_append (Archive *to, const Archive *from)
 Append PolnCalibrator Extension data from another Archive.
 
void fscrunch (unsigned factor=0)
 
void fscrunch_to_nchan (unsigned new_nchan)
 
Estimate< float > get_Estimate (unsigned iparam, unsigned ichan) const
 
void set_Estimate (unsigned iparam, unsigned ichan, const Estimate< float > &)
 
- Public Member Functions inherited from Pulsar::CalibratorExtension
 CalibratorExtension (const char *name="CalibratorExtension")
 Default constructor.
 
 CalibratorExtension (const CalibratorExtension &)
 Copy constructor.
 
const CalibratorExtensionoperator= (const CalibratorExtension &)
 Operator =.
 
 ~CalibratorExtension ()
 Destructor.
 
void build (const Calibrator *)
 Construct from a Calibrator instance.
 
virtual const Calibrator::Typeget_type () const
 Get the type of the calibrator.
 
virtual void set_epoch (const MJD &epoch)
 Set the reference epoch of the calibration experiment.
 
virtual MJD get_epoch () const
 Get the reference epoch of the calibration experiment.
 
virtual unsigned get_nchan () const
 Get the number of frequency channels.
 
virtual void set_centre_frequency (unsigned ichan, double frequency)
 Set the centre frequency of the specified channel.
 
virtual double get_centre_frequency (unsigned ichan) const
 Get the centre frequency of the specified channel.
 
- Public Member Functions inherited from Pulsar::HasChannels
 HasChannels (const char *name)
 
- 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 bool has_data () const
 Returns true if the Extension contains useful data.
 
virtual void resize (unsigned nsubint, unsigned npol=0, unsigned nchan=0, unsigned nbin=0)
 Resize the Extension.
 
- 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

void construct ()
 Construct the response array according to the current attributes.
 
- Protected Member Functions inherited from Pulsar::CalibratorExtension
void range_check (unsigned ichan, const char *method) const
 Ensure that ichan < get_nchan.
 
void frequency_append (const CalibratorExtension *, bool in_order)
 For use by children.
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Protected Attributes

std::vector< Transformationresponse
 The instrumental response as a function of frequency.
 
unsigned nparam
 The number of parameters that describe the transformation.
 
bool has_covariance
 The covariances of the transformation parameters are available.
 
bool has_solver
 The solver statistics are available.
 
- Protected Attributes inherited from Pulsar::CalibratorExtension
Reference::To< const Calibrator::Typetype
 Type of the calibrator.
 
MJD epoch
 The reference epoch of the calibration experiment.
 
std::vector< float > weight
 The weight of each channel.
 
std::vector< double > centre_frequency
 The centre frequency of each channel.
 
- 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 ()
 

Detailed Description

Stores PolnCalibrator parameters in an Archive instance.

This Archive::Extension implements the storage of PolnCalibrator data.

Member Function Documentation

◆ fscrunch()

void Pulsar::PolnCalibratorExtension::fscrunch ( unsigned  nscrunch = 0)
Parameters
nscrunchnumber of neighbouring frequency channels to integrate; if zero, then all channels are integrated into one

References Pulsar::PolnCalExtFreqIntegrate::transform().

◆ get_interface()

TextInterface::Parser * PolnCalibratorExtension::get_interface ( )
virtual

get the text ineterface

Get the text interface.

Reimplemented from Pulsar::CalibratorExtension.

◆ get_valid()

bool PolnCalibratorExtension::get_valid ( unsigned  ichan) const

Return true if the transformation for the specified channel is valid.

Get the weight of the specified channel.

References Pulsar::CalibratorExtension::range_check(), and response.

Referenced by get_weight(), Pulsar::new_transformation(), Pulsar::PolnCalExtFreqIntegrate::transform(), and Pulsar::FITSArchive::unload().

◆ get_weight()

float PolnCalibratorExtension::get_weight ( unsigned  ichan) const
virtual

Get the weight of the specified channel.

Set the weight of the specified channel.

Reimplemented from Pulsar::CalibratorExtension.

References get_valid().


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

Generated using doxygen 1.8.17