MBad

This command will set data values in the current image (map) to be NO data flags. Thus commands that operate on the current map (such as RCP, IP, Stat) will no longer use this pixel values. Commands that cause the data to re-read (such ad XTimg, Xhisto, etc.) are not affected by the MBad commad.

MBad is useful for deleting bad pixel values from further data analysis. Thus MBad Bo Inner can eliminate individual sources (stars) whereas MBad Bo Outer can get rid of a background near the edge of the detector.

Bounds

Uses the current bounds to mark map pixels as bad. You must specify either Inner or Outer to denote if pixels inside the bounds (Inner) or outside (Outer) are to be flagged.

Column

Mark an entire column as bad.

File

MBad File source.fits 2.5_sig

The Fits file must contain either RA/Dec or X/Y. If file contains all four columns the RA/Dec will be used to obtain the positions.

If the file contains SIG or SIGX, SIGY, and THETA columns then it is assumed to be the output of a SF FF (Fit File). In this case, lextrct uses the values read from the file. If the file does not contain these parameters, then lextrct calculates them using parameters from the 'SET PSF' command.

The final number is the number of sigma to mark bad (and only sigma is allowed). Thus for 2.5_sig circular regions out to two times the psf_sig will be marked bad for every source in the file.

Warning, if you accidently use an events file instead of a source list, then everything will work but N sigma around every photon will be marked bad. This could take a while and will leave you with an empty image.

Note, the last argument is always read as a sigma. Thus

MBad File source.fits 2.5_sec

will be read as 'MBad File source.fits 2.5_sig'.

Lower

Using the lower threshold, mark all pixels with data values below this as bad.

Pixel

Mark a single pixel as bad.

PList

This is similar to the MBad Pixel, except after a pixel is marked you are prompted for another pixel. To get out of the loop you should enter a - (minus sign) for the location (instead of the P, C or W). It is much faster to run MBad PList with 100 pixels than it is to run MBad Pixel 100 times.

MB PL p 100 100 p 100 101 p 100 102 -

Row

Mark an entire row as bad

Upper

Using the upper theshold, mark all pixels with data values above this as bad.


Return to lextrct main page.