How to get IMA tables¶
Azimuth table¶
Azimuthal angle tables for VEX/MEX IMA are obtained from functions
- irfpy.vima.fov.get_azimuth_angle()
- irfpy.mima.fov.get_azimuth_angle()
You can get the angles as follows.
>>> import irfpy.vima.fov
>>> print(irfpy.vima.fov.get_azimuth_angle(7))
-78.75
Elevation table¶
Elevation angle values for VEX(/MEX) IMA are obtained from functions
irfpy.mima.fov.get_elevation_geometric()
(not implemented)irfpy.mima.fov.get_elevation_table()
(not implemented)
Todo
Corresponding functions of above functions to be implemented for MEX.
Currently for MEX, only the object oriented version
is available.
- irfpy.mima.fov.SimpleFOV
- irfpy.mima.fov.TableFOV
Direction as vector¶
From azimuth and elevation angles, the unit vector of the instrument channel can be derived.
- irfpy.vima.fov.get_vector()
- irfpy.mima.fov.get_vector()
provide this functionality.
Todo
The implementation of above functions.
Energy table¶
Energy tables for VEX/MEX IMA are obtained from functions in irfpy.vima.energy
and irfpy.mima.energy
.
Note
Different from the other table, these functions return the energy table as array.
Todo
Make a function that returns the energy for the given index.
irfpy.vima.energy.get_default_table_v1()
returns the energy table (96 element array) for the beginning phase
of the VEX/IMA operation.
Later, the energy table was changed to irfpy.vima.energy.get_default_table_v3()
.
Similarly, for MEX/IMA, following functions returns the energy table as 96 element array.
irfpy.mima.energy.get_default_table_v4()
for the beginning of missionirfpy.mima.energy.get_default_table_v5()
after the first patchirfpy.mima.energy.get_default_table_v5_late()
after the second patchirfpy.mima.energy.get_default_table_v6()
for the fast mode (24 s) table
The fast mode table has only 32 energy steps; If one wants 32-energy step array, one can use:
irfpy.mima.energy.get_default_table_v6_squashed()
for the fast mode (24 s) table as 32 element array
Mass table¶
Mass value for VEX/MEX IMA are obtained from functions below.
These functions returns the mass index corresponding to the given energy and mass.
Todo
Implement of the inverse functions, namely, the mass ring index to the physical mass.
To obtain the expected width of the mass response, use