module documentation

Convert an image to FITS format

Function exec_with_args Undocumented
Function get_supported_formats Return a list of supported file extensions that can be successfully converted to FITS format
Function go Thin wrapper around run() to accept string inputs. As long as the names of the arguments to this function are the same as the names expected from the command line we can do this programatically
Function parse_args Undocumented
Function plot_image_and_fits Uses matplotlib to display an image and a FITS file side-by-side
Function read_exif Read the EXIF tags of an image
Function read_image_into_data_bundle Read an image at fpath into a numpy array. Store EXIF tags in the header field of a DataBundle, and the image data in "data" field of a DataBundle.
Function save_as_fits Save a primary_data_bundle and a list of other data bundles to a specified path
Variable DataBundle Undocumented
Variable re_comma_space Undocumented
Variable re_dashed_line Undocumented
Variable _lgr Undocumented
def exec_with_args(argv):

Undocumented

def get_supported_formats():

Return a list of supported file extensions that can be successfully converted to FITS format

def go(image_path, output_path=None, help_FLAG=None):

Thin wrapper around run() to accept string inputs. As long as the names of the arguments to this function are the same as the names expected from the command line we can do this programatically

def parse_args(argv):

Undocumented

def plot_image_and_fits(image_path: str | Path, fits_path: str | Path, ext=None, slices=None, fig=None, ax=None, fig_kwargs: dict[str, Any] = {'figsize': (12, 4)}):

Uses matplotlib to display an image and a FITS file side-by-side

def read_exif(image, header={}, exif_tag_reader=lambda k, v: (str(k), v)):

Read the EXIF tags of an image

def read_image_into_data_bundle(fpath: Path) -> DataBundle:

Read an image at fpath into a numpy array. Store EXIF tags in the header field of a DataBundle, and the image data in "data" field of a DataBundle.

def save_as_fits(output_path: str | Path, primary_data_bundle: DataBundle, **kwargs: dict[str, DataBundle]):

Save a primary_data_bundle and a list of other data bundles to a specified path

DataBundle =

Undocumented

re_comma_space =

Undocumented

re_dashed_line =

Undocumented

_lgr =

Undocumented