module documentation
Convert an image to FITS format
Function | exec |
Undocumented |
Function | get |
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 |
Undocumented |
Function | plot |
Uses matplotlib to display an image and a FITS file side-by-side |
Function | read |
Read the EXIF tags of an image |
Function | read |
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 |
Save a primary_data_bundle and a list of other data bundles to a specified path |
Variable |
|
Undocumented |
Variable | re |
Undocumented |
Variable | re |
Undocumented |
Variable | _lgr |
Undocumented |
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 plot_image_and_fits(image_path: 'figsize': ( 12, 4)}):
¶
str | Path
, fits_path: str | Path
, ext=None, slices=None, fig=None, ax=None, fig_kwargs: dict[ str, Any]
= {Uses matplotlib to display an image and a FITS file side-by-side
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