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

Go to the source code of this file.

Classes

struct  PLANET_LOOKUP
 

Macros

#define ONE_HOUR   (60 * 60) /* Seconds in one hour */
 
#define ZRO   ((struct EPH_OBJECT *)0)
 
#define NOW_DATE   1
 
#define USER_DATE   2
 
#define SCAN_DATE   3
 
#define ENV_DATE   4
 

Functions

int parseLine (struct EPH_OBJECT *obj, char *name)
 
int eph_interp (struct NEW_EPHEM *ephem, struct EPH_OBJECT *p1, struct EPH_OBJECT *p2)
 
int parseNewEphem (struct NEW_EPHEM *ephem)
 
double rjot (double t, double f)
 
double tb_lin (double f, double f1, double tb1, double f2, double tb2)
 
int loadPlantFluxTables (struct EPH_TIME *t)
 
double tsrcInterp (struct TBRIGHT *tb, double f, int n)
 
int fluxTableOld (long t)
 
int computePlanetFlux (int planet, struct EPH_OBJECT *obj, struct EPH_TIME *t, struct EPH_STATE *s, int logit)
 
int getPlanet ()
 
int dopFlux (int planet, int flag, double bfreq, double efreq)
 
int showPlanetFlux ()
 
int isPlanetVar (char *name)
 
int isPlanet (char *name)
 
int lookUpPlanetVal (struct EPH_OBJECT *p, char *val, int print)
 
int printPlanetVar (char *name)
 
int findPlanetVal (char *name, double *dret)
 

Variables

struct NEW_EPHEM new_ephem
 
char marsDate [80]
 
long fluxTablesLoadTime = -999999999
 
double mars_freqs []
 
double planet_value
 
struct TBRIGHT venus_tbright [MAX_VENUS_ENTRIES]
 
struct TBRIGHT mars_tbright [MAX_MARS_ENTRIES]
 
struct TBRIGHT jupiter_tbright [MAX_JUPITER_ENTRIES]
 
struct TBRIGHT uranus_tbright [MAX_URANUS_ENTRIES]
 
struct TBRIGHT neptune_tbright [MAX_NEPTUNE_ENTRIES]
 
struct TBRIGHT vesta_tbright [MAX_VESTA_ENTRIES]
 
struct EPH_OBJECT save_planet_values [MAX_PLANETS]
 
struct FLUX_INFO flux_info
 
struct PLANET_LOOKUP planet_lookup []
 

Macro Definition Documentation

#define ENV_DATE   4

Definition at line 848 of file planets.c.

#define NOW_DATE   1

Definition at line 845 of file planets.c.

#define ONE_HOUR   (60 * 60) /* Seconds in one hour */

Definition at line 61 of file planets.c.

#define SCAN_DATE   3

Definition at line 847 of file planets.c.

#define USER_DATE   2

Definition at line 846 of file planets.c.

#define ZRO   ((struct EPH_OBJECT *)0)

Definition at line 96 of file planets.c.

Function Documentation

int computePlanetFlux ( int  planet,
struct EPH_OBJECT *  obj,
struct EPH_TIME *  t,
struct EPH_STATE *  s,
int  logit 
)

Definition at line 548 of file planets.c.

int dopFlux ( int  planet,
int  flag,
double  bfreq,
double  efreq 
)

Definition at line 1175 of file planets.c.

int eph_interp ( struct NEW_EPHEM *  ephem,
struct EPH_OBJECT *  p1,
struct EPH_OBJECT *  p2 
)

Definition at line 175 of file planets.c.

int findPlanetVal ( char *  name,
double *  dret 
)

Definition at line 1686 of file planets.c.

int fluxTableOld ( long  t)

Definition at line 536 of file planets.c.

int getPlanet ( void  )

Definition at line 850 of file planets.c.

int isPlanet ( char *  name)

Definition at line 1527 of file planets.c.

int isPlanetVar ( char *  name)

Definition at line 1487 of file planets.c.

int loadPlantFluxTables ( struct EPH_TIME *  t)

Definition at line 323 of file planets.c.

int lookUpPlanetVal ( struct EPH_OBJECT *  p,
char *  val,
int  print 
)

Definition at line 1570 of file planets.c.

int parseLine ( struct EPH_OBJECT *  obj,
char *  name 
)

Definition at line 140 of file planets.c.

int parseNewEphem ( struct NEW_EPHEM *  ephem)

Definition at line 205 of file planets.c.

int printPlanetVar ( char *  name)

Definition at line 1614 of file planets.c.

double rjot ( double  t,
double  f 
)

Definition at line 290 of file planets.c.

int showPlanetFlux ( void  )

Definition at line 1358 of file planets.c.

double tb_lin ( double  f,
double  f1,
double  tb1,
double  f2,
double  tb2 
)

Definition at line 309 of file planets.c.

double tsrcInterp ( struct TBRIGHT *  tb,
double  f,
int  n 
)

Definition at line 456 of file planets.c.

Variable Documentation

struct FLUX_INFO flux_info

Definition at line 86 of file planets.c.

long fluxTablesLoadTime = -999999999

Definition at line 69 of file planets.c.

struct TBRIGHT jupiter_tbright[MAX_JUPITER_ENTRIES]

Definition at line 79 of file planets.c.

double mars_freqs[]
Initial value:
= { 30.0, 80.0, 115.0, 150.0, 200.0, 230.0, 260.0, 300.0,
330.0, 360.0, 425.0, 650.0, 800.0, 950.0, 1000.0
}

Definition at line 71 of file planets.c.

struct TBRIGHT mars_tbright[MAX_MARS_ENTRIES]

Definition at line 78 of file planets.c.

char marsDate[80]

Definition at line 67 of file planets.c.

struct TBRIGHT neptune_tbright[MAX_NEPTUNE_ENTRIES]

Definition at line 81 of file planets.c.

struct NEW_EPHEM new_ephem

Definition at line 63 of file planets.c.

struct PLANET_LOOKUP planet_lookup[]
Initial value:
= {
{ "name", "%s", CHARSTAR, &ZRO->name },
{ "dbase", "%s", CHARSTAR, &ZRO->dbase },
{ "ra", "%.10f", DOUBLE, &ZRO->ra },
{ "dec", "%.10f", DOUBLE, &ZRO->dec },
{ "illum", "%.10f", DOUBLE, &ZRO->illum },
{ "dmajor", "%.10f", DOUBLE, &ZRO->dmajor },
{ "dminor", "%.10f", DOUBLE, &ZRO->dminor },
{ "sdist", "%.10f", DOUBLE, &ZRO->sdist },
{ "rdot", "%.10f", DOUBLE, &ZRO->rdot },
{ "dist", "%.10f", DOUBLE, &ZRO->dist },
{ "vel", "%.10f", DOUBLE, &ZRO->vel },
{ "sangle", "%.10f", DOUBLE, &ZRO->sangle },
{ "t_src", "%.10f", DOUBLE, &ZRO->tsrc },
{ "trj", "%.10f", DOUBLE, &ZRO->trj },
{ "flux", "%.10f", DOUBLE, &ZRO->flux },
{ "flux2", "%.10f", DOUBLE, &ZRO->flux2 },
{ "tmb", "%.10f", DOUBLE, &ZRO->tmb },
{ "csize", "%.10f", DOUBLE, &ZRO->csize },
{ NULL, NULL, 0, NULL }
}
#define DOUBLE
Definition: defines.h:56
#define CHARSTAR
Definition: defines.h:57
#define ZRO
Definition: planets.c:96

Definition at line 98 of file planets.c.

double planet_value

Definition at line 75 of file planets.c.

struct EPH_OBJECT save_planet_values[MAX_PLANETS]

Definition at line 84 of file planets.c.

struct TBRIGHT uranus_tbright[MAX_URANUS_ENTRIES]

Definition at line 80 of file planets.c.

struct TBRIGHT venus_tbright[MAX_VENUS_ENTRIES]

Definition at line 77 of file planets.c.

struct TBRIGHT vesta_tbright[MAX_VESTA_ENTRIES]

Definition at line 82 of file planets.c.