for ($i=0; $i<16834; $i++){ $energy_rebin[$i] = ($rebin_width * $i); }