docs: def data_validation(self, in_nc):
          """Check the necessary dimensions and variables in the
          input netcdf data"""
          data_nc = Dataset(in_nc)
          for dim in self.dims_oi:
              if dim not in data_nc.dimensions.keys():
                  data_nc.close()
                  raise Exception(self.error_messages[1])
  
          for var in self.vars_oi:
              if var not in data_nc.variables.keys():
                  data_nc.close()
                  raise Exception(self.error_messages[2])
  
          data_nc.close()
          return