Utilities (radiosim.utils)#

Introduction#

radiosim.io contains utility functions.

Submodules#

Reference/API#

radiosim.utils Package#

Functions#

add_noise(image, noise_level)

Used for adding noise.

adjust_outpath(path, option[, form])

Add number to out path when filename already exists.

cart2pol(x, y)

Transforms cartesian to polar coordinates.

check_outpath(outpath[, verbose])

Check if outpath exists.

create_grid(pixel, bundle_size)

Creates a square 2d grid.

load_data(conf_path[, data_type, key])

pol2cart(r, phi)

Transforms polar to cartesian coordinates.

read_config(config)

Unpacking of the config file to print the config parameters

relativistic_boosting(theta, beta)

Calculate relativistic boosting factor for a jet.

save_sky_distribution_bundle(path, x, y[, ...])

Write images created in analysis to h5 file.

setup_logger([namespace, level])

Basic logging setup.

zoom_on_source(img[, comp, max_amp])

Zoom on source to cut out irrelevant area.

zoom_out(img[, comp, pad_value])

Zoom out of an image.