ObservationChange.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2008 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 #ifndef __dsp_ObservationChange_h
9 #define __dsp_ObservationChange_h
10 
11 #include "dsp/Observation.h"
12 
13 namespace dsp {
14 
16  class ObservationChange : public Observation
17  {
18 
19  public:
20 
23 
25  virtual void change (Observation* obs) const;
26 
28  virtual void set_basis (Signal::Basis _basis);
29 
31  virtual void set_state (Signal::State _state);
32 
34  virtual void set_type (Signal::Source _type);
35 
37  virtual void set_ndim (unsigned _ndim);
38 
40  virtual void set_nchan (unsigned _nchan);
41 
43  virtual void set_npol (unsigned _npol);
44 
46  virtual void set_nbit (unsigned _nbit);
47 
48  virtual void set_ndat (uint64_t _ndat);
49 
51  virtual void set_telescope (const std::string& name);
52 
54  virtual void set_receiver (const std::string& name);
55 
57  virtual void set_source (const std::string& name);
58 
60  virtual void set_coordinates (sky_coord _coordinates);
61 
63  virtual void set_dispersion_measure (double dm);
64 
66  virtual void set_rotation_measure (double dm);
67 
69  virtual void set_centre_frequency (double cf);
70 
72  virtual void set_bandwidth (double _bandwidth);
73 
75  virtual void set_start_time (MJD _start_time);
76 
78  virtual void set_rate (double _rate);
79 
81  virtual void set_scale (double _scale);
82 
84  virtual void set_swap (bool _swap);
85 
87  virtual void set_dual_sideband (bool _dual);
88 
90  virtual void set_dc_centred (bool _dc_centred);
91 
93  virtual void set_identifier (const std::string& _identifier);
94 
96  virtual void set_machine (const std::string& _machine);
97 
99  virtual void set_mode (const std::string& _mode);
100 
102  virtual void set_calfreq (double _calfreq);
103 
104  protected:
105 
106  bool telescope_changed;
107  bool receiver_changed;
108  bool source_changed;
109  bool centre_frequency_changed;
110  bool bandwidth_changed;
111  bool type_changed;
112  bool state_changed;
113  bool basis_changed;
114  bool rate_changed;
115  bool start_time_changed;
116  bool scale_changed;
117  bool swap_changed;
118  bool dc_centred_changed;
119  bool identifier_changed;
120  bool mode_changed;
121  bool machine_changed;
122  bool coordinates_changed;
123  bool dispersion_measure_changed;
124  bool rotation_measure_changed;
125  bool ndat_changed;
126  bool ndim_changed;
127  bool nchan_changed;
128  bool npol_changed;
129  bool nbit_changed;
130  bool calfreq_changed;
131  bool dual_sideband_changed;
132 
133  };
134 
135 }
136 
137 #endif // ! __Observation_h
virtual void set_telescope(const std::string &name)
Set the telescope name.
Definition: ObservationChange.C:123
virtual void set_ndat(uint64_t _ndat)
Set the number of time samples in container.
Definition: Observation.h:105
virtual void set_nbit(unsigned _nbit)
Set the number of bits per value.
Definition: Observation.h:93
virtual void set_bandwidth(double _bandwidth)
Set the bandwidth of signal in MHz (-ve = lsb; +ve = usb)
Definition: Observation.h:145
virtual void set_state(Signal::State _state)
Set the state of the signal.
Definition: ObservationChange.C:249
Observation()
Null constructor.
Definition: Observation.C:26
virtual void set_rotation_measure(double rm)
Set the pulsar rotation mesure.
Definition: Observation.h:208
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
virtual void set_machine(const std::string &_machine)
Set the instrument used to record signal.
Definition: ObservationChange.C:214
virtual void set_identifier(const std::string &_identifier)
Set the observation identifier.
Definition: ObservationChange.C:207
virtual void set_type(Signal::Source _type)
Set the source type.
Definition: Observation.h:73
virtual void set_calfreq(double _calfreq)
Set the cal frequency.
Definition: ObservationChange.C:297
virtual void set_coordinates(sky_coord _coordinates)
Set the coordinates of the source.
Definition: ObservationChange.C:144
virtual void set_start_time(MJD _start_time)
Set the start time of the leading edge of the first time sample.
Definition: ObservationChange.C:165
virtual void set_receiver(const std::string &name)
Set the receiver name.
Definition: ObservationChange.C:130
virtual void set_receiver(const std::string &name)
Set the receiver name.
Definition: Observation.h:115
virtual void set_machine(const std::string &_m)
Set the instrument used to record signal.
Definition: Observation.h:192
virtual void set_mode(const std::string &_mode)
Set the observation mode.
Definition: Observation.h:215
virtual void set_dc_centred(bool _centred)
Set true if centre channel is centred on centre frequency.
Definition: Observation.h:183
virtual void set_type(Signal::Source _type)
Set the source type.
Definition: ObservationChange.C:256
virtual void set_dual_sideband(int _dual)
Set to 1 if the spectrum in each channel has dual-sideband frequency order.
Definition: Observation.C:85
virtual void set_dispersion_measure(double dm)
Set the pulsar dispersion mesure.
Definition: Observation.h:202
virtual void set_identifier(const std::string &_id)
Set the observation identifier.
Definition: Observation.h:187
virtual void set_telescope(const std::string &name)
Set the telescope name.
Definition: Observation.h:110
virtual void set_npol(unsigned _npol)
Set the number of polarizations.
Definition: Observation.h:88
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
virtual void set_rotation_measure(double dm)
Set the rotation measure recorded in the archive.
Definition: ObservationChange.C:228
virtual void set_source(const std::string &name)
Set the source name.
Definition: Observation.h:120
virtual void set_mode(const std::string &_mode)
Set the observation mode.
Definition: ObservationChange.C:235
virtual void set_swap(bool _swap)
Set true if frequency channels are out of order (band swappped)
Definition: ObservationChange.C:186
virtual void set_nchan(unsigned _nchan)
Set the number of channels into which the band is divided.
Definition: ObservationChange.C:270
virtual void set_basis(Signal::Basis _basis)
Set the type of receiver feeds.
Definition: Observation.h:63
virtual void set_calfreq(double _calfreq)
Set the calibrator frequency.
Definition: Observation.h:220
virtual void set_start_time(MJD _start_time)
Set the start time of the leading edge of the first time sample.
Definition: Observation.h:150
virtual void set_ndat(uint64_t _ndat)
Set the number of time samples in container.
Definition: ObservationChange.C:290
virtual void set_ndim(unsigned _ndim)
Set the dimension of each datum.
Definition: Observation.h:78
virtual void set_nchan(unsigned _nchan)
Set the number of channels into which the band is divided.
Definition: Observation.h:83
virtual void set_source(const std::string &name)
Set the source name.
Definition: ObservationChange.C:137
virtual void set_centre_frequency(double cf)
Set the centre frequency of the band-limited signal in MHz.
Definition: ObservationChange.C:151
ObservationChange()
Null constructor.
Definition: ObservationChange.C:10
virtual void set_scale(double _scale)
Set the amount by which data has been scaled.
Definition: Observation.h:160
virtual void set_scale(double _scale)
Set the amount by which data has been scaled.
Definition: ObservationChange.C:179
virtual void set_nbit(unsigned _nbit)
Set the number of bits per value.
Definition: ObservationChange.C:284
virtual void change(Observation *obs) const
Set the attributes that have been changed.
Definition: ObservationChange.C:41
virtual void set_swap(bool _swap)
Set true if frequency channels are out of order (band swappped)
Definition: Observation.h:165
virtual void set_centre_frequency(double cf)
Set the centre frequency of the band-limited signal in MHz.
Definition: Observation.h:132
virtual void set_bandwidth(double _bandwidth)
Set the bandwidth of signal in MHz.
Definition: ObservationChange.C:158
virtual void set_basis(Signal::Basis _basis)
Set the type of receiver feeds.
Definition: ObservationChange.C:242
virtual void set_coordinates(sky_coord _coordinates)
Set the coordinates of the source.
Definition: Observation.h:125
virtual void set_rate(double _rate)
Set the sampling rate (time samples per second in Hz)
Definition: Observation.h:155
virtual void set_npol(unsigned _npol)
Set the number of polarizations.
Definition: ObservationChange.C:277
virtual void set_rate(double _rate)
Set the sampling rate (time samples per second in Hz)
Definition: ObservationChange.C:172
virtual void set_dual_sideband(bool _dual)
Set true if the data are dual sideband.
Definition: ObservationChange.C:193
virtual void set_ndim(unsigned _ndim)
Set the dimension of each datum.
Definition: ObservationChange.C:263
virtual void set_state(Signal::State _state)
Set the state of the signal.
Definition: Observation.C:103
virtual void set_dc_centred(bool _dc_centred)
Set true if centre channel is centred on centre frequency.
Definition: ObservationChange.C:200
virtual void set_dispersion_measure(double dm)
Set the dispersion measure recorded in the archive.
Definition: ObservationChange.C:221

Generated using doxygen 1.8.17