Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sdd.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <fcntl.h>
#include <unistd.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <gsl/gsl_math.h>
#include "observing_par.h"
#include "scans.h"
#include "global.h"
#include "linuxlib_proto.h"

Go to the source code of this file.

Macros

#define BLOCK   512
 
#define OFFSET(x, f)   ((short)(((int)&x->f - ((int)x))/8 + 1))
 
#define MAX_SCANS   16384 /* number of directory entrys, for new file */
 

Functions

int checkConstCal (struct HEADER *h)
 
int findSize (struct ENVIRONMENT *env)
 
struct SOURCES * findSourceInList (char *name)
 
int clearSourceList ()
 
int showSourceList ()
 
int doSummary ()
 
int doSummaryOfFreqs2Buf (char *source, char *buf, int rev)
 
int findScans (struct ENVIRONMENT *env)
 
int lp_checkBounds (float *d, int l, int autobad)
 
int read_scan (float scan, char *filename, float *data, struct HEADER *head, int chk)
 
int read_nsave (int nsave, char *filename, float *data, struct HEADER *head, int chk)
 
int getFeed (double scan)
 
int lp_write_sdd (char *name, struct HEADER *h, char *d)
 
int lp_nwrite_sdd (char *name, int nsave, struct HEADER *h, char *d)
 
int lp_new_sdd (char *name)
 
int printLastBoot ()
 

Variables

int lastFileSize
 
int numOfSources
 
int verboseLevel
 
struct SOURCES sources [MAX_SOURCE_LIST]
 
struct HEADER * sa
 
float * otfData = NULL
 

Macro Definition Documentation

#define BLOCK   512

Definition at line 19 of file sdd.c.

#define MAX_SCANS   16384 /* number of directory entrys, for new file */

Definition at line 21 of file sdd.c.

#define OFFSET (   x,
  f 
)    ((short)(((int)&x->f - ((int)x))/8 + 1))

Definition at line 20 of file sdd.c.

Function Documentation

int checkConstCal ( struct HEADER *  h)

Definition at line 71 of file sdd.c.

int clearSourceList ( )

Definition at line 300 of file sdd.c.

int doSummary ( )

Definition at line 369 of file sdd.c.

int doSummaryOfFreqs2Buf ( char *  source,
char *  buf,
int  rev 
)

Definition at line 428 of file sdd.c.

int findScans ( struct ENVIRONMENT *  env)

Definition at line 495 of file sdd.c.

int findSize ( struct ENVIRONMENT *  env)

Definition at line 118 of file sdd.c.

struct SOURCES* findSourceInList ( char *  name)

Definition at line 183 of file sdd.c.

int getFeed ( double  scan)

Definition at line 1303 of file sdd.c.

int lp_checkBounds ( float *  d,
int  l,
int  autobad 
)

Definition at line 772 of file sdd.c.

int lp_new_sdd ( char *  name)

Definition at line 1762 of file sdd.c.

int lp_nwrite_sdd ( char *  name,
int  nsave,
struct HEADER *  h,
char *  d 
)

Definition at line 1562 of file sdd.c.

int lp_write_sdd ( char *  name,
struct HEADER *  h,
char *  d 
)

Definition at line 1323 of file sdd.c.

int printLastBoot ( )

Definition at line 2017 of file sdd.c.

int read_nsave ( int  nsave,
char *  filename,
float *  data,
struct HEADER *  head,
int  chk 
)

Definition at line 1153 of file sdd.c.

int read_scan ( float  scan,
char *  filename,
float *  data,
struct HEADER *  head,
int  chk 
)

Definition at line 872 of file sdd.c.

int showSourceList ( )

Definition at line 308 of file sdd.c.

Variable Documentation

int lastFileSize

Definition at line 23 of file sdd.c.

int numOfSources

Definition at line 24 of file sdd.c.

float* otfData = NULL

Definition at line 53 of file sdd.c.

struct HEADER* sa

Definition at line 72 of file linuxpops.c.

struct SOURCES sources[MAX_SOURCE_LIST]

Definition at line 27 of file sdd.c.

int verboseLevel

Definition at line 80 of file linuxpops.c.