cross_bones.images

Functions

apply_shift_to_image(→ None)

Apply RA, dec shifts to images by shifting reference pixels.

shift_image_collections(→ None)

Shift a collection of images (e.g. from ASKAP) based on an offset catalogue.

Module Contents

cross_bones.images.apply_shift_to_image(image: str, dra: float, ddec: float, outname_suffix: str = '.shift', slice: int = 0) None

Apply RA, dec shifts to images by shifting reference pixels.

Parameters:
  • image (str) – Input image name/path.

  • dra (float) – RA shift in degrees.

  • ddec (float) – DEC shift in degrees.

  • outname_suffix (str) – Suffix to append to output filename. Input image will be overwritten if this is set to an empty string (‘’). Default ‘.shift’.

  • slice (int) – HUD list slice. Default 0.

cross_bones.images.shift_image_collections(images: list[str], offset_file: str, outname_suffix: str = '.shift', dxs_key: str = 'd_ra', dys_key: str = 'd_dec') None

Shift a collection of images (e.g. from ASKAP) based on an offset catalogue.

Parameters:
  • images (list[str]) – List of images to shift. Must match order of offsets in offset_file.

  • offset_file (str) – File of offsets - must be in the same order as images.

  • outname_suffix (str) – Suffix to append to output filename. Input image will be overwritten if this is set to an empty string (‘’). Default ‘.shift’.

  • dxs_key (str) – RA shift key in offsets. Default ‘d_ra’.

  • dys_key (str) – DEC shift key in offsets. Default ‘d_dec’.