Skip to content

Instantly share code, notes, and snippets.

View simonwagner's full-sized avatar

Simon Wagner simonwagner

  • Munich, Germany
View GitHub Profile
@simonwagner
simonwagner / ale2csv.py
Last active May 30, 2023 23:54
Convert Avid ALE files to CSV
#!/usr/bin/env python
from collections import OrderedDict
from itertools import dropwhile, izip
import csv
import argparse
import os.path
argparser = argparse.ArgumentParser()
argparser.add_argument("ale_file", metavar="ALE", type=argparse.FileType(mode="rb"))
argparser.add_argument("csv_file", metavar="CSV", type=argparse.FileType(mode="wb"), nargs="?", default=None)
@simonwagner
simonwagner / gist:209f14446989f4c9d617f02778ca5b97
Created January 28, 2019 14:23
Convert raw float32 RGBA bytes to TIFF
convert -endian LSB -depth 32 -define quantum:format=floating-point -size 512x512 -alpha on rgba:/tmp/rgba.dat /tmp/rgb.tiff