Procedures

ProcedureLocationProcedure TypeDescription
acf_theo script Subroutine

Function that returns the theoretical acf PARAM%imp_acf.

Read more…
acf_wiener func_acf Subroutine

Function that returns the acf of an array.

Read more…
add_expo skku_profiles Function

Function that adds to the series mean the border integrals as explained in the modules presentation.

Read more…
add_tang skku_profiles Function

Function that adds to the series mean the border integrals as explained in the docs

Read more…
apod2 func_acf Subroutine

Function that returns an apodized array.
To prevent gaps from appearing after FFT (because of non periodic waves), the surface must be transformed, but not too much. Here a modified Tukey window is determined. The starting surface is not modified below the “correlation lengths”. Above the correlation lengths, a smooth decrease is forced with a cosine squared.

Read more…
autocov_impo func_acf Function

Function that returns

Read more…
build_heights skku_profiles Subroutine

Function that returns a set of heights that matches desired statistical moments.

Read more…
calc_acf script Subroutine

Function that returns the autocorrelation function of a surface PARAM%acf_surf

Read more…
calc_ffh script Subroutine

Function that returns …

Read more…
calc_imp_acf func_acf Subroutine

Function that returns the theoretical autocorrelation function in an array.
The autocorrelation function is supposed to be obtained from a real surface which must be periodic or nearly periodic (because of the use of FFTs). In addition, the surface is supposed to be 0 mean and normalized (), therefore acf is zero-mean and normalized so that its max value is 1.

Read more…
calc_ord script Subroutine

Function that returns the vector PARAM%order that contains the heights order.

Read more…
calc_res_acf script Subroutine

Function that returns crit_acf the mean absolute difference between theoretical and calculated acfs

Read more…
calc_z_f script Subroutine

Function that returns PARAM%surf, the surface made of heights with the required statistical moments, in the right order.

Read more…
calc_z_i script Subroutine

Function that returns the starting surface of random heights

Read more…
calculs_skku_exp skku_profiles Subroutine

Function to calculate the skewness and kurtosis of an exponential series.
The principle is the same as calculs_skku_tan, however it fits better some particular series quite binary (roughly two heights).

Read more…
calculs_skku_generique skku_profiles Subroutine

Function that calls the right series generator.

Read more…
calculs_skku_tan skku_profiles Subroutine

Function to calculate the skewness and kurtosis of a tangent series

Read more…
cost_func_skku skku_profiles Subroutine

Quantify de distance between desired moments and calculated moments

def_size script Subroutine

Geometrical characteristics of the numerical surface

digi_fil script Subroutine

Function that applies the digital filter to the random heights

Read more…
end_loop script Subroutine

The loop ends here

end_scri script Subroutine

End of script

expo skku_profiles Function

Profile function based on the exponential function

Read more…
fitness_skku_anal skku_profiles Function

Generic cost function: difference between the imposed statistical moments and those obtained. The optimization problem must be turned into a maximization problem (as often in the optimization routines).

Read more…
nb_procs script Subroutine

Number of concurrent threads

pikaia_skku_solver skku_profiles Subroutine

This is a refactoring of the PIKAIA unconstrained optimization code from the High Altitude Observatory. The original code is public domain and was written by Paul Charbonneau & Barry Knapp.

Read more…
plt__acf script Subroutine

Function that calculates the mean absolute difference between the desired Acf and the one obtained. However, the important zone where both should match is above acf__z - where the correlation lengths are determined.

Read more…
prg_surf main Subroutine

Main function…

Read more…
profil_theo_trie_1D skku_profiles Subroutine

Function that generates the heights when the function limits have been determined.

Read more…
read_job script Subroutine

Function that reads a script file. Keywords are identified and corresponding actions are triggered.

Read more…
save_img script Subroutine

Function that save an array tab as a digital surf file.

Read more…
smooth__ script Subroutine

Function that applies a low-pass filter to the surface PARAM%surf

Read more…
sta_loop script Subroutine

Starting the loop

sta_scri script Subroutine

Start the script reading

sta_theo script Subroutine

Required statistical moments

sub_surf script Subroutine

Function that returns the best subsurface from the final surface.

Read more…
tang skku_profiles Function

Profile function based on the tangent function

Read more…
call~~graph~~CallGraph proc~acf_theo acf_theo proc~calc_imp_acf calc_imp_acf proc~acf_theo->proc~calc_imp_acf ellipse_acf ellipse_acf proc~acf_theo->ellipse_acf proc~acf_wiener acf_wiener calc_fftw3_real_bwd calc_fftw3_real_bwd proc~acf_wiener->calc_fftw3_real_bwd calc_fftw3_real_fwd calc_fftw3_real_fwd proc~acf_wiener->calc_fftw3_real_fwd tab_calc_fftw3_real_bwd tab_calc_fftw3_real_bwd proc~acf_wiener->tab_calc_fftw3_real_bwd tab_calc_fftw3_real_fwd tab_calc_fftw3_real_fwd proc~acf_wiener->tab_calc_fftw3_real_fwd trans_corner2center trans_corner2center proc~acf_wiener->trans_corner2center proc~add_expo add_expo proc~expo expo proc~add_expo->proc~expo proc~add_tang add_tang proc~tang tang proc~add_tang->proc~tang proc~apod2 apod2 proc~autocov_impo autocov_impo proc~build_heights build_heights proc~pikaia_skku_solver pikaia_skku_solver proc~build_heights->proc~pikaia_skku_solver proc~profil_theo_trie_1d profil_theo_trie_1D proc~build_heights->proc~profil_theo_trie_1d calc_moments calc_moments proc~build_heights->calc_moments sort_array2 sort_array2 proc~build_heights->sort_array2 proc~calc_acf calc_acf proc~calc_acf->proc~acf_wiener proc~calc_ffh calc_ffh proc~calc_ffh->calc_fftw3_real_bwd proc~calc_ffh->calc_fftw3_real_fwd proc~calc_ffh->calc_moments proc~calc_imp_acf->proc~apod2 proc~calc_imp_acf->proc~autocov_impo proc~calc_ord calc_ord init_order init_order proc~calc_ord->init_order proc~calc_ord->sort_array2 proc~calc_res_acf calc_res_acf proc~calc_z_f calc_z_f proc~calc_z_f->proc~build_heights proc~calc_z_f->calc_moments proc~calc_z_i calc_z_i proc~calc_z_i->proc~build_heights proc~calc_z_i->calc_moments scramble scramble proc~calc_z_i->scramble proc~calculs_skku_exp calculs_skku_exp proc~calculs_skku_exp->proc~add_expo proc~calculs_skku_generique calculs_skku_generique proc~calculs_skku_generique->proc~calculs_skku_exp proc~calculs_skku_tan calculs_skku_tan proc~calculs_skku_generique->proc~calculs_skku_tan proc~calculs_skku_tan->proc~add_tang proc~calculs_skku_tan->proc~tang proc~cost_func_skku cost_func_skku proc~fitness_skku_anal fitness_skku_anal proc~cost_func_skku->proc~fitness_skku_anal proc~def_size def_size proc~digi_fil digi_fil proc~digi_fil->calc_fftw3_real_bwd proc~digi_fil->calc_fftw3_real_fwd proc~digi_fil->calc_moments proc~end_loop end_loop proc~end_scri end_scri end_fftw3 end_fftw3 proc~end_scri->end_fftw3 proc~fitness_skku_anal->proc~calculs_skku_exp proc~fitness_skku_anal->proc~calculs_skku_tan proc~nb_procs nb_procs omp_get_num_procs omp_get_num_procs proc~nb_procs->omp_get_num_procs init pikaia_class%init proc~pikaia_skku_solver->init solve pikaia_class%solve proc~pikaia_skku_solver->solve proc~plt__acf plt__acf proc~plt__acf->ellipse_acf get_unit get_unit proc~plt__acf->get_unit proc~prg_surf prg_surf proc~read_job read_job proc~prg_surf->proc~read_job proc~profil_theo_trie_1d->calc_moments proc~read_job->proc~acf_theo proc~read_job->proc~calc_acf proc~read_job->proc~calc_ffh proc~read_job->proc~calc_ord proc~read_job->proc~calc_z_f proc~read_job->proc~calc_z_i proc~read_job->proc~def_size proc~read_job->proc~digi_fil proc~read_job->proc~end_loop proc~read_job->proc~end_scri proc~read_job->proc~nb_procs proc~read_job->proc~plt__acf proc~save_img save_img proc~read_job->proc~save_img proc~smooth__ smooth__ proc~read_job->proc~smooth__ proc~sta_loop sta_loop proc~read_job->proc~sta_loop proc~sta_scri sta_scri proc~read_job->proc~sta_scri proc~sta_theo sta_theo proc~read_job->proc~sta_theo proc~sub_surf sub_surf proc~read_job->proc~sub_surf proc~read_job->get_unit selectcase selectcase proc~read_job->selectcase str_remove_chars str_remove_chars proc~read_job->str_remove_chars init_scal init_scal proc~save_img->init_scal write_surf write_surf proc~save_img->write_surf proc~smooth__->calc_moments fft_filter fft_filter proc~smooth__->fft_filter random_init random_init proc~sta_scri->random_init proc~sub_surf->proc~acf_wiener proc~sub_surf->proc~build_heights proc~sub_surf->proc~calc_imp_acf proc~sub_surf->proc~calc_res_acf proc~sub_surf->calc_moments proc~sub_surf->end_fftw3 fftw_plan_with_nthreads fftw_plan_with_nthreads proc~sub_surf->fftw_plan_with_nthreads proc~sub_surf->init_order omp_get_max_threads omp_get_max_threads proc~sub_surf->omp_get_max_threads progress_bar_terminal progress_bar_terminal proc~sub_surf->progress_bar_terminal proc~sub_surf->sort_array2 tab_end_fftw3_real tab_end_fftw3_real proc~sub_surf->tab_end_fftw3_real tab_init_fftw3_real tab_init_fftw3_real proc~sub_surf->tab_init_fftw3_real program~main main program~main->proc~prg_surf
Help