vircam_filt
[Groups of Support Routines]

These are utility routines for doing median and linear filtering. More...

Functions

void vircam_bfilt (float *data, unsigned char *bpm, int nx, int ny, int filt, int stat, int axis)
 Do linear filtering on an input map.
void vircam_dostat (float *data, unsigned char *bpm, unsigned char *goodval, int npts, int nfilt, int whichstat)

Detailed Description

These are utility routines for doing median and linear filtering.

Author:
Jim Lewis, CASU

Function Documentation

void vircam_bfilt ( float *  data,
unsigned char *  bpm,
int  nx,
int  ny,
int  filt,
int  stat,
int  axis 
)

Do linear filtering on an input map.

Name:
vircam_bfilt
Purpose:
Do a linear filtering operation on an input map
Description:
An image map and its associated bad pixel mask are given. The map is smoothed using linear tophat filters.
Language:
C
Parameters:
data The input data map (overwritten by result).
bpm The input bad pixel mask
nx The X dimension of the maps
ny The Y dimension of the maps
filt The width (in pixels) for the filter
stat The statistic to be used.

  • MEANCALC Smooth using running means
  • MEDIANCALC Smooth using running medians
axis Value of 1 or 2 tells which axis will be smoothed first
QC headers:
None
DRS headers:
None
Author:
Jim Lewis, CASU

Definition at line 122 of file vircam_filt.c.

void vircam_dostat ( float *  data,
unsigned char *  bpm,
unsigned char *  goodval,
int  npts,
int  nfilt,
int  whichstat 
)
Name:
vircam_dostat
Purpose:
Do the actual running mean/median smoothing
Description:
Do a running mean/median of an array for a given filter size. The ends are padded out and any bad pixels are taken into account.
Language:
C
Parameters:
data The input data map (overwritten by result).
bpm The input bad pixel mask
goodval An output bad pixel mask
npts The dimension of the data array
nfilt The size in pixels of the smoothing filter
whichstat The statistic to be used.

  • MEANCALC Smooth using running means
  • MEDIANCALC Smooth using running medians
Author:
Jim Lewis, CASU

Definition at line 330 of file vircam_filt.c.

Referenced by vircam_destripe().


Generated on 15 Mar 2012 for VIRCAM Pipeline by  doxygen 1.6.1