Exemple #1
0
def cml_export_struc(stack, outdir, irun, Ori):
    from projection import plot_angles
    from utilities import set_params_proj, get_im

    global g_n_prj

    pagls = []
    for i in xrange(g_n_prj):
        data = get_im(stack, i)
        p = [Ori[4 * i], Ori[4 * i + 1], Ori[4 * i + 2], 0.0, 0.0]
        set_params_proj(data, p)
        data.write_image(outdir + '/structure_%03i.hdf' % irun, i)

        # prepare angles to plot
        pagls.append([Ori[4 * i], Ori[4 * i + 1], Ori[4 * i + 2]])

    # plot angles
    im = plot_angles(pagls)
    im.write_image(outdir + '/plot_agls_%03i.hdf' % irun)
Exemple #2
0
def cml_export_struc(stack, outdir, irun, Ori):
	from projection import plot_angles
	from utilities  import set_params_proj, get_im

	global g_n_prj
	
	pagls = []
	for i in xrange(g_n_prj):
		data = get_im(stack, i)
		p = [Ori[4*i], Ori[4*i+1], Ori[4*i+2], 0.0, 0.0]
		set_params_proj(data, p)
		data.write_image(outdir + '/structure_%03i.hdf' % irun, i)

		# prepare angles to plot
		pagls.append([Ori[4*i], Ori[4*i+1], Ori[4*i+2]])

	# plot angles
	im = plot_angles(pagls)
	im.write_image(outdir + '/plot_agls_%03i.hdf' % irun)