muse_phangs_weightst2bin_numbers.pro 283 Bytes
FUNCTION muse_phangs_weightst2bin_numbers,st,Nbin=Nbin

;This returns the Muse bin numbers
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