source: trunk/src/EdgeMarker.h@ 2701

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

New Development: Yes

JIRA Issue: Yes CAS-2825

Ready for Test: No

Interface Changes: Yes

What Interface Changed: added new python module sd.edgemarker

Test Programs: not available

Put in Release Notes: Yes

Module(s): Module Names change impacts.

Description: Describe your changes here...

New python module edgemarker is available. The edgemarker is a tool to
detect edge of observed area and mark data near edge as OFF. It can be
used to calibrate OTF data without explicit OFF scan.


File size: 1.2 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::CountedPtr<Scantable> get() ;
43// void reset() ;
44
45private:
46 void initDetect() ;
47
48 // data
49 casa::CountedPtr<Scantable> st_ ;
50
51 // pointer to detector object
52 casa::CountedPtr<EdgeDetector> detector_ ;
53
54 // list of IFNO for WVR
55 casa::Vector<casa::uInt> wvr_ ;
56
57 // off position list
58 casa::Block<casa::uInt> off_ ;
59 casa::uInt noff_ ;
60
61 // logger
62 casa::LogIO os_ ;
63} ;
64
65}
66#endif /* _EDGE_MARKER_H_ */
Note: See TracBrowser for help on using the repository browser.