code: def fromdelta(args):
      
      p = OptionParser(fromdelta.__doc__)
      opts, args = p.parse_args(args)
  
      if len(args) != 1:
          sys.exit(not p.print_help())
  
      deltafile, = args
      coordsfile = deltafile.rsplit(".", 1)[0] + ".coords"
      cmd = "show-coords -rclH {0}".format(deltafile)
      sh(cmd, outfile=coordsfile)
  
      return coordsfile
docs: %prog fromdelta deltafile
  
      Convert deltafile to coordsfile.