ism3d.arts.discretize.clouds_perchan

ism3d.arts.discretize.clouds_perchan(clouds_loc, clouds_wt, sv, return_v=False)[source]

split clouds_loc by its LOS velocity

clouds_loc 6D cloud location sv: LOS velocity sampling vector

note: sv and clouds_loc.d_z are defined by flipped sign;

so we consider sv <-> -d_z

Ref:

The implemented method is analogous to IDL histogram’s reverse_indices: https://stackoverflow.com/questions/26783719/efficiently-get-indices-of-histogram-bins-in-python https://stackoverflow.com/questions/2754905/vectorized-approach-to-binning-with-numpy-scipy-in-python https://en.wikipedia.org/wiki/Sparse_matrix#Compressed_sparse_row_(CSR,_CRS_or_Yale_format)

return:

list of cloudsset: each elements contain the clouds located within each channel plane