Throws an exception if no NetCDF4 filename is specified.