Loads and unloads Profile vector from PSRFITS archives. More...

#include <ProfileColumn.h>

Inheritance diagram for Pulsar::ProfileColumn:
Reference::Able Reference::HeapTracked

Public Member Functions

 ProfileColumn ()
 Default constructor.
 
void set_fitsfile (fitsfile *fptr)
 Set the fitsfile to/from which data are written/read.
 
void set_data_colname (const std::string &)
 Set the name of the data column.
 
unsigned get_data_colnum ()
 Get the index of the data column.
 
void set_offset_colname (const std::string &)
 Set the name of the offset column.
 
unsigned get_offset_colnum ()
 Get the index of the data column.
 
void set_scale_colname (const std::string &)
 Set the name of the scale column.
 
unsigned get_scale_colnum ()
 Get the index of the data column.
 
void set_nbin (unsigned)
 Set the number of phase bins.
 
void set_nchan (unsigned)
 Set the number of frequency channels.
 
void set_nprof (unsigned)
 Set the number of profiles in each frequency channel.
 
void resize ()
 Resize the columns.
 
void resize_floats ()
 Resize the columns for floating point output.
 
unsigned get_nrow () const
 Get the number of rows required to unload data (after resize)
 
void create (unsigned start_column)
 Insert the columns and resize.
 
void unload (int row, const std::vector< const Profile * > &)
 Unload the given vector of profiles.
 
void unload_floats (int row, const std::vector< const Profile * > &)
 Unload the given vector of profiles as single-precision floats. More...
 
void load (int row, const std::vector< Profile * > &)
 Load the given vector of profiles.
 
- 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
 

Public Attributes

bool verbose
 

Static Public Attributes

static Option< bool > output_floats
 

Protected Member Functions

void reset ()
 reset the column indeces
 
int get_colnum (const std::string &name)
 Get the column number for the specified column name.
 
template<typename T , typename C >
void load_amps (int row, C &, bool must_have_scloffs=true)
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Protected Attributes

fitsfile * fptr
 
std::string data_colname
 
std::string offset_colname
 
std::string scale_colname
 
int data_colnum
 
int offset_colnum
 
int scale_colnum
 
unsigned nbin
 
unsigned nchan
 
unsigned nprof
 
unsigned nrow
 

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

Loads and unloads Profile vector from PSRFITS archives.

Member Function Documentation

◆ unload_floats()

void Pulsar::ProfileColumn::unload_floats ( int  row,
const std::vector< const Profile * > &  prof 
)

Unload the given vector of profiles as single-precision floats.

Unload the given vector of profiles.


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

Generated using doxygen 1.8.17