updated format_nc_files and ensureCorrectDimensions so they can handle global variable time series for what should be 3D variables (4D including time)