slicersim.iotools

slicersim.iotools#

Read configuration and data files.

Files given without a directory are looked for in the package configuration directory PACKAGE_PATH.joinpath("config") (slicersim/config).

Functions

chromatic_interpolator

Build a chromatic interpolator.

expand_path

Get the full file path, including the config path if necessary.

get_config

Read the scene and instrument configuration files.

get_galaxy_filepath

Get the path(s) to the spectrum and/or thumbnail files of a galaxy.

merge_dicts

Recursively merge d2 into a copy of d1.

override_config

Override elements of a (nested dict) configuration using dot notation.

read_calspec

Read a CalSpec reference flux FITS file.

read_config

Read a single configuration file.

read_ecsv

Read an ECSV file.