Home
Install
Use
Develop
Support
News
Credits
hosted by
|
Instrumental passband (or bandpass)
More...
#include <Passband.h>
|
| Passband () |
| Default constructor.
|
| Passband (const Passband &extension) |
| Copy constructor.
|
const Passband & | operator= (const Passband &extension) |
| Operator =.
|
| ~Passband () |
| Destructor.
|
Passband * | clone () const |
| Clone method.
|
TextInterface::Parser * | get_interface () |
| Return a text interfaces that can be used to access this instance.
|
std::string | get_short_name () const |
| Return an abbreviated name that can be typed relatively quickly.
|
unsigned | get_nchan () const |
| Get the number of frequency channels in each passband.
|
unsigned | get_npol () const |
| Get the number of polarizations.
|
unsigned | get_nband () const |
| Get the number of bands.
|
bool | has_data () const |
| Return true if nchan * npol * nband != 0.
|
void | resize (unsigned nchan, unsigned npol, unsigned nband=1) |
| Set the number of channels, polarizations, and bands.
|
const std::vector< float > & | get_passband (unsigned ipol, unsigned iband=0) const |
| Get the specified passband.
|
void | set_passband (const std::vector< float > &, unsigned ipol, unsigned iband=0) |
| Set the specified passband.
|
void | set_passband (const float *data, unsigned ipol, unsigned iband=0) |
| Set the specified passband.
|
void | zero () |
| Set all passband datum (not dimensions) to zero.
|
| 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.
|
| Able (const Able &) |
Able & | operator= (const Able &) |
unsigned | get_reference_count () const |
| HeapTracked (const HeapTracked &) |
HeapTracked & | operator= (const HeapTracked &) |
bool | __is_on_heap () const |
|
void | range_check (unsigned ipol, unsigned iband, const char *method) const |
| Throw an exception if ipol or iband are out of range.
|
Handle * | __reference (bool active) const |
void | __dereference (bool auto_delete=true) const |
|
unsigned | nchan |
| Number of frequency channels.
|
unsigned | npol |
| Number of polarizations.
|
unsigned | nband |
| Number of frequency bands.
|
std::vector< std::vector< float > > | passband |
| Average passbands.
|
std::string | extension_name |
| Extension name - useful when debugging.
|
Instrumental passband (or bandpass)
This Extension stores the instrumental bandpass in a Pulsar::Archive.
◆ clone()
Passband * Pulsar::Passband::clone |
( |
| ) |
const |
|
inlinevirtual |
◆ get_interface()
◆ get_short_name()
std::string Pulsar::Passband::get_short_name |
( |
| ) |
const |
|
inlinevirtual |
◆ has_data()
bool Pulsar::Passband::has_data |
( |
| ) |
const |
|
virtual |
◆ nband
unsigned Pulsar::Passband::nband |
|
protected |
◆ npol
unsigned Pulsar::Passband::npol |
|
protected |
◆ passband
std::vector< std::vector<float> > Pulsar::Passband::passband |
|
protected |
Average passbands.
The passbands are organized in ipol major order, I think. band0,pol0 band0,pol2 ... bandN,polM band1,pol0 ...
Referenced by get_passband(), operator=(), range_check(), resize(), set_passband(), set_passband(), and zero().
The documentation for this class was generated from the following files:
Generated using doxygen 1.14.0
|