Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
beam.c File Reference
#include "extern.h"

Go to the source code of this file.

Classes

struct  RESULTS
 

Macros

#define MAX_BKNDS   128
 
#define H   6.626e-34 /* Planck's constant */
 
#define K   1.381e-23 /* Boltzmann's constant */
 
#define C   0.299792458 /* speed of light (m/ns) */
 
#define LN2   0.693147181 /* ln(2.0) */
 
#define CMB   2.725 /* Cosmic Microwave Bkgd */
 
#define R0   1.524 /* Mars mean heliocentric distance */
 
#define T_R0   206.8 /* Mars temp at R0 */
 
#define P   29.530589 /* Period of Moon */
 

Functions

double parseBeamEff (char *buf)
 
int setBeamEff ()
 
int setRejections ()
 
int doAcceptEff ()
 
struct tm * breakTime (double burnT)
 
int findBackend (double scan)
 
int beam_eff (int first)
 
double planck (double freq, double T_bright)
 
int processResults (int n, int indx, FILE *fp)
 
int writeResults (indx)
 
int doBeamEff ()
 

Variables

struct RESULTS results [MAX_BKNDS][MAX_BKNDS]
 
struct RESULTS averages [MAX_BKNDS]
 
double tmpBeamEff [4]
 
char * months [12]
 
char * planet_names [MAX_PLANETS] = {"Mercury", "Venus", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Moon"}
 

Macro Definition Documentation

#define C   0.299792458 /* speed of light (m/ns) */

Definition at line 64 of file beam.c.

#define CMB   2.725 /* Cosmic Microwave Bkgd */

Definition at line 66 of file beam.c.

#define H   6.626e-34 /* Planck's constant */

Definition at line 62 of file beam.c.

#define K   1.381e-23 /* Boltzmann's constant */

Definition at line 63 of file beam.c.

#define LN2   0.693147181 /* ln(2.0) */

Definition at line 65 of file beam.c.

#define MAX_BKNDS   128

Definition at line 61 of file beam.c.

#define P   29.530589 /* Period of Moon */

Definition at line 69 of file beam.c.

#define R0   1.524 /* Mars mean heliocentric distance */

Definition at line 67 of file beam.c.

#define T_R0   206.8 /* Mars temp at R0 */

Definition at line 68 of file beam.c.

Function Documentation

int beam_eff ( int  first)

Definition at line 292 of file beam.c.

struct tm* breakTime ( double  burnT)

Definition at line 246 of file beam.c.

int doAcceptEff ( void  )

Definition at line 223 of file beam.c.

int doBeamEff ( void  )

Definition at line 619 of file beam.c.

int findBackend ( double  scan)

Definition at line 259 of file beam.c.

double parseBeamEff ( char *  buf)

Definition at line 90 of file beam.c.

double planck ( double  freq,
double  T_bright 
)

Definition at line 499 of file beam.c.

int processResults ( int  n,
int  indx,
FILE *  fp 
)

Definition at line 511 of file beam.c.

int setBeamEff ( void  )

Definition at line 117 of file beam.c.

int setRejections ( void  )

Definition at line 170 of file beam.c.

int writeResults ( indx  )

Definition at line 588 of file beam.c.

Variable Documentation

struct RESULTS averages[MAX_BKNDS]

Definition at line 82 of file beam.c.

char* months[12]
Initial value:
= {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}

Definition at line 85 of file beam.c.

char* planet_names[MAX_PLANETS] = {"Mercury", "Venus", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Moon"}

Definition at line 88 of file beam.c.

struct RESULTS results[MAX_BKNDS][MAX_BKNDS]

Definition at line 81 of file beam.c.

double tmpBeamEff[4]

Definition at line 83 of file beam.c.