code: def remove_timedim(self, var):
          
          if self.pps and var.dims[0] == 'time':
              data = var[0, :, :]
              data.attrs = var.attrs
              var = data
  
          return var
docs: Remove time dimension from dataset