InstruECLAIRs¶
-
class
InstruECLAIRs(p_file_mask=None, p_nb_pix=None)[source]¶ Bases:
ecpi.common.instru.model_geom.InstruXMultiMaskImplementation of the ECLAIRs mask geometry.
Constructor
Methods Summary
add_mask(p_mask[, p_name])elevdir_to_skypix(elev, direction)convert elevation/direction coordinates into sky pixels coordinates get_elevation_limit_fov_corner()for special case where mask and detector are square and with the same center get_elevation_limit_fov_side()for special case where mask and detector are square and with the same center get_full_surface_mask()get_mask_name(p_name)get_open_surface_mask()in cm2 get_percent_open_mask()get_surface_rect_proj()compute intersection detector and shadow mask then compute its surface get_surface_rect_proj_allmasks()compute the surface on the detector of the projection of the masks get_total_photon()plot_eclairs_on_axis(a_pos[, p_title])plot_mask()plot_raw_mask()plot_submasks()select_mask(p_idx)set_mask(p_mask)set_pos_source_fov(elevation, direction)set definition of the translation vector linked to the source skypix_to_elevdir(pix_y, pix_z)convert pixel coordinates into elevation and direction Methods Documentation
-
add_mask(p_mask: ecpi.common.num.array_square_cell.ArraySquareCell, p_name=None)¶
-
elevdir_to_skypix(elev, direction)¶ convert elevation/direction coordinates into sky pixels coordinates
(0,0) is at the center of the sky array
Parameters: - elev (float or array(float)) – elevation in degrees
- direction (float or array(float)) – direction in degrees
Returns: pixels y,z coordinates
Return type: float, float or array2D(float)
-
get_elevation_limit_fov_corner()¶ for special case where mask and detector are square and with the same center return deg
-
get_elevation_limit_fov_side()¶ for special case where mask and detector are square and with the same center return deg
-
get_mask_name(p_name)¶
-
get_open_surface_mask()¶ in cm2
-
get_percent_open_mask()¶
-
get_surface_rect_proj()¶ compute intersection detector and shadow mask then compute its surface
Returns: intersection surface in cm2 Return type: float
-
get_surface_rect_proj_allmasks()¶ compute the surface on the detector of the projection of the masks (the coded detector surface). It is source dependent
Returns: coded detector surface in cm2 Return type: float
-
get_total_photon()¶
-
plot_mask()¶
-
plot_submasks()¶
-
select_mask(p_idx)¶
-
set_mask(p_mask)¶
-
set_pos_source_fov(elevation, direction)¶ set definition of the translation vector linked to the source vec_trans_source is also position on mask where photon passed to go on origin
-
skypix_to_elevdir(pix_y, pix_z)¶ convert pixel coordinates into elevation and direction
(0,0) is at the center of the sky array.
elevation from 0 to 90. direction from -180 to +180
Parameters: - pix_y (float) – y coordinate of the source, in pixels.
- pix_z (float) – z coordinates of the source, in pixels.
Returns: elevation and direction of the source
Return type: float, float
-