Tools (


Reference/API Package


add_mpdaf_keywords_to_file(path, method, …) Add keywords in a FITS file header to describe the method and the corresponding parameters.
add_mpdaf_method_keywords(header, method, …) Add keywords in a FITS header to describe the method and the corresponding parameters.
all_subclasses(cls) Return a set of subclasses of a given cls.
broadcast_to_cube(arr, shape) Broadcast an array (image or spectrum to a cube.
chdir(dirname) Context manager to change the current working directory.
copy_header(srchdr[, dsthdr, exclude, unit]) Copy all keywords from a FITS header to another.
copy_keywords(srchdr, dsthdr, keys) Copy a list of FITS keywords from one header to another.
deprecated(instructions) Flags a method as deprecated.
is_valid_fits_file(filename) Return True is a file exist and is a valid FITS file (based on its extension).
isiter(val) Return True is val is iterable.
isnotebook() Detect if running inside a jupyter notebook.
progressbar(\*args, \*\*kwargs) Wrapper for tqdm progress bar, with notebook detection.
read_slice_from_fits(filename_or_hdu[, …]) Read data from a FITS file.
timeit(f) Decorator which prints the execution time of a function.
timer() Context manager which prints the execution time.


LowercaseOrderedDict(*args) Ordered dictionary where all strings keys are case insensitive.

Class Inheritance Diagram

Inheritance diagram of,,