opticam.mef_slice
Classes
Helper class to represent a slice of a Multi-extension FITS (MEF) file. |
Functions
|
Given a directory, return all the (multi-extension) FITS file paths and extension numbers. |
Module Contents
- class opticam.mef_slice.MEFSlice
Helper class to represent a slice of a Multi-extension FITS (MEF) file.
Parameters
- pathPath
The file path.
- extint
The slice’s extension number.
- path: pathlib.Path
- ext: int
- property key: str
The file path and extension number combined to create a uniquely identifiable string.
Returns
- str
The uniquely identifiable string.
- Return type:
str
- get_header()
Get the slice’s header.
Returns
- Header
The slice’s header.
- Return type:
astropy.io.fits.Header
- opticam.mef_slice.create_file_paths(data_directory)
Given a directory, return all the (multi-extension) FITS file paths and extension numbers.
Parameters
- data_directoryPath
The directory containing one or more (multi-extension) FITS files.
Returns
- list[MEFSlice]
The list of (multi-extension) FITS slices.
- Parameters:
data_directory (pathlib.Path)
- Return type:
list[MEFSlice]