hipercam.utils

Classes and functions of general use

Functions

add_extension(fname, ext)

Add extension ext to a file name if it is not already there, and returns the revised name

dot(v1, v2)

Returns the scalar or ‘dot’ product of two vectors

print_stats(ccd, cnam, x, y, hsbox[, warn])

Prints a few statistics of pixels around an x,y position in a CCD.

rgb(cname)

Returns the RGB tuple associated with colour name ‘cname’, following the colour definitions used by ‘reduce’.

script_args(args)

This is a small helper method that is used at the start of most of the HiPERCAM entry point scripts such as ‘reduce’ and ‘grab’.

sub_extension(fname, ext)

Subtracts extension ext from a file name if it is present, and returns the revised name

Classes

Vec2D([x, y])

Simple 2D vector class.