#!/usr/bin/env xmipp_python
# -------------------------------------------------------------------------------
# Protocol header automatically generated for program: xmipp_ctf_estimate_from_psd
#{begin_of_header}

#------------------------------------------------------------------------------------------
# {section}{has_question}   Downsampling 
# Show
show__K_0002_Show = True
#  --downSamplingPerformed   F
_K_0003_P_downSamplingPerformed_A_F = "1"

#------------------------------------------------------------------------------------------
# {section}{has_question}   CTF fit: Optimization constraints 
# Show
show__K_0004_Show = True
#  --min_freq   fmin
_K_0005_P_min_freq_A_fmin = "0.03"

#  --max_freq   fmax
_K_0006_P_max_freq_A_fmax = "0.35"

#  --fastDefocus   lambda
_K_0007_P_fastDefocus_A_lambda = "2"

#     size
_K_0008_P_fastDefocus_A_size = "10"

#  --defocus_range   D
_K_0009_P_defocus_range_A_D = "8000"

# --show_optimization
_K_0010_P_show_optimization = False
# --radial_noise
_K_0011_P_radial_noise = False
# {expert} --enhance_weight   w
_K_0012_P_enhance_weight_A_w = "1"

# {expert} --model_simplification   s
_K_0013_P_model_simplification_A_s = "0"

# {expert} --bootstrapFit   N
_K_0014_P_bootstrapFit_A_N = "-1"

#------------------------------------------------------------------------------------------
# {section}{has_question} {expert}  CTF fit: Output CTF models 
# Show
show__K_0015_Show = True
#  --ctfmodelSize   size
_K_0016_P_ctfmodelSize_A_size = "256"

#------------------------------------------------------------------------------------------
# {section}{has_question} {expert}  PSD enhancement 
# Show
show__K_0017_Show = True
#  --enhance_min_freq   f1
_K_0018_P_enhance_min_freq_A_f1 = ""

#  --enhance_max_freq   f2
_K_0019_P_enhance_max_freq_A_f2 = ""

#------------------------------------------------------------------------------------------
# {section}{has_question}   CTF1D description 
# Show
show__K_0020_Show = True
# {expert} --ctf_similar_to   ctfFile
_K_0021_P_ctf_similar_to_A_ctfFile = ""

#  --sampling_rate   Tm
_K_0022_P_sampling_rate_A_Tm = ""

#  --voltage   kV
_K_0023_P_voltage_A_kV = ""

#  --spherical_aberration   Cs
_K_0024_P_spherical_aberration_A_Cs = ""

#  --defocusU   Defocus
_K_0025_P_defocusU_A_Defocus = ""

# {expert} --chromatic_aberration   Ca
_K_0026_P_chromatic_aberration_A_Ca = "0"

# {expert} --energy_loss   espr
_K_0027_P_energy_loss_A_espr = "0"

# {expert} --lens_stability   ispr
_K_0028_P_lens_stability_A_ispr = "0"

# {expert} --convergence_cone   alpha
_K_0029_P_convergence_cone_A_alpha = "0"

# {expert} --longitudinal_displace   DeltaF
_K_0030_P_longitudinal_displace_A_DeltaF = "0"

# {expert} --transversal_displace   DeltaR
_K_0031_P_transversal_displace_A_DeltaR = "0"

# {expert} --Q0   Q0
_K_0032_P_Q0_A_Q0 = "0"

# {expert} --K   K
_K_0033_P_K_A_K = "0"

# {expert} --phase_shift   phase_shift
_K_0034_P_phase_shift_A_phase_shift = ""

# {expert} --VPP_radius   VPP_radius
_K_0035_P_VPP_radius_A_VPP_radius = ""

#------------------------------------------------------------------------------------------
# {section}{has_question}   CTF 2D description 
# Show
show__K_0036_Show = True
# {expert} --defocusV   DeltafV
_K_0037_P_defocusV_A_DeltafV = ""

# {expert} --azimuthal_angle   ang
_K_0038_P_azimuthal_angle_A_ang = "0"


# {hidden} Program name
"""This is the name of the program to be executed, do not change this!!!"""
ProgramName = "xmipp_ctf_estimate_from_psd"
#------------------------------------------------------------------------------------------
# {end_of_header} USUALLY YOU DO NOT NEED TO MODIFY ANYTHING BELOW THIS LINE
#------------------------------------------------------------------------------------------------

import sys
from protocol_program import *
from protlib_gui import launchProgramGUI

if __name__ == '__main__':
    launchProgramGUI(sys.argv[0])
