Remove erroneously commented out else clause in an if statement causing the output NetCDF file to be invalid