source: Sophya/trunk/Cosmo/RadioBeam/fgndsub.h@ 3986

Last change on this file since 3986 was 3986, checked in by ansari, 14 years ago

modification rapport maxi a appliquer lors des corrections de beams, Reza 05/05/2011

File size: 1.4 KB
RevLine 
[3788]1/* ------------------------ Projet BAORadio --------------------
2 Estimation et soustraction d'avant plan radio
3 R. Ansari , C. Magneville - Juin 2010
4--------------------------------------------------------------- */
5
6#ifndef FGNDSUB_SEEN
7#define FGNDSUB_SEEN
8
9#include "machdefs.h" // SOPHYA .h
10#include "sopnamsp.h" // SOPHYA .h
11#include <math.h>
12#include <iostream>
13#include <vector>
14#include <string>
15
16#include "tarray.h"
17#include "vector3d.h"
18#include "lobe.h"
19#include "mdish.h"
20
21#ifndef TF
22#define TF r_4
23#endif
24
25class ForegroundCleaner {
26public:
[3986]27 ForegroundCleaner(Four2DResponse& arrep, Four2DResponse& tbeam, TArray< TF >& skycube, double maxratio=10.);
[3788]28 void BeamCorrections();
[3789]29 int CleanNegatives(TF seuil=1.e-6);
[3788]30 int CleanPointSources(double nsigmas=5.);
[3830]31 // Ajustement d'une droite (a x + b) sur ln(Temp) = f(ln(Freq))
32 TArray< TF > extractLSSCubeP1(TArray< TF >& synctemp, TArray< TF >& specidx);
33 // Ajustement d'une parabole (a x^2 + b x + c) sur ln(Temp) = f(ln(Freq))
34 TArray< TF > extractLSSCubeP2(TArray< TF >& synctemp, TArray< TF >& specidx);
[3788]35
36 Four2DResponse& arrep_; // Array/Instrument beam response
37 Four2DResponse& tbeam_; // Target beam to which would be corrected using BeamCorrections()
38 TArray< TF > skycube_;
[3986]39 double maxratio_;
[3788]40 double dx_, dy_; // taille des pixels (radians) de skycube
41 double freq0_, dfreq_; // 1ere frequence et bin en frequence de skycube_;
42
43};
44
45#endif
Note: See TracBrowser for help on using the repository browser.