glob var in get_integ_mag