added use_float keyword that will convert mask to floating point (works with casa)