rta_to_lstchain_formator.reorganizer_dl1hiperta300_stream_to_dl1lstchain063

Functions

add_disp_and_mc_type_to_parameters_table(...)

HARDCODED function obtained from lstchain.reco.dl0_to_dl1 because mc_alt_tel and mc_az_tel are zipped within run_array_direction.

create_hfile_out(input_filename, ...)

Create output hfile (lstchainv0.6 like hdf5 file)

dump_plus_copy_node_to_create_new_table(...)

General function to write an astropy table to a temporal file, and immediately after copy it to the output v0.6 hfile.

main()

Conversion from dl1 data model (ctapipe and hiper(CTA)RTA) data model, and convert it to lstchain_v0.6 data mode.

rename_mc_shower_colnames(input_filename, ...)

Rename column names of the mc_shower table and dump the table to the v0.6 output hfile.

reorganiser_dl1hiperta300_stream_to_dl1lstchain063_arg_parser()

reorganizer_dl1hiperta_stream_to_dl1lstchain063(...)

Main function to run the reorganiser

stack_and_write_images_table(input_filename, ...)

Stack all the tel_00X image tables (in case they exit) and write in the v0.6 file

stack_and_write_parameters_table(...)

Stack all the tel_00X parameters tables (of v0.8), change names of the columns and write the table in the V0.6 (lstchain like) format