VIRCAM Pipeline  1.3.3
Functions
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:
dataThe input data map (overwritten by result).
bpmThe input bad pixel mask
nxThe X dimension of the maps
nyThe Y dimension of the maps
filtThe width (in pixels) for the filter
statThe statistic to be used.
  • MEANCALC Smooth using running means
  • MEDIANCALC Smooth using running medians
axisValue 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:
dataThe input data map (overwritten by result).
bpmThe input bad pixel mask
goodvalAn output bad pixel mask
nptsThe dimension of the data array
nfiltThe size in pixels of the smoothing filter
whichstatThe 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().