calculate band for bpc pixel