simu.pipeline.simu_script Module¶
This is a executable python script to run the ECLAIRs simulator.
The script needs a configuration file in argument.
See also
simu/pipeline/readme.md
Le script has 2 inputs: * configuration file: example here ecpi/common/data/config_files/simu_config.cfg * output directory
usage: simu_script.py [-h] [-v] [-s] config_file output_dir
local script to run the ECLAIRs simulator
- positional arguments:
config_file configuration file absolute path output_dir directory to store the output files from the simulator. For
security reasons, files are store in a sub-directory named ECLAIRs_simulation_dir_*, cleaned each time.- optional arguments:
-h, --help show this help message and exit -v, --verbose increase output verbosity for additional information in stdout (e.g., no -v : quiet, -v : info, -vv : debug -s, --show show flag for display some graphs
This is a executable python script to run the ECLAIRs simulator. The script needs a configuration file in argument. An example of a working configuration file could be found in ecpi/common/data/config_files/simu_config.cfg
@author: Catalano Camille, APC/IN2P3/CNRS
Functions¶
check_directory(value_array) |
|
construction_catalog(cfg, simu_id, catalog_fov) |
build the sources catalog for simulation |
convert_svomref_seconds_in_mjd(time_s) |
convert a time in seconds from the mjd reference in a time in mjd |
main(args) |
This is the main function of the executable python script to run the ECLAIRs simulator. |
read_observation_config(cfg, simu_id) |
read the observation config parameters |
simulation_projection(cfg, simu_id, …[, …]) |
run the simulation using the projection method |
simulation_projection_old(cfg, simu_id, …) |
run the simulation using the projection method without energy |
simulation_ray_tracing(cfg, simu_id, …[, …]) |
run the simulation using the ray_tracing method |
simulation_switcher(cfg, simu_id, …[, …]) |
simulation method switcher |
yzegp_to_ijdet_array(a_gpidx) |
convert array 2D in yzegp convention to ijdet convention |