Extract.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2014 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/Extract.h
10 
11 #ifndef __Pulsar_Extract_h
12 #define __Pulsar_Extract_h
13 
14 #include "Pulsar/Transformation.h"
15 #include "Pulsar/Profile.h"
16 #include <utility>
17 
18 namespace Pulsar {
19 
21  class Extract : public Transformation<Profile>
22  {
23  public:
24 
25  typedef std::pair<unsigned,unsigned> Range;
26 
27  Extract (const Range&);
28  void transform (Profile*);
29 
30  protected:
31  Range range;
32 
33  };
34 
35 }
36 
37 #endif
const float * get_amps() const
Return a pointer to the amplitudes array.
Definition: ProfileAmps.C:141
const Integration * get_Integration(const Archive *data, Index subint)
Return the requested profile, cloning and integrating when needed.
Definition: Index.C:118
void set_amps(const T *data)
set the amplitudes array equal to the contents of the data array
Definition: ProfileAmps.h:89
void clean_Pointing_columns(fitsfile *) const
Delete Pointing-related columns, if not needed.
Definition: clean_Pointing_columns.C:13
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
void transform(Profile *)
Defined by derived classes.
Definition: Extract.C:20
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Extracts (and keeps) a specified range of phase bins.
Definition: Extract.h:26

Generated using doxygen 1.8.17