ism3d.utils.misc

Functions

check_config

check_deps

check_fftpack

convert_size

obsolete now we use human_unit()/human_to_string()

get_obj_size

human_to_string

A slightly more fancy version of quality.to_string() add the option of 0.units:shortname in formating string syntax # https://docs.astropy.org/en/stable/units/format.html#astropy-units-format

human_unit

Sugguest a better unit for the quantity and make it more human readable e.g.

makekernel

mode: ‘center’,’linear_interp’,’oversample’,’integrate’

makepb

make a 2D Gaussian image approximated to the ALMA (or VLA?) primary beam

makepsf

make a 2D Gaussian image as PSF, warapping around makekernel() beam: tuple (bmaj,bmin,bpa) quatity in fits convention otherwise, use header bmaj/bmin/bpa size: (nx,ny) <– in the FITS convention (not other way around, or so called ij)

pickplane

pick a channel plane from a “cube”

prepdir

render_component

in-plane-add model components into spectral-cube or mutil-freq MS see other mode options: e.g. iadd/isub https://docs.python.org/3.8/library/operator.html.

unit_shortname

convert unit to shortest name e.g.: (unit_shortname(u.Jy*u.km/u.s,nospace=False)