Spitzer Documentation & Tools
Medfiltss

Purpose: Applies median filter for MIPS-Ge data, preserving spatial scales

Author: D. Frayer (SSC)
Date Contributed: 22 Jun 2004
System Requirements: IDL

Information and Download

Download medfiltss.pro (PRO, 2 KB)

Please read the MIPS Data Handbook before using this code

Applies median filter for MIPS-Ge data on data cube of stacked BCDs images by subtracting median of the surrounding DCEs (nn) per pixel while preserving spatial scales by ignoring nearest DCEs (ss) (temporal median filter per pixel).

The code is called as follows:

IDL> medfiltss,INcube,nn,ss,OUTcube

where
INcube = stacked cube of bcd images
OUTcube = median filtered output cube
nn = full width filter size in DCEs
ss = full width of saved spatial scale in DCEs

Applies median filter for MIPS-Ge data on data cube of stacked BCDs images by subtracting median of the surrounding DCEs (nn) per pixel while preserving spatial scales by ignoring nearest DCEs (ss) (temporal median filter per pixel)

Users need to stack input BCDs into a cube before running. After medfilt correction, users need to split OUTcube into corrected BCDs and attach pointing information (headers) from the original BCD images before mosaicing the data. For small nn, users should not include the stim DCEs in the input data cube.

Running median from for DCE=zz calculated from:
[zz-nn/2 --> zz-ss/2] and [zz+ss/2 --> zz+nn/2]

JPL, the SSC and IRSA claim no responsibility for this script. From the project point of view, this is unoffical software, provided as an example to users. Your mileage may vary.

Feel free to report any bugs to frayer@ipac.caltech.edu
Frayer, version 2004 June 22