models.radiativeTransfer.orientation.set_los#

set_los(x=0, y=0, z=0, lon=0, lat=0, i_vox=[], i_vel=None, i_spe=None, i_dust=None, dim='xy', reverse=False, debug=False, verbose=False)[source]#

The emission dimensions should be velocity x species x 2 x voxels. Axis 1 should be split for intensity and optical depth. The positions dimensions should be 3 x voxels.

A function to find the voxels in a particular line-of-sight. This takes a position (specified in Cartesian or spherical coordinates) as input, and uses the previously-opened sub-module variables for the voxel positions. It the determines the voxels in the line-of-sight, orders them from farthest to closest, and saves the sub-module variables necessary for the RT calculation.

Parameters:
  • x

  • y

  • z

  • lon

  • lat

  • i_vox

  • i_vel

  • i_spe

  • i_dust

  • dim

  • reverse

  • debug

  • verbose

Returns:

param calculation_code:

0 for no voxels in the line-of sight, 1 for one voxel in the line-of-sight, and 2 for more then one voxel in the line-of-sight. This is important for the radiative transfer calculation.

param n_vel:

the number of the voxels in the line-of-sight. The original use (velocities) mostly defunct due to how the velocity dimension is handled, but rather it is used to get the number of voxels in the line-of-sight.