code: def apply_attributes(self, nc, table, prefix=''):
          
          for name, value in sorted(table.items()):
              if name in nc.ncattrs():
                  LOG.debug('already have a value for %s' % name)
                  continue
              if value is not None:
                  setattr(nc, name, value)
              else:
                  funcname = prefix+name  # _global_ + product_tile_height
                  func = getattr(self, funcname, None)
                  if func is not None:
                      value = func()
                      if value is not None:
                          setattr(nc, name, value)
                  else:
                      LOG.info('no routine matching %s' % funcname)
docs: apply fixed attributes, or look up attributes needed and apply them