Skip to content

Instantly share code, notes, and snippets.

View pbravoc's full-sized avatar

Pablo Bravo pbravoc

  • California Institute of Technology
  • Pasadena, CA
  • X @pabravoc
View GitHub Profile
@pbravoc
pbravoc / datx_tiff.py
Last active January 18, 2022 22:50
Simple script that transforms a folder of .datx files into .tiff
# Simple script that transforms a folder of .datx files into .tiff
# Call the script with "python datx_tiff.py folder1 folder2"
# Files will keep the same name
# Useful if you want to run your analysis on Fiji!
import h5py
import numpy as np
import sys
from glob import glob
import cv2