using "with open" for xmap netcdf file
improved deadtime correction to account for fast trigger time < realtime