Blame view

LabTools/IRAP/JPB/muse_phangs_weightst2bin_numbers.pro 283 Bytes
d6343d56   Jean-Philippe Bernard   First commit
1
2
FUNCTION muse_phangs_weightst2bin_numbers,st,Nbin=Nbin

0ed148cc   Jean-Philippe Bernard   improved
3
;This returns the Muse bin numbers
d6343d56   Jean-Philippe Bernard   First commit
4
5
6
7
8
9
10
11
12
tags=tag_names(st)
tags_start=strmid(tags,0,2)
ind_weight=where(tags_start EQ 'W_',count)
bin_numbers=long(strmid(tags[ind_weight],2,10))
Nbin=n_elements(bin_numbers)

RETURN,bin_numbers

END