MakeXcut

This is a diagnositc routine intended to allow one to

Space Telescope Science Institute

Synopsis

This is a diagnositc routine intended to allow one to make plots of rows and columns in regions of images that show breaks in the apparent flux

Command Line Usage

usage: MakeXcut.py  -filt N662 -exptime 400 -size 200 -ymin 30 -ymax 100 xdir ra dec

where

-xfilt designates a fileter to use
-exptime designates and expousre time to chose
-size indicates the size in pixels of the xcuts
-ymin and -ymax set the min and maxim y leve

and
xdir is the directory in which to look for fits files
ra and dec are the ra and dec of a position to inspect

Description

Primary routines:

doit

Primary Routines

doit

Notes

History:

231018 ksl Coding begun

Version History

231018 ksl

Coding begun

Functions

convert_coordinates(ra, dec[, is_degrees])

Convert coordiantes to degrees if

do_xcut_plot(ztab[, xfilt, exptime, size, ymin, ymax])

doit([ra, dec, xdir, xfilt, exptime, size, ymin, ymax])

Run the script

find_overlaps([xdir, ra, dec, size])

radec2pix([filename, ra, dec])

Open a file and see if the postion is inside the image. If so incdicate the location and

round2integer(arr)

steer(argv)

MakeXcut.py -filt N662 -exptime 400 -size 200 -ymin 30 -ymax 100 xdir ra dec

Module Contents

MakeXcut.convert_coordinates(ra, dec, is_degrees=True)

Convert coordiantes to degrees if necessary

MakeXcut.do_xcut_plot(ztab, xfilt='N662', exptime=400.0, size=100, ymin=30, ymax=100)
MakeXcut.doit(ra='01:02:38.6', dec='-71:59:08.23', xdir='.', xfilt='N662', exptime=400, size=200, ymin=30, ymax=100)

Run the script

MakeXcut.find_overlaps(xdir='.', ra='01:02:38.6', dec='-71:59:08.23', size=1000)
MakeXcut.radec2pix(filename='c4d_221221_004943_ooi_N673_req_N24.fits', ra='01:02:38.6', dec='-71:59:08.23')

Open a file and see if the postion is inside the image. If so incdicate the location and flux nearby. Also collect some other information about the object

MakeXcut.round2integer(arr)
MakeXcut.steer(argv)

MakeXcut.py -filt N662 -exptime 400 -size 200 -ymin 30 -ymax 100 xdir ra dec