ism3d.utils.misc¶
Functions
obsolete now we use human_unit()/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 |
|
Sugguest a better unit for the quantity and make it more human readable e.g. |
|
mode: ‘center’,’linear_interp’,’oversample’,’integrate’ |
|
make a 2D Gaussian image approximated to the ALMA (or VLA?) primary beam |
|
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) |
|
pick a channel plane from a “cube” |
|
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. |
|
convert unit to shortest name e.g.: (unit_shortname(u.Jy*u.km/u.s,nospace=False) |