cltools - Commandine tools

Interface to astrometry command line tools

Module provide interface routines to the command line tools that are use in Karl Gebhardt’s astrometry procedure.

vdrp.cltools.getoff2(fnradec, fnshuffle_ifustars, radius, ra_offset, dec_offset, logging=None)[source]

Interface to getoff2.

Args:

fnradec (string): Filename for detections. fnshuffle_ifustars (string): Filename of catalog of stars to match to. radius (float): Matching radius. ra_offset (float): RA offset to apply to detecions in fnradec

before computing offset.
dec_offset (float): Dec offset to apply to detecions in fnradec
before computeing offset.
logging (module): Pass logging module if.
Otherwise output is passed to the screen.
Notes:
Creates files getoff.out, getoff2.out and intermediate file shout.ifu.
Retruns:
new_ra_offset (float), new_dec_offset (float): New offset after matching (input offset added).
vdrp.cltools.immosaicv(prefixes, fplane_file='fplane.txt', logging=None)[source]

Interface to immosaicv which creates a mosaic give a set of fits files and x y coordinates. Requires infp. This function will prepare the necessary infp file that is read by immosaicv command line tool. Format of the latter is 20180611T054545_015.fits 015 -450.0 -50.0 20180611T054545_022.fits 022 -349.743 250.336 20180611T054545_023.fits 023 -349.798 150.243 20180611T054545_024.fits 024 -350.0 50.0 …

Args:
prefixes (list): List file name prefixes for the collapsed IFU images. fplane_file (str): Fplane file name. logging (module): Pass logging module if. Otherwise output is passed to the screen.
vdrp.cltools.imrot(fitsfile, angle, logging=None)[source]

Interface to imrot. Rotates fits image by given angle.

Notes:
Creates file imrot.fits.
Args:
fitsfile (str): Input fits file name. angle (float): Rotation angle.