docs: def data_validation(self, in_nc):
          """Check the necessary dimensions and variables in the input
          netcdf data"""
          data_nc = Dataset(in_nc)
  
          dims = list(data_nc.dimensions)
  
          if dims not in self.dims_oi:
              data_nc.close()
              raise Exception("{0} {1}".format(self.error_messages[1], dims))
  
          nc_vars = list(data_nc.variables)
  
          if nc_vars == self.vars_oi[0]:
              self.runoff_vars = [self.vars_oi[0][-1]]
          elif nc_vars == self.vars_oi[1]:
              self.runoff_vars = [self.vars_oi[1][-1]]
          else:
              data_nc.close()
              raise Exception("{0} {1}".format(self.error_messages[2], nc_vars))
          data_nc.close()