implemented our own magic testing to further speed up netcdf file detection