Events from SIXTE
events_management
¶
create_count_map(final_evt_file, image_file, ra=0.0, dec=0.0, count_map_shape=(58, 58), xifu_config=XIFU_Config())
¶
Create a count map using the imgev function from SIXTE.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
final_evt_file
|
str
|
Path to event file from which to make the count map |
required |
image_file
|
str
|
Path and name of count map |
required |
ra
|
float
|
Right ascension of pointing represented |
0.0
|
dec
|
float
|
Declination of the pointing represented |
0.0
|
count_map_shape
|
tuple
|
Shape of the count map (default for one X-IFU pointing is 58x58) |
(58, 58)
|
xifu_config
|
XIFU_Config
|
X-IFU Configuration instance |
XIFU_Config()
|
Source code in src/xifu_cluster_sim/events_management.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |
merge_evt_files_recursive(output_file, pattern, clobber=False, file_list=None, depth=0)
¶
Merges different event files matching a given pattern recursively. This is needed when running multiple SIXTE processes in parallel, in order to merge the output event files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
output_file
|
str
|
name of the final event list to write |
required |
pattern
|
str
|
pattern to find the event files to merge (e.g. "/sixte_files/part[0-9]/events_[0-9].fits") |
required |
clobber
|
bool
|
standard FITS clobber option |
False
|
file_list
|
list
|
list of files to merge (for recursive calls) |
None
|
depth
|
int
|
depth of recursive call |
0
|
Source code in src/xifu_cluster_sim/events_management.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |