BackSub

Use calculated backgrounds and subtract these

Space Telescope Science Institute

Synopsis

Use calculated backgrounds and subtract these from the existing images

Command Line Usage

usage: BackSub.py [-h] [-all] -np 8  field T01 T02 ...

where

* -h gives this documentation
- all causes all tiles in the field to be processed
- np 8  causes 8 procesors to be used

Description

The routine reads the files in the DECam_Prep/field/tile

directory and writes the subtacted in imaages to DECam_Prep2/field/tile

Primary Routines

Notes:

The input tables for this have names like Summary/Field_Tile_bbb.txt

Notes

The input tables for this have names like Summary/Field_Tile_bbb.txt

Version History

230619 ksl

Coding begun

Attributes

CWD

DATADIR

PREPDIR

Functions

do_one_file(filein, fileout, b)

This simply subtracts a background from an image

steer(argv)

This is just a steering routine

subtract_one_tile([field, tile, np])

Module Contents

BackSub.CWD
BackSub.DATADIR
BackSub.PREPDIR
BackSub.do_one_file(filein, fileout, b)

This simply subtracts a background from an image

250201 - For reasons that are unclear the current version of astropy gave an error associated with PCOUNT at this stage. The value for an image should be 0, but was a large number. So I have forced a fix to this.

BackSub.steer(argv)

This is just a steering routine

BackSub.subtract_one_tile(field='LMC_c42', tile='T07', np=1)