source: branches/plotter2/src/EdgeMarker.h@ 2909

Last change on this file since 2909 was 2757, checked in by Takeshi Nakazato, 12 years ago

New Development: No

JIRA Issue: Yes CAS-4770

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs:

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

First version of Calibrator class for OTF scan without OFF.


File size: 1.3 KB
Line 
1//
2// C++ Interface: EdgeMarker
3//
4// Description:
5//
6//
7// Author: Takeshi Nakazato <takeshi.nakazato@nao.ac.jp>, (C) 2012
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
12#ifndef _EDGE_MARKER_H_
13#define _EDGE_MARKER_H_
14
15#include <string>
16
17#include <casa/Arrays/Vector.h>
18#include <casa/Utilities/CountedPtr.h>
19#include <casa/Containers/Record.h>
20#include <casa/Logging/LogIO.h>
21#include <tables/Tables/Table.h>
22
23#include "Scantable.h"
24#include "EdgeDetector.h"
25
26namespace asap {
27
28class EdgeMarker
29{
30public:
31 EdgeMarker() ;
32 EdgeMarker( bool israster ) ;
33
34 virtual ~EdgeMarker() ;
35
36 void setdata( const casa::CountedPtr<Scantable> &s,
37 const casa::Bool &insitu ) ;
38 void examine() ;
39 void setoption( const casa::Record &option ) ;
40 void detect() ;
41 void mark() ;
42 casa::Block<casa::uInt> getDetectedRows() ;
43 casa::CountedPtr<Scantable> get() ;
44// void reset() ;
45
46private:
47 void initDetect() ;
48
49 // data
50 casa::CountedPtr<Scantable> st_ ;
51
52 // pointer to detector object
53 casa::CountedPtr<EdgeDetector> detector_ ;
54
55 // list of IFNO for WVR
56 casa::Vector<casa::uInt> wvr_ ;
57
58 // off position list
59 casa::Block<casa::uInt> off_ ;
60 casa::uInt noff_ ;
61
62 // logger
63 casa::LogIO os_ ;
64} ;
65
66}
67#endif /* _EDGE_MARKER_H_ */
Note: See TracBrowser for help on using the repository browser.