DataBaseSVOMSimV1

class DataBaseSVOMSimV1(p_name, p_local_path, p_pwd=None, p_url=None)[source]

Bases: database.interface_db.DataBaseSVOMInterface

open one connection between database SVOM and pipeline ECLAIRs with identifiant p_name return exception if can’t open connexion

Methods Summary

close([p_clean])
del_all_products()
get_files_evt_between_time(p_tstart, …) p_tstart and p_tstop in s from mjdref
get_id()
get_log(p_id)
get_product(p_id)
get_sat_attitude(p_time) return rotation : quaternion like numpy array with 4 values
get_sat_position(p_time)
get_status(p_id)
insert_log(p_file, p_id)
insert_product(p_dir, p_id) insert a product file in database
insert_status(p_string, p_id)

Methods Documentation

close(p_clean=False)[source]
del_all_products()[source]
get_files_evt_between_time(p_tstart, p_tstop, p_id)[source]

p_tstart and p_tstop in s from mjdref simu evt files and save them into dir_in evt files names are ECL_EVT_CAL + t_start in s from mjdref

get_id()[source]
get_log(p_id)[source]
get_product(p_id)[source]
get_sat_attitude(p_time)[source]

return rotation : quaternion like numpy array with 4 values

get_sat_position(p_time)[source]
get_status(p_id)[source]
insert_log(p_file, p_id)[source]
insert_product(p_dir, p_id)[source]

insert a product file in database

copy the file from input in dir_science_products directory of the database

Parameters:p_dir – output dir
insert_status(p_string, p_id)[source]