Skip to content

Instantly share code, notes, and snippets.

@bmorris3
bmorris3 / hdf5_demo.py
Last active November 21, 2016 06:26
Save reconstructions to an HDF5 file, for opening with the Fiji HDF5 viewer.
from shampoo.reconstruction import Hologram
import numpy as np
import h5py
# Load the USAF test target hologram
h = Hologram.from_tif('data/USAF_test.tif')
# Make lists for holding the phase and intensity of each reconstruction
phases = []
intensities = []
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from pyraf import iraf
from pyraf.irafpar import makeIrafPar, IrafParList
from stsci.tools.irafglobals import *
from pyraf.pyrafglobals import *
def ReduceARCES(mode='ql', DOLLARnargs=1, taskObj=None):
Vars = IrafParList('ReduceARCES')
Vars.addParam(makeIrafPar(mode, datatype='string', name='mode', mode='h'))
Vars.addParam(
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.