| Last change
 on this file since 3891 was             3830, checked in by ansari, 15 years ago | 
        
          | 
Amelioration soustraction des avant-plans par l'introduction d'un fit polynome deg 2 sur ln(Temp)=f(ln(freq)), Reza 04/08/2010
 | 
        
          | File size:
            1.4 KB | 
      
      
| Rev | Line |  | 
|---|
| [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 |  | 
|---|
|  | 25 | class ForegroundCleaner { | 
|---|
|  | 26 | public: | 
|---|
|  | 27 | ForegroundCleaner(Four2DResponse& arrep, Four2DResponse& tbeam, TArray< TF >& skycube); | 
|---|
|  | 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_; | 
|---|
|  | 39 | double dx_, dy_;   // taille des pixels (radians) de skycube | 
|---|
|  | 40 | double freq0_, dfreq_;    // 1ere frequence et bin en frequence de skycube_; | 
|---|
|  | 41 |  | 
|---|
|  | 42 | }; | 
|---|
|  | 43 |  | 
|---|
|  | 44 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.