docs: def find_coord_vars(ncds):
      """
      Finds all coordinate variables in a dataset.
  
      A variable with the same name as a dimension is called a coordinate variable.
      """
      coord_vars = []
  
      for d in ncds.dimensions:
          if d in ncds.variables and ncds.variables[d].dimensions == (d,):
              coord_vars.append(ncds.variables[d])
  
      return coord_vars