|
openPMD_raytrace_API
0.1.0
|
This library provides a high-level API in C++ and Python to read and write openPMD files following the raytrace extension. It uses the official openPMD-api at lower level.
The list of variables stored in the openPMD file as defined by the extension is reported in the following table:
| Variable | Comment | Units |
|---|---|---|
| x,y,z | position | [] |
| dx,dy,dz | direction | (normalized velocity) |
| sx,sy,sz | polarization of non-photons | |
| sPolAx, sPolAy, sPolAz, sPolPh | s-polarization amplitude and phase of photons | |
| pPolAx, pPolAy, pPolAz, pPolPh | p-polarization amplitude of photons | |
| time | ray time w.r.t. ray generation | [ms] |
| wavelength | [Ang] | |
| weight | weight | |
| id | unique ID | |
| status | Alive or Dead |
This package depends on:
If you do not have the openPMD-api installed on your system, this package downloads, compiles and install it for you. But installing it separately is highly advisable.
For testing:
More information about the usage can be found here
1.8.14