DataBaseSVOMMdbSim

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

Bases: ecpi.simu.lib.database.DataBaseSVOMSimV1

A revoir en se basant sur DataBaseSVOMMdbDC0

Constructor

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

Parameters:
  • p_name (string) – local name
  • p_local_path (string) – local path
  • p_pwd (string) – password
  • p_url (string) – URL

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)
del_all_products()
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 + 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)[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)