Stores PSRFITS header extensions. More...

#include <FITSHdrExtension.h>

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

Public Member Functions

 FITSHdrExtension ()
 Default constructor.
 
 FITSHdrExtension (const FITSHdrExtension &extension)
 Copy constructor.
 
FITSHdrExtensionclone () const
 Clone method.
 
TextInterface::Parserget_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.
 
void get_coord_string (const sky_coord &coordinates, std::string &coord1, std::string &coord2) const
 Return two strings based on coordmode attribute.
 
std::string get_coordmode () const
 Get the coordinate mode.
 
void set_coordmode (const std::string &mode)
 Set the coordinate mode string.
 
void set_date_str (const std::string &date)
 Set the creation date string.
 
std::string get_hdrver () const
 Get the header version.
 
void set_hdrver (const std::string &txt)
 
std::string get_creation_date () const
 Get the file creation date.
 
void set_creation_date (const std::string &txt)
 
std::string get_obs_mode () const
 Get the observation mode.
 
void set_obs_mode (const std::string &txt)
 
double get_equinox () const
 Get the equinox.
 
void set_equinox (double val)
 
std::string get_trk_mode () const
 Get tracking mode.
 
void set_trk_mode (const std::string &txt)
 
double get_bpa () const
 Get the beam position angle.
 
void set_bpa (const double _bpa)
 Set the beam position angle.
 
double get_bmaj () const
 Get the beam major axis length.
 
void set_bmaj (const double _bmaj)
 Set the beam major axis length.
 
double get_bmin () const
 Get the beam minor axis length.
 
void set_bmin (const double _bmin)
 Set the beam minor axis length.
 
std::string get_stt_date () const
 Get the start date.
 
void set_stt_date (const std::string &date)
 
std::string get_stt_time () const
 Get the start time.
 
void set_stt_time (const std::string &time)
 
int get_stt_imjd () const
 Get the stt_imjd.
 
void set_stt_imjd (int)
 
int get_stt_smjd () const
 Get the stt_smjd.
 
void set_stt_smjd (int)
 
double get_stt_offs () const
 Get the stt_offs.
 
void set_stt_offs (double)
 
MJD get_start_time () const
 Get the start time.
 
void set_start_time (const MJD &mjd)
 
double get_stt_lst () const
 Get stt_lst.
 
void set_stt_lst (double lst)
 
std::string get_ra () const
 
void set_ra (std::string new_ra)
 
std::string get_dec () const
 
void set_dec (std::string new_dec)
 
std::string get_stt_crd1 () const
 
void set_stt_crd1 (std::string new_stt_crd1)
 
std::string get_stt_crd2 () const
 
void set_stt_crd2 (std::string new_stt_crd2)
 
std::string get_stp_crd1 () const
 
void set_stp_crd1 (std::string new_stp_crd1)
 
std::string get_stp_crd2 () const
 
void set_stp_crd2 (std::string new_stp_crd2)
 
std::string get_ibeam () const
 
void set_ibeam (const std::string &_ibeam)
 
std::string get_pnt_id () const
 
void set_pnt_id (const std::string &_pnt_id)
 
void set_obsfreq (double set_obsfreq)
 Set the observed frequency.
 
double get_obsfreq () const
 Get the observed frequency.
 
void set_obsbw (double set_obsbw)
 Set the observed bandwidth.
 
double get_obsbw () const
 Get the observed bandwidth.
 
void set_obsnchan (int set_obsnchan)
 Set the observed number of channels.
 
int get_obsnchan () const
 Get the observed number of channels.
 
double get_chan_dm () const
 online DM
 
void set_chan_dm (double _chan_dm)
 
- 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.
 
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
 

Public Attributes

std::string ra
 
std::string dec
 
std::string stt_crd1
 
std::string stt_crd2
 
std::string stp_crd1
 
std::string stp_crd2
 
std::string ibeam
 Beam number for multibeam systems (1=ctr beam)
 
std::string pnt_id
 Name or ID for pointing ctr (multibeam feeds)
 
std::string hdrver
 Pulsar FITS header version information.
 
int major_version
 
int minor_version
 
std::string creation_date
 File creation date.
 
std::string coordmode
 Coordinate mode (EQUAT, GAL, ECLIP, AZEL, HADEC)
 
double equinox
 Equinox of coordinates.
 
std::string trk_mode
 Track mode (TRACK, SCANGC, SCANLAT)
 
std::string stt_date
 Start UT date (YYYY-MM-DD)
 
std::string stt_time
 Start UT (hh:mm:ss)
 
double stt_lst
 Start LST.
 
double obsfreq
 Observed Frequency.
 
double obsbw
 Observed bandwidth.
 
int obsnchan
 Observed number of channels.
 
double chan_dm
 DM used for online dedispersion.
 
std::string obs_mode
 Observation Mode.
 
double bpa
 Beam position angle.
 
double bmaj
 Beam major axis length.
 
double bmin
 Beam minor axis length.
 

Static Public Attributes

static double unset_dm = -1.0
 Special value for no DM set. More...
 

Protected Attributes

MJD start_time
 Header start time (as opposed to subint start time)
 
- 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 PSRFITS header extensions.

Member Data Documentation

◆ unset_dm

double Pulsar::FITSHdrExtension::unset_dm = -1.0
static

Special value for no DM set.

Special DM value to indicate none was set.

Referenced by FITSHdrExtension(), and Pulsar::FITSArchive::unload().


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

Generated using doxygen 1.8.17