Simplify file open in NetCDFTrajectory.