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

Go to the source code of this file.

Macros

#define ZERO_CHANNEL   -1
 

Functions

int addBadChan (int bad)
 
int removeBadChanFromArray (int bad)
 
int autoFind (int flag)
 
int setBadInterval ()
 
int ignoreBadChan ()
 
int tellBadChan ()
 
int isBadChan (int bad)
 
int clearBadChan ()
 
int readBadChanFile ()
 
int badChanShow ()
 
float findNextGoodChan (struct LP_IMAGE_INFO *image, int j)
 
float findPreGoodChan (struct LP_IMAGE_INFO *image, int j)
 
int line_removeBadChans (struct LP_IMAGE_INFO *image, int print)
 
int doSpike ()
 
int correctBadChans ()
 
int do_showBad ()
 
int writeBadChans ()
 

Macro Definition Documentation

#define ZERO_CHANNEL   -1

Definition at line 61 of file badchan.c.

Function Documentation

int addBadChan ( int  bad)

OK, delema; The badchannel array consists of an array of ints. There are normally zero, but a bad channel number is indicated in the array by it's channel number.

How do you flag channel 0???

So, without a complete hack job, I decided that any element in the array with ZERO_CHANNEL (-1) in it indicated Chan 0.

OK, now it's a hack job;

New plan; set the array to -1 when there is nothing bad; That way 0 is a legit number.

Definition at line 81 of file badchan.c.

int autoFind ( int  flag)

Definition at line 135 of file badchan.c.

int badChanShow ( void  )

Definition at line 467 of file badchan.c.

int clearBadChan ( void  )

Zero out the bad channel array

Definition at line 396 of file badchan.c.

int correctBadChans ( void  )

Routine to fix the bad channel array from using 0 = empty to -1 = empty element.

That change allows for channel 0 to be flagged.

Definition at line 688 of file badchan.c.

int do_showBad ( void  )

Definition at line 714 of file badchan.c.

int doSpike ( void  )

Definition at line 621 of file badchan.c.

float findNextGoodChan ( struct LP_IMAGE_INFO *  image,
int  j 
)

Definition at line 480 of file badchan.c.

float findPreGoodChan ( struct LP_IMAGE_INFO *  image,
int  j 
)

Definition at line 500 of file badchan.c.

int ignoreBadChan ( void  )

Set one or more bad channels by name or mouse

Definition at line 244 of file badchan.c.

int isBadChan ( int  bad)

Definition at line 377 of file badchan.c.

int line_removeBadChans ( struct LP_IMAGE_INFO *  image,
int  print 
)

Definition at line 521 of file badchan.c.

int readBadChanFile ( void  )

Definition at line 411 of file badchan.c.

int removeBadChanFromArray ( int  bad)

Remove passed channel from array

Definition at line 113 of file badchan.c.

int setBadInterval ( void  )

Definition at line 194 of file badchan.c.

int tellBadChan ( void  )

Show the user which channels are flagged

Definition at line 351 of file badchan.c.

int writeBadChans ( void  )

Definition at line 750 of file badchan.c.