catsim-test 0.0.5__cp313-cp313-manylinux_2_31_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1235) hide show
  1. catsim_test-0.0.5.dist-info/METADATA +5 -0
  2. catsim_test-0.0.5.dist-info/RECORD +1235 -0
  3. catsim_test-0.0.5.dist-info/WHEEL +5 -0
  4. catsim_test-0.0.5.dist-info/licenses/LICENSE +29 -0
  5. catsim_test-0.0.5.dist-info/sboms/auditwheel.cdx.json +1 -0
  6. catsim_test-0.0.5.dist-info/top_level.txt +2 -0
  7. catsim_test.libs/libgomp-98b21ff3.so.1.0.0 +0 -0
  8. dummy.cpython-313-x86_64-linux-gnu.so +0 -0
  9. gecatsim/__init__.py +20 -0
  10. gecatsim/bowtie/large.txt +891 -0
  11. gecatsim/bowtie/medium.txt +891 -0
  12. gecatsim/bowtie/small.txt +891 -0
  13. gecatsim/cfg/Phantom_Default.cfg +7 -0
  14. gecatsim/cfg/Physics_Default.cfg +38 -0
  15. gecatsim/cfg/Protocol_Default.cfg +33 -0
  16. gecatsim/cfg/Recon_Default.cfg +22 -0
  17. gecatsim/cfg/Scanner_Default.cfg +31 -0
  18. gecatsim/clib_build/BuildLinux64 +6 -0
  19. gecatsim/clib_build/BuildWin64.bat +17 -0
  20. gecatsim/clib_build/MakeMacOS +48 -0
  21. gecatsim/clib_build/MakeVariables_1 +19 -0
  22. gecatsim/clib_build/MakeVariables_2 +5 -0
  23. gecatsim/clib_build/MakeVariables_3 +33 -0
  24. gecatsim/clib_build/MakeVariables_3.1 +32 -0
  25. gecatsim/clib_build/MakeWindows64 +45 -0
  26. gecatsim/clib_build/Makefile +41 -0
  27. gecatsim/clib_build/readme.md +13 -0
  28. gecatsim/clib_build/src/BaseObject.cpp +144 -0
  29. gecatsim/clib_build/src/BaseObject.h +74 -0
  30. gecatsim/clib_build/src/ClipPlane.cpp +83 -0
  31. gecatsim/clib_build/src/ClipPlane.h +28 -0
  32. gecatsim/clib_build/src/CrossSection.cpp +179 -0
  33. gecatsim/clib_build/src/CrossSection.hpp +27 -0
  34. gecatsim/clib_build/src/CrossSectionHandler.cpp +160 -0
  35. gecatsim/clib_build/src/CrossSectionHandler.hpp +72 -0
  36. gecatsim/clib_build/src/Cube.cpp +144 -0
  37. gecatsim/clib_build/src/Cube.h +26 -0
  38. gecatsim/clib_build/src/Cylinder.cpp +156 -0
  39. gecatsim/clib_build/src/Cylinder.h +25 -0
  40. gecatsim/clib_build/src/DD2Back.c +332 -0
  41. gecatsim/clib_build/src/DD2ParProj.c +377 -0
  42. gecatsim/clib_build/src/DD2Proj.c +333 -0
  43. gecatsim/clib_build/src/DD2WBack.c +350 -0
  44. gecatsim/clib_build/src/DD3.hpp +423 -0
  45. gecatsim/clib_build/src/DD3Proj.cpp +519 -0
  46. gecatsim/clib_build/src/DD3Proj_roi_notrans_mm.cpp +585 -0
  47. gecatsim/clib_build/src/DD3WBack.c +491 -0
  48. gecatsim/clib_build/src/DD3_roi_notrans_mm.hpp +272 -0
  49. gecatsim/clib_build/src/Detector.cpp +389 -0
  50. gecatsim/clib_build/src/Detector.hpp +134 -0
  51. gecatsim/clib_build/src/Interpolate.cpp +58 -0
  52. gecatsim/clib_build/src/Intersection.cpp +198 -0
  53. gecatsim/clib_build/src/Intersection.h +36 -0
  54. gecatsim/clib_build/src/MatVec.cpp +262 -0
  55. gecatsim/clib_build/src/MatVec.h +68 -0
  56. gecatsim/clib_build/src/Objects.cpp +23 -0
  57. gecatsim/clib_build/src/Objects.hpp +90 -0
  58. gecatsim/clib_build/src/Phantom.cpp +169 -0
  59. gecatsim/clib_build/src/Phantom.hpp +43 -0
  60. gecatsim/clib_build/src/Photon.cpp +168 -0
  61. gecatsim/clib_build/src/Photon.hpp +56 -0
  62. gecatsim/clib_build/src/RD3Back.cpp +357 -0
  63. gecatsim/clib_build/src/RD3Intersections.cpp +154 -0
  64. gecatsim/clib_build/src/RD3bench.cpp +505 -0
  65. gecatsim/clib_build/src/Sphere.cpp +43 -0
  66. gecatsim/clib_build/src/Sphere.h +25 -0
  67. gecatsim/clib_build/src/Transformation.cpp +104 -0
  68. gecatsim/clib_build/src/Transformation.h +37 -0
  69. gecatsim/clib_build/src/TreePhantom.cpp +138 -0
  70. gecatsim/clib_build/src/TreePhantom.h +27 -0
  71. gecatsim/clib_build/src/Volume.cpp +101 -0
  72. gecatsim/clib_build/src/Volume.hpp +28 -0
  73. gecatsim/clib_build/src/analytic_projector.c +2433 -0
  74. gecatsim/clib_build/src/analytic_projector.h +235 -0
  75. gecatsim/clib_build/src/compt.cpp +400 -0
  76. gecatsim/clib_build/src/compt2.cpp +558 -0
  77. gecatsim/clib_build/src/compt3.cpp +607 -0
  78. gecatsim/clib_build/src/ct_nurbs.h +214 -0
  79. gecatsim/clib_build/src/extractsino.c +42 -0
  80. gecatsim/clib_build/src/fm_gethostid.c +23 -0
  81. gecatsim/clib_build/src/fm_getrandpid.c +31 -0
  82. gecatsim/clib_build/src/gemsfilt.c +1084 -0
  83. gecatsim/clib_build/src/getMemorySize.cpp +105 -0
  84. gecatsim/clib_build/src/getMemorySize.h +5 -0
  85. gecatsim/clib_build/src/hull2.c +77 -0
  86. gecatsim/clib_build/src/intersections.c +131 -0
  87. gecatsim/clib_build/src/label.h +10 -0
  88. gecatsim/clib_build/src/main.cpp +609 -0
  89. gecatsim/clib_build/src/make_volume.c +573 -0
  90. gecatsim/clib_build/src/nCAT_main.c +6343 -0
  91. gecatsim/clib_build/src/negative_log.cpp +233 -0
  92. gecatsim/clib_build/src/negative_log.h +23 -0
  93. gecatsim/clib_build/src/pd2dbpcurved.c +98 -0
  94. gecatsim/clib_build/src/pd2dbpflat.c +101 -0
  95. gecatsim/clib_build/src/pd3dbpsemi.c +177 -0
  96. gecatsim/clib_build/src/phantom.l +72 -0
  97. gecatsim/clib_build/src/phantom.lex.c +1770 -0
  98. gecatsim/clib_build/src/phantom.tab.cpp +2126 -0
  99. gecatsim/clib_build/src/phantom.tab.hpp +126 -0
  100. gecatsim/clib_build/src/phantom.y +624 -0
  101. gecatsim/clib_build/src/rndpoi.c +793 -0
  102. gecatsim/clib_build/src/spline.c +81 -0
  103. gecatsim/clib_build/src/spline.h +6 -0
  104. gecatsim/clib_build/src/timer.c +64 -0
  105. gecatsim/clib_build/src/viewshift.c +25 -0
  106. gecatsim/clib_build/src/voxelized_projector.cpp +683 -0
  107. gecatsim/clib_build/src/xybowtie.c +76 -0
  108. gecatsim/dose/data/dosereconkernel_mthd4.mat +0 -0
  109. gecatsim/dose/data/scatter_E_loss_fraction.mat +0 -0
  110. gecatsim/dose/data/weighted_scatter_energy_by_spec.mat +0 -0
  111. gecatsim/dose/examples/dose_doserecon.cfg +16 -0
  112. gecatsim/dose/examples/dose_phantom.cfg +6 -0
  113. gecatsim/dose/examples/dose_physics.cfg +18 -0
  114. gecatsim/dose/examples/dose_protocol.cfg +15 -0
  115. gecatsim/dose/examples/dose_recon.cfg +9 -0
  116. gecatsim/dose/examples/dose_scanner.cfg +29 -0
  117. gecatsim/dose/examples/run.py +37 -0
  118. gecatsim/dose/lib/Dose_Recon_Library_Linux64.so +0 -0
  119. gecatsim/dose/lib/Dose_Recon_Library_Windows64.dll +0 -0
  120. gecatsim/dose/pyfiles/C_DD3Dose.py +84 -0
  121. gecatsim/dose/pyfiles/Combine_Spectrum_Bowtie_FlatFilter.py +15 -0
  122. gecatsim/dose/pyfiles/DoseConv.py +87 -0
  123. gecatsim/dose/pyfiles/GetMuByProcess.py +57 -0
  124. gecatsim/dose/pyfiles/__init__.py +0 -0
  125. gecatsim/dose/pyfiles/brconvol_matlab.py +67 -0
  126. gecatsim/dose/pyfiles/calcDetectorFlux.py +54 -0
  127. gecatsim/dose/pyfiles/catdoserecon.py +225 -0
  128. gecatsim/dose/pyfiles/doseconvol.py +52 -0
  129. gecatsim/dose/pyfiles/get_voxel_stopping_power.py +35 -0
  130. gecatsim/dose/pyfiles/img2vol.py +57 -0
  131. gecatsim/dose/pyfiles/xyfovimg.py +30 -0
  132. gecatsim/dose/readme.md +4 -0
  133. gecatsim/dose/src/DD3.hpp +371 -0
  134. gecatsim/dose/src/DD3Dose.cpp +787 -0
  135. gecatsim/dose/src/DD3Dose.hpp +22 -0
  136. gecatsim/dose/src/DD3Dose.i +23 -0
  137. gecatsim/dose/src/DD3Energy_clean.cpp +1464 -0
  138. gecatsim/dose/src/DD3Proj.cpp +504 -0
  139. gecatsim/dose/src/DD3Proj.hpp +20 -0
  140. gecatsim/dose/src/DD3Proj_mm.cpp +561 -0
  141. gecatsim/dose/src/DD3Proj_mm.hpp +21 -0
  142. gecatsim/dose/src/Win32_Build.bat +17 -0
  143. gecatsim/dose/src/Win64_Build.bat +20 -0
  144. gecatsim/examples/Catvoxel_Sample.py +53 -0
  145. gecatsim/examples/DD3Proj_mm_Sample.py +60 -0
  146. gecatsim/examples/GetMu_Sample.py +24 -0
  147. gecatsim/examples/Sim_Recon_Sample.py +45 -0
  148. gecatsim/examples/Sim_Recon_Sample_PCCT.py +69 -0
  149. gecatsim/examples/Sim_Sample.py +32 -0
  150. gecatsim/examples/Sim_Sample_Analyic.py +44 -0
  151. gecatsim/examples/Sim_Sample_Helical.py +32 -0
  152. gecatsim/examples/Sim_Sample_Hybrid.py +42 -0
  153. gecatsim/examples/Sim_Sample_PCCT.py +72 -0
  154. gecatsim/examples/Sim_Sample_Polygonal.py +47 -0
  155. gecatsim/examples/Sim_Sample_Scatter.py +38 -0
  156. gecatsim/examples/Sim_Sample_XCAT.py +50 -0
  157. gecatsim/examples/cfg/Phantom_Sample.cfg +6 -0
  158. gecatsim/examples/cfg/Phantom_Sample_Analytic.cfg +6 -0
  159. gecatsim/examples/cfg/Phantom_Sample_Hybrid.cfg +7 -0
  160. gecatsim/examples/cfg/Phantom_Sample_Polygonal.cfg +6 -0
  161. gecatsim/examples/cfg/Phantom_Sample_XCAT.cfg +6 -0
  162. gecatsim/examples/cfg/Physics_Sample.cfg +41 -0
  163. gecatsim/examples/cfg/Protocol_Sample_Helical.cfg +33 -0
  164. gecatsim/examples/cfg/Protocol_Sample_axial.cfg +33 -0
  165. gecatsim/examples/cfg/Recon_Sample_2d.cfg +6 -0
  166. gecatsim/examples/cfg/Recon_Sample_Helical.cfg +8 -0
  167. gecatsim/examples/cfg/Scanner_PCCT.cfg +30 -0
  168. gecatsim/examples/cfg/Scanner_Sample_generic.cfg +29 -0
  169. gecatsim/examples/vct_examples/Phantom_Sample_Analytic.cfg +6 -0
  170. gecatsim/examples/vct_examples/Physics_Sample.cfg +41 -0
  171. gecatsim/examples/vct_examples/Protocol_Sample_axial.cfg +33 -0
  172. gecatsim/examples/vct_examples/Recon_Sample_2d.cfg +6 -0
  173. gecatsim/examples/vct_examples/Scanner_Sample_generic.cfg +31 -0
  174. gecatsim/examples/vct_examples/read.md +1 -0
  175. gecatsim/focal_spot/readme.md +31 -0
  176. gecatsim/focal_spot/vct_large_fs.npz +0 -0
  177. gecatsim/focal_spot/vct_small_fs.npz +0 -0
  178. gecatsim/lib/libcatsim.so +0 -0
  179. gecatsim/lib/libcatsim64.dll +0 -0
  180. gecatsim/lib/libcatsim_macos.so +0 -0
  181. gecatsim/lib/pthreadGC2_x64.dll +0 -0
  182. gecatsim/lib/pthreads-2-9-1-release.zip +0 -0
  183. gecatsim/material/Ac +11 -0
  184. gecatsim/material/Ag +11 -0
  185. gecatsim/material/Al +11 -0
  186. gecatsim/material/Ar +11 -0
  187. gecatsim/material/As +11 -0
  188. gecatsim/material/At +11 -0
  189. gecatsim/material/Au +11 -0
  190. gecatsim/material/B +11 -0
  191. gecatsim/material/Ba +11 -0
  192. gecatsim/material/Be +11 -0
  193. gecatsim/material/Bi +11 -0
  194. gecatsim/material/Br +11 -0
  195. gecatsim/material/C +11 -0
  196. gecatsim/material/CIRS_adipose_adult2 +20 -0
  197. gecatsim/material/CIRS_adipose_adult3 +20 -0
  198. gecatsim/material/CIRS_bone_10yo +21 -0
  199. gecatsim/material/CIRS_bone_1yo +21 -0
  200. gecatsim/material/CIRS_bone_5yo +21 -0
  201. gecatsim/material/CIRS_bone_adult_and_15yo +21 -0
  202. gecatsim/material/CIRS_bone_newborn +21 -0
  203. gecatsim/material/CIRS_liver_adult +20 -0
  204. gecatsim/material/CIRS_lung_inhale +20 -0
  205. gecatsim/material/CIRS_plastic_water_LR +20 -0
  206. gecatsim/material/CIRS_spinal_cord +20 -0
  207. gecatsim/material/CZT +5 -0
  208. gecatsim/material/Ca +11 -0
  209. gecatsim/material/Cd +11 -0
  210. gecatsim/material/Ce +11 -0
  211. gecatsim/material/Cl +11 -0
  212. gecatsim/material/Co +11 -0
  213. gecatsim/material/Copyright.txt +7 -0
  214. gecatsim/material/Cr +11 -0
  215. gecatsim/material/Cs +11 -0
  216. gecatsim/material/CsI +16 -0
  217. gecatsim/material/Cu +11 -0
  218. gecatsim/material/Dy +11 -0
  219. gecatsim/material/Er +11 -0
  220. gecatsim/material/Eu +11 -0
  221. gecatsim/material/F +11 -0
  222. gecatsim/material/Fe +11 -0
  223. gecatsim/material/Fr +11 -0
  224. gecatsim/material/GOS +19 -0
  225. gecatsim/material/Ga +11 -0
  226. gecatsim/material/Gd +11 -0
  227. gecatsim/material/Ge +11 -0
  228. gecatsim/material/H +11 -0
  229. gecatsim/material/He +11 -0
  230. gecatsim/material/Hf +11 -0
  231. gecatsim/material/Hg +11 -0
  232. gecatsim/material/Ho +11 -0
  233. gecatsim/material/I +11 -0
  234. gecatsim/material/ICRU_adipose_adult2 +21 -0
  235. gecatsim/material/ICRU_blood_adult +24 -0
  236. gecatsim/material/ICRU_brain_adult +26 -0
  237. gecatsim/material/ICRU_breast_adult2 +22 -0
  238. gecatsim/material/ICRU_eye_lens_adult +22 -0
  239. gecatsim/material/ICRU_kidney_adult +24 -0
  240. gecatsim/material/ICRU_liver_adult +23 -0
  241. gecatsim/material/ICRU_lung_adult_healthy +23 -0
  242. gecatsim/material/ICRU_muscle_adult +23 -0
  243. gecatsim/material/ICRU_pancreas_adult +23 -0
  244. gecatsim/material/ICRU_skeleton_cortical_bone_adult +23 -0
  245. gecatsim/material/ICRU_skin_adult +23 -0
  246. gecatsim/material/ICRU_spleen_adult +23 -0
  247. gecatsim/material/ICRU_testis_adult +23 -0
  248. gecatsim/material/In +11 -0
  249. gecatsim/material/Ir +11 -0
  250. gecatsim/material/K +11 -0
  251. gecatsim/material/Kr +11 -0
  252. gecatsim/material/La +11 -0
  253. gecatsim/material/Li +11 -0
  254. gecatsim/material/Lu +11 -0
  255. gecatsim/material/Lumex +18 -0
  256. gecatsim/material/Mg +11 -0
  257. gecatsim/material/Mn +11 -0
  258. gecatsim/material/Mo +11 -0
  259. gecatsim/material/N +11 -0
  260. gecatsim/material/Na +11 -0
  261. gecatsim/material/NaCl +16 -0
  262. gecatsim/material/Nb +11 -0
  263. gecatsim/material/Nd +11 -0
  264. gecatsim/material/Ne +11 -0
  265. gecatsim/material/Ni +11 -0
  266. gecatsim/material/O +11 -0
  267. gecatsim/material/Os +11 -0
  268. gecatsim/material/P +11 -0
  269. gecatsim/material/PMMA +20 -0
  270. gecatsim/material/PVC_flexible +20 -0
  271. gecatsim/material/PVC_rigid +20 -0
  272. gecatsim/material/Pa +11 -0
  273. gecatsim/material/Pb +11 -0
  274. gecatsim/material/Pd +11 -0
  275. gecatsim/material/Pm +11 -0
  276. gecatsim/material/Po +11 -0
  277. gecatsim/material/Pr +11 -0
  278. gecatsim/material/Pt +11 -0
  279. gecatsim/material/Ra +11 -0
  280. gecatsim/material/Rb +11 -0
  281. gecatsim/material/Re +11 -0
  282. gecatsim/material/Rh +11 -0
  283. gecatsim/material/Rn +11 -0
  284. gecatsim/material/Ru +11 -0
  285. gecatsim/material/S +11 -0
  286. gecatsim/material/Sb +11 -0
  287. gecatsim/material/Sc +11 -0
  288. gecatsim/material/Se +11 -0
  289. gecatsim/material/Si +11 -0
  290. gecatsim/material/Sm +11 -0
  291. gecatsim/material/Sn +11 -0
  292. gecatsim/material/Sr +11 -0
  293. gecatsim/material/Ta +11 -0
  294. gecatsim/material/Tb +11 -0
  295. gecatsim/material/Tc +11 -0
  296. gecatsim/material/Te +11 -0
  297. gecatsim/material/Th +11 -0
  298. gecatsim/material/Ti +11 -0
  299. gecatsim/material/Tl +11 -0
  300. gecatsim/material/Tm +11 -0
  301. gecatsim/material/U +11 -0
  302. gecatsim/material/V +11 -0
  303. gecatsim/material/W +11 -0
  304. gecatsim/material/Xe +11 -0
  305. gecatsim/material/Y +11 -0
  306. gecatsim/material/Yb +11 -0
  307. gecatsim/material/Zn +11 -0
  308. gecatsim/material/Zr +11 -0
  309. gecatsim/material/air +24 -0
  310. gecatsim/material/bone +25 -0
  311. gecatsim/material/brass +18 -0
  312. gecatsim/material/diamond +13 -0
  313. gecatsim/material/edlp/comp/ce-cs-1.dat +124 -0
  314. gecatsim/material/edlp/comp/ce-cs-10.dat +124 -0
  315. gecatsim/material/edlp/comp/ce-cs-100.dat +124 -0
  316. gecatsim/material/edlp/comp/ce-cs-11.dat +124 -0
  317. gecatsim/material/edlp/comp/ce-cs-12.dat +124 -0
  318. gecatsim/material/edlp/comp/ce-cs-13.dat +124 -0
  319. gecatsim/material/edlp/comp/ce-cs-14.dat +124 -0
  320. gecatsim/material/edlp/comp/ce-cs-15.dat +124 -0
  321. gecatsim/material/edlp/comp/ce-cs-16.dat +124 -0
  322. gecatsim/material/edlp/comp/ce-cs-17.dat +124 -0
  323. gecatsim/material/edlp/comp/ce-cs-18.dat +124 -0
  324. gecatsim/material/edlp/comp/ce-cs-19.dat +124 -0
  325. gecatsim/material/edlp/comp/ce-cs-2.dat +124 -0
  326. gecatsim/material/edlp/comp/ce-cs-20.dat +124 -0
  327. gecatsim/material/edlp/comp/ce-cs-21.dat +124 -0
  328. gecatsim/material/edlp/comp/ce-cs-22.dat +124 -0
  329. gecatsim/material/edlp/comp/ce-cs-23.dat +124 -0
  330. gecatsim/material/edlp/comp/ce-cs-24.dat +124 -0
  331. gecatsim/material/edlp/comp/ce-cs-25.dat +124 -0
  332. gecatsim/material/edlp/comp/ce-cs-26.dat +124 -0
  333. gecatsim/material/edlp/comp/ce-cs-27.dat +124 -0
  334. gecatsim/material/edlp/comp/ce-cs-28.dat +124 -0
  335. gecatsim/material/edlp/comp/ce-cs-29.dat +124 -0
  336. gecatsim/material/edlp/comp/ce-cs-3.dat +124 -0
  337. gecatsim/material/edlp/comp/ce-cs-30.dat +124 -0
  338. gecatsim/material/edlp/comp/ce-cs-31.dat +124 -0
  339. gecatsim/material/edlp/comp/ce-cs-32.dat +124 -0
  340. gecatsim/material/edlp/comp/ce-cs-33.dat +124 -0
  341. gecatsim/material/edlp/comp/ce-cs-34.dat +124 -0
  342. gecatsim/material/edlp/comp/ce-cs-35.dat +124 -0
  343. gecatsim/material/edlp/comp/ce-cs-36.dat +124 -0
  344. gecatsim/material/edlp/comp/ce-cs-37.dat +124 -0
  345. gecatsim/material/edlp/comp/ce-cs-38.dat +124 -0
  346. gecatsim/material/edlp/comp/ce-cs-39.dat +124 -0
  347. gecatsim/material/edlp/comp/ce-cs-4.dat +124 -0
  348. gecatsim/material/edlp/comp/ce-cs-40.dat +124 -0
  349. gecatsim/material/edlp/comp/ce-cs-41.dat +124 -0
  350. gecatsim/material/edlp/comp/ce-cs-42.dat +124 -0
  351. gecatsim/material/edlp/comp/ce-cs-43.dat +124 -0
  352. gecatsim/material/edlp/comp/ce-cs-44.dat +124 -0
  353. gecatsim/material/edlp/comp/ce-cs-45.dat +124 -0
  354. gecatsim/material/edlp/comp/ce-cs-46.dat +124 -0
  355. gecatsim/material/edlp/comp/ce-cs-47.dat +124 -0
  356. gecatsim/material/edlp/comp/ce-cs-48.dat +124 -0
  357. gecatsim/material/edlp/comp/ce-cs-49.dat +124 -0
  358. gecatsim/material/edlp/comp/ce-cs-5.dat +124 -0
  359. gecatsim/material/edlp/comp/ce-cs-50.dat +124 -0
  360. gecatsim/material/edlp/comp/ce-cs-51.dat +124 -0
  361. gecatsim/material/edlp/comp/ce-cs-52.dat +124 -0
  362. gecatsim/material/edlp/comp/ce-cs-53.dat +124 -0
  363. gecatsim/material/edlp/comp/ce-cs-54.dat +124 -0
  364. gecatsim/material/edlp/comp/ce-cs-55.dat +124 -0
  365. gecatsim/material/edlp/comp/ce-cs-56.dat +124 -0
  366. gecatsim/material/edlp/comp/ce-cs-57.dat +124 -0
  367. gecatsim/material/edlp/comp/ce-cs-58.dat +124 -0
  368. gecatsim/material/edlp/comp/ce-cs-59.dat +124 -0
  369. gecatsim/material/edlp/comp/ce-cs-6.dat +124 -0
  370. gecatsim/material/edlp/comp/ce-cs-60.dat +124 -0
  371. gecatsim/material/edlp/comp/ce-cs-61.dat +124 -0
  372. gecatsim/material/edlp/comp/ce-cs-62.dat +124 -0
  373. gecatsim/material/edlp/comp/ce-cs-63.dat +124 -0
  374. gecatsim/material/edlp/comp/ce-cs-64.dat +124 -0
  375. gecatsim/material/edlp/comp/ce-cs-65.dat +124 -0
  376. gecatsim/material/edlp/comp/ce-cs-66.dat +124 -0
  377. gecatsim/material/edlp/comp/ce-cs-67.dat +124 -0
  378. gecatsim/material/edlp/comp/ce-cs-68.dat +124 -0
  379. gecatsim/material/edlp/comp/ce-cs-69.dat +124 -0
  380. gecatsim/material/edlp/comp/ce-cs-7.dat +124 -0
  381. gecatsim/material/edlp/comp/ce-cs-70.dat +124 -0
  382. gecatsim/material/edlp/comp/ce-cs-71.dat +124 -0
  383. gecatsim/material/edlp/comp/ce-cs-72.dat +124 -0
  384. gecatsim/material/edlp/comp/ce-cs-73.dat +124 -0
  385. gecatsim/material/edlp/comp/ce-cs-74.dat +124 -0
  386. gecatsim/material/edlp/comp/ce-cs-75.dat +124 -0
  387. gecatsim/material/edlp/comp/ce-cs-76.dat +124 -0
  388. gecatsim/material/edlp/comp/ce-cs-77.dat +124 -0
  389. gecatsim/material/edlp/comp/ce-cs-78.dat +124 -0
  390. gecatsim/material/edlp/comp/ce-cs-79.dat +124 -0
  391. gecatsim/material/edlp/comp/ce-cs-8.dat +124 -0
  392. gecatsim/material/edlp/comp/ce-cs-80.dat +124 -0
  393. gecatsim/material/edlp/comp/ce-cs-81.dat +124 -0
  394. gecatsim/material/edlp/comp/ce-cs-82.dat +124 -0
  395. gecatsim/material/edlp/comp/ce-cs-83.dat +124 -0
  396. gecatsim/material/edlp/comp/ce-cs-84.dat +124 -0
  397. gecatsim/material/edlp/comp/ce-cs-85.dat +124 -0
  398. gecatsim/material/edlp/comp/ce-cs-86.dat +124 -0
  399. gecatsim/material/edlp/comp/ce-cs-87.dat +124 -0
  400. gecatsim/material/edlp/comp/ce-cs-88.dat +124 -0
  401. gecatsim/material/edlp/comp/ce-cs-89.dat +124 -0
  402. gecatsim/material/edlp/comp/ce-cs-9.dat +124 -0
  403. gecatsim/material/edlp/comp/ce-cs-90.dat +124 -0
  404. gecatsim/material/edlp/comp/ce-cs-91.dat +124 -0
  405. gecatsim/material/edlp/comp/ce-cs-92.dat +124 -0
  406. gecatsim/material/edlp/comp/ce-cs-93.dat +124 -0
  407. gecatsim/material/edlp/comp/ce-cs-94.dat +124 -0
  408. gecatsim/material/edlp/comp/ce-cs-95.dat +124 -0
  409. gecatsim/material/edlp/comp/ce-cs-96.dat +124 -0
  410. gecatsim/material/edlp/comp/ce-cs-97.dat +124 -0
  411. gecatsim/material/edlp/comp/ce-cs-98.dat +124 -0
  412. gecatsim/material/edlp/comp/ce-cs-99.dat +124 -0
  413. gecatsim/material/edlp/comp/ce-cs-all.dat +0 -0
  414. gecatsim/material/edlp/comp/ce-sf-1.dat +107 -0
  415. gecatsim/material/edlp/comp/ce-sf-10.dat +179 -0
  416. gecatsim/material/edlp/comp/ce-sf-100.dat +150 -0
  417. gecatsim/material/edlp/comp/ce-sf-11.dat +187 -0
  418. gecatsim/material/edlp/comp/ce-sf-12.dat +180 -0
  419. gecatsim/material/edlp/comp/ce-sf-13.dat +166 -0
  420. gecatsim/material/edlp/comp/ce-sf-14.dat +170 -0
  421. gecatsim/material/edlp/comp/ce-sf-15.dat +166 -0
  422. gecatsim/material/edlp/comp/ce-sf-16.dat +165 -0
  423. gecatsim/material/edlp/comp/ce-sf-17.dat +169 -0
  424. gecatsim/material/edlp/comp/ce-sf-18.dat +161 -0
  425. gecatsim/material/edlp/comp/ce-sf-19.dat +167 -0
  426. gecatsim/material/edlp/comp/ce-sf-2.dat +144 -0
  427. gecatsim/material/edlp/comp/ce-sf-20.dat +168 -0
  428. gecatsim/material/edlp/comp/ce-sf-21.dat +162 -0
  429. gecatsim/material/edlp/comp/ce-sf-22.dat +163 -0
  430. gecatsim/material/edlp/comp/ce-sf-23.dat +162 -0
  431. gecatsim/material/edlp/comp/ce-sf-24.dat +169 -0
  432. gecatsim/material/edlp/comp/ce-sf-25.dat +164 -0
  433. gecatsim/material/edlp/comp/ce-sf-26.dat +167 -0
  434. gecatsim/material/edlp/comp/ce-sf-27.dat +165 -0
  435. gecatsim/material/edlp/comp/ce-sf-28.dat +173 -0
  436. gecatsim/material/edlp/comp/ce-sf-29.dat +167 -0
  437. gecatsim/material/edlp/comp/ce-sf-3.dat +149 -0
  438. gecatsim/material/edlp/comp/ce-sf-30.dat +168 -0
  439. gecatsim/material/edlp/comp/ce-sf-31.dat +166 -0
  440. gecatsim/material/edlp/comp/ce-sf-32.dat +168 -0
  441. gecatsim/material/edlp/comp/ce-sf-33.dat +167 -0
  442. gecatsim/material/edlp/comp/ce-sf-34.dat +169 -0
  443. gecatsim/material/edlp/comp/ce-sf-35.dat +167 -0
  444. gecatsim/material/edlp/comp/ce-sf-36.dat +158 -0
  445. gecatsim/material/edlp/comp/ce-sf-37.dat +160 -0
  446. gecatsim/material/edlp/comp/ce-sf-38.dat +161 -0
  447. gecatsim/material/edlp/comp/ce-sf-39.dat +161 -0
  448. gecatsim/material/edlp/comp/ce-sf-4.dat +151 -0
  449. gecatsim/material/edlp/comp/ce-sf-40.dat +170 -0
  450. gecatsim/material/edlp/comp/ce-sf-41.dat +172 -0
  451. gecatsim/material/edlp/comp/ce-sf-42.dat +167 -0
  452. gecatsim/material/edlp/comp/ce-sf-43.dat +164 -0
  453. gecatsim/material/edlp/comp/ce-sf-44.dat +160 -0
  454. gecatsim/material/edlp/comp/ce-sf-45.dat +160 -0
  455. gecatsim/material/edlp/comp/ce-sf-46.dat +162 -0
  456. gecatsim/material/edlp/comp/ce-sf-47.dat +162 -0
  457. gecatsim/material/edlp/comp/ce-sf-48.dat +164 -0
  458. gecatsim/material/edlp/comp/ce-sf-49.dat +165 -0
  459. gecatsim/material/edlp/comp/ce-sf-5.dat +148 -0
  460. gecatsim/material/edlp/comp/ce-sf-50.dat +158 -0
  461. gecatsim/material/edlp/comp/ce-sf-51.dat +156 -0
  462. gecatsim/material/edlp/comp/ce-sf-52.dat +158 -0
  463. gecatsim/material/edlp/comp/ce-sf-53.dat +163 -0
  464. gecatsim/material/edlp/comp/ce-sf-54.dat +163 -0
  465. gecatsim/material/edlp/comp/ce-sf-55.dat +158 -0
  466. gecatsim/material/edlp/comp/ce-sf-56.dat +161 -0
  467. gecatsim/material/edlp/comp/ce-sf-57.dat +168 -0
  468. gecatsim/material/edlp/comp/ce-sf-58.dat +167 -0
  469. gecatsim/material/edlp/comp/ce-sf-59.dat +162 -0
  470. gecatsim/material/edlp/comp/ce-sf-6.dat +155 -0
  471. gecatsim/material/edlp/comp/ce-sf-60.dat +157 -0
  472. gecatsim/material/edlp/comp/ce-sf-61.dat +169 -0
  473. gecatsim/material/edlp/comp/ce-sf-62.dat +169 -0
  474. gecatsim/material/edlp/comp/ce-sf-63.dat +160 -0
  475. gecatsim/material/edlp/comp/ce-sf-64.dat +166 -0
  476. gecatsim/material/edlp/comp/ce-sf-65.dat +163 -0
  477. gecatsim/material/edlp/comp/ce-sf-66.dat +158 -0
  478. gecatsim/material/edlp/comp/ce-sf-67.dat +168 -0
  479. gecatsim/material/edlp/comp/ce-sf-68.dat +159 -0
  480. gecatsim/material/edlp/comp/ce-sf-69.dat +164 -0
  481. gecatsim/material/edlp/comp/ce-sf-7.dat +174 -0
  482. gecatsim/material/edlp/comp/ce-sf-70.dat +169 -0
  483. gecatsim/material/edlp/comp/ce-sf-71.dat +162 -0
  484. gecatsim/material/edlp/comp/ce-sf-72.dat +163 -0
  485. gecatsim/material/edlp/comp/ce-sf-73.dat +165 -0
  486. gecatsim/material/edlp/comp/ce-sf-74.dat +164 -0
  487. gecatsim/material/edlp/comp/ce-sf-75.dat +161 -0
  488. gecatsim/material/edlp/comp/ce-sf-76.dat +155 -0
  489. gecatsim/material/edlp/comp/ce-sf-77.dat +152 -0
  490. gecatsim/material/edlp/comp/ce-sf-78.dat +150 -0
  491. gecatsim/material/edlp/comp/ce-sf-79.dat +148 -0
  492. gecatsim/material/edlp/comp/ce-sf-8.dat +176 -0
  493. gecatsim/material/edlp/comp/ce-sf-80.dat +153 -0
  494. gecatsim/material/edlp/comp/ce-sf-81.dat +158 -0
  495. gecatsim/material/edlp/comp/ce-sf-82.dat +154 -0
  496. gecatsim/material/edlp/comp/ce-sf-83.dat +159 -0
  497. gecatsim/material/edlp/comp/ce-sf-84.dat +156 -0
  498. gecatsim/material/edlp/comp/ce-sf-85.dat +162 -0
  499. gecatsim/material/edlp/comp/ce-sf-86.dat +154 -0
  500. gecatsim/material/edlp/comp/ce-sf-87.dat +154 -0
  501. gecatsim/material/edlp/comp/ce-sf-88.dat +153 -0
  502. gecatsim/material/edlp/comp/ce-sf-89.dat +151 -0
  503. gecatsim/material/edlp/comp/ce-sf-9.dat +184 -0
  504. gecatsim/material/edlp/comp/ce-sf-90.dat +153 -0
  505. gecatsim/material/edlp/comp/ce-sf-91.dat +151 -0
  506. gecatsim/material/edlp/comp/ce-sf-92.dat +157 -0
  507. gecatsim/material/edlp/comp/ce-sf-93.dat +152 -0
  508. gecatsim/material/edlp/comp/ce-sf-94.dat +154 -0
  509. gecatsim/material/edlp/comp/ce-sf-95.dat +151 -0
  510. gecatsim/material/edlp/comp/ce-sf-96.dat +151 -0
  511. gecatsim/material/edlp/comp/ce-sf-97.dat +150 -0
  512. gecatsim/material/edlp/comp/ce-sf-98.dat +152 -0
  513. gecatsim/material/edlp/comp/ce-sf-99.dat +152 -0
  514. gecatsim/material/edlp/comp/ce-sf-all.dat +0 -0
  515. gecatsim/material/edlp/pair/pp-cs-1.dat +96 -0
  516. gecatsim/material/edlp/pair/pp-cs-10.dat +110 -0
  517. gecatsim/material/edlp/pair/pp-cs-100.dat +126 -0
  518. gecatsim/material/edlp/pair/pp-cs-11.dat +112 -0
  519. gecatsim/material/edlp/pair/pp-cs-12.dat +111 -0
  520. gecatsim/material/edlp/pair/pp-cs-13.dat +112 -0
  521. gecatsim/material/edlp/pair/pp-cs-14.dat +113 -0
  522. gecatsim/material/edlp/pair/pp-cs-15.dat +113 -0
  523. gecatsim/material/edlp/pair/pp-cs-16.dat +114 -0
  524. gecatsim/material/edlp/pair/pp-cs-17.dat +112 -0
  525. gecatsim/material/edlp/pair/pp-cs-18.dat +113 -0
  526. gecatsim/material/edlp/pair/pp-cs-19.dat +113 -0
  527. gecatsim/material/edlp/pair/pp-cs-2.dat +100 -0
  528. gecatsim/material/edlp/pair/pp-cs-20.dat +114 -0
  529. gecatsim/material/edlp/pair/pp-cs-21.dat +115 -0
  530. gecatsim/material/edlp/pair/pp-cs-22.dat +115 -0
  531. gecatsim/material/edlp/pair/pp-cs-23.dat +116 -0
  532. gecatsim/material/edlp/pair/pp-cs-24.dat +115 -0
  533. gecatsim/material/edlp/pair/pp-cs-25.dat +115 -0
  534. gecatsim/material/edlp/pair/pp-cs-26.dat +116 -0
  535. gecatsim/material/edlp/pair/pp-cs-27.dat +117 -0
  536. gecatsim/material/edlp/pair/pp-cs-28.dat +117 -0
  537. gecatsim/material/edlp/pair/pp-cs-29.dat +117 -0
  538. gecatsim/material/edlp/pair/pp-cs-3.dat +104 -0
  539. gecatsim/material/edlp/pair/pp-cs-30.dat +117 -0
  540. gecatsim/material/edlp/pair/pp-cs-31.dat +118 -0
  541. gecatsim/material/edlp/pair/pp-cs-32.dat +118 -0
  542. gecatsim/material/edlp/pair/pp-cs-33.dat +118 -0
  543. gecatsim/material/edlp/pair/pp-cs-34.dat +119 -0
  544. gecatsim/material/edlp/pair/pp-cs-35.dat +119 -0
  545. gecatsim/material/edlp/pair/pp-cs-36.dat +119 -0
  546. gecatsim/material/edlp/pair/pp-cs-37.dat +118 -0
  547. gecatsim/material/edlp/pair/pp-cs-38.dat +119 -0
  548. gecatsim/material/edlp/pair/pp-cs-39.dat +119 -0
  549. gecatsim/material/edlp/pair/pp-cs-4.dat +105 -0
  550. gecatsim/material/edlp/pair/pp-cs-40.dat +119 -0
  551. gecatsim/material/edlp/pair/pp-cs-41.dat +119 -0
  552. gecatsim/material/edlp/pair/pp-cs-42.dat +119 -0
  553. gecatsim/material/edlp/pair/pp-cs-43.dat +119 -0
  554. gecatsim/material/edlp/pair/pp-cs-44.dat +119 -0
  555. gecatsim/material/edlp/pair/pp-cs-45.dat +119 -0
  556. gecatsim/material/edlp/pair/pp-cs-46.dat +119 -0
  557. gecatsim/material/edlp/pair/pp-cs-47.dat +120 -0
  558. gecatsim/material/edlp/pair/pp-cs-48.dat +120 -0
  559. gecatsim/material/edlp/pair/pp-cs-49.dat +120 -0
  560. gecatsim/material/edlp/pair/pp-cs-5.dat +106 -0
  561. gecatsim/material/edlp/pair/pp-cs-50.dat +120 -0
  562. gecatsim/material/edlp/pair/pp-cs-51.dat +120 -0
  563. gecatsim/material/edlp/pair/pp-cs-52.dat +120 -0
  564. gecatsim/material/edlp/pair/pp-cs-53.dat +121 -0
  565. gecatsim/material/edlp/pair/pp-cs-54.dat +121 -0
  566. gecatsim/material/edlp/pair/pp-cs-55.dat +121 -0
  567. gecatsim/material/edlp/pair/pp-cs-56.dat +121 -0
  568. gecatsim/material/edlp/pair/pp-cs-57.dat +122 -0
  569. gecatsim/material/edlp/pair/pp-cs-58.dat +122 -0
  570. gecatsim/material/edlp/pair/pp-cs-59.dat +122 -0
  571. gecatsim/material/edlp/pair/pp-cs-6.dat +107 -0
  572. gecatsim/material/edlp/pair/pp-cs-60.dat +122 -0
  573. gecatsim/material/edlp/pair/pp-cs-61.dat +122 -0
  574. gecatsim/material/edlp/pair/pp-cs-62.dat +123 -0
  575. gecatsim/material/edlp/pair/pp-cs-63.dat +123 -0
  576. gecatsim/material/edlp/pair/pp-cs-64.dat +123 -0
  577. gecatsim/material/edlp/pair/pp-cs-65.dat +124 -0
  578. gecatsim/material/edlp/pair/pp-cs-66.dat +124 -0
  579. gecatsim/material/edlp/pair/pp-cs-67.dat +124 -0
  580. gecatsim/material/edlp/pair/pp-cs-68.dat +124 -0
  581. gecatsim/material/edlp/pair/pp-cs-69.dat +124 -0
  582. gecatsim/material/edlp/pair/pp-cs-7.dat +108 -0
  583. gecatsim/material/edlp/pair/pp-cs-70.dat +124 -0
  584. gecatsim/material/edlp/pair/pp-cs-71.dat +124 -0
  585. gecatsim/material/edlp/pair/pp-cs-72.dat +124 -0
  586. gecatsim/material/edlp/pair/pp-cs-73.dat +125 -0
  587. gecatsim/material/edlp/pair/pp-cs-74.dat +125 -0
  588. gecatsim/material/edlp/pair/pp-cs-75.dat +126 -0
  589. gecatsim/material/edlp/pair/pp-cs-76.dat +126 -0
  590. gecatsim/material/edlp/pair/pp-cs-77.dat +126 -0
  591. gecatsim/material/edlp/pair/pp-cs-78.dat +125 -0
  592. gecatsim/material/edlp/pair/pp-cs-79.dat +125 -0
  593. gecatsim/material/edlp/pair/pp-cs-8.dat +109 -0
  594. gecatsim/material/edlp/pair/pp-cs-80.dat +125 -0
  595. gecatsim/material/edlp/pair/pp-cs-81.dat +126 -0
  596. gecatsim/material/edlp/pair/pp-cs-82.dat +126 -0
  597. gecatsim/material/edlp/pair/pp-cs-83.dat +126 -0
  598. gecatsim/material/edlp/pair/pp-cs-84.dat +126 -0
  599. gecatsim/material/edlp/pair/pp-cs-85.dat +126 -0
  600. gecatsim/material/edlp/pair/pp-cs-86.dat +126 -0
  601. gecatsim/material/edlp/pair/pp-cs-87.dat +126 -0
  602. gecatsim/material/edlp/pair/pp-cs-88.dat +126 -0
  603. gecatsim/material/edlp/pair/pp-cs-89.dat +127 -0
  604. gecatsim/material/edlp/pair/pp-cs-9.dat +109 -0
  605. gecatsim/material/edlp/pair/pp-cs-90.dat +127 -0
  606. gecatsim/material/edlp/pair/pp-cs-91.dat +127 -0
  607. gecatsim/material/edlp/pair/pp-cs-92.dat +127 -0
  608. gecatsim/material/edlp/pair/pp-cs-93.dat +127 -0
  609. gecatsim/material/edlp/pair/pp-cs-94.dat +126 -0
  610. gecatsim/material/edlp/pair/pp-cs-95.dat +126 -0
  611. gecatsim/material/edlp/pair/pp-cs-96.dat +126 -0
  612. gecatsim/material/edlp/pair/pp-cs-97.dat +126 -0
  613. gecatsim/material/edlp/pair/pp-cs-98.dat +126 -0
  614. gecatsim/material/edlp/pair/pp-cs-99.dat +126 -0
  615. gecatsim/material/edlp/pair/pp-cs-all.dat +0 -0
  616. gecatsim/material/edlp/phot/pe-cs-1.dat +87 -0
  617. gecatsim/material/edlp/phot/pe-cs-10.dat +388 -0
  618. gecatsim/material/edlp/phot/pe-cs-100.dat +1513 -0
  619. gecatsim/material/edlp/phot/pe-cs-11.dat +603 -0
  620. gecatsim/material/edlp/phot/pe-cs-12.dat +535 -0
  621. gecatsim/material/edlp/phot/pe-cs-13.dat +819 -0
  622. gecatsim/material/edlp/phot/pe-cs-14.dat +759 -0
  623. gecatsim/material/edlp/phot/pe-cs-15.dat +663 -0
  624. gecatsim/material/edlp/phot/pe-cs-16.dat +659 -0
  625. gecatsim/material/edlp/phot/pe-cs-17.dat +701 -0
  626. gecatsim/material/edlp/phot/pe-cs-18.dat +651 -0
  627. gecatsim/material/edlp/phot/pe-cs-19.dat +795 -0
  628. gecatsim/material/edlp/phot/pe-cs-2.dat +97 -0
  629. gecatsim/material/edlp/phot/pe-cs-20.dat +765 -0
  630. gecatsim/material/edlp/phot/pe-cs-21.dat +912 -0
  631. gecatsim/material/edlp/phot/pe-cs-22.dat +948 -0
  632. gecatsim/material/edlp/phot/pe-cs-23.dat +944 -0
  633. gecatsim/material/edlp/phot/pe-cs-24.dat +904 -0
  634. gecatsim/material/edlp/phot/pe-cs-25.dat +905 -0
  635. gecatsim/material/edlp/phot/pe-cs-26.dat +923 -0
  636. gecatsim/material/edlp/phot/pe-cs-27.dat +863 -0
  637. gecatsim/material/edlp/phot/pe-cs-28.dat +931 -0
  638. gecatsim/material/edlp/phot/pe-cs-29.dat +883 -0
  639. gecatsim/material/edlp/phot/pe-cs-3.dat +193 -0
  640. gecatsim/material/edlp/phot/pe-cs-30.dat +883 -0
  641. gecatsim/material/edlp/phot/pe-cs-31.dat +1018 -0
  642. gecatsim/material/edlp/phot/pe-cs-32.dat +1039 -0
  643. gecatsim/material/edlp/phot/pe-cs-33.dat +980 -0
  644. gecatsim/material/edlp/phot/pe-cs-34.dat +973 -0
  645. gecatsim/material/edlp/phot/pe-cs-35.dat +996 -0
  646. gecatsim/material/edlp/phot/pe-cs-36.dat +981 -0
  647. gecatsim/material/edlp/phot/pe-cs-37.dat +1047 -0
  648. gecatsim/material/edlp/phot/pe-cs-38.dat +975 -0
  649. gecatsim/material/edlp/phot/pe-cs-39.dat +1181 -0
  650. gecatsim/material/edlp/phot/pe-cs-4.dat +188 -0
  651. gecatsim/material/edlp/phot/pe-cs-40.dat +1169 -0
  652. gecatsim/material/edlp/phot/pe-cs-41.dat +1202 -0
  653. gecatsim/material/edlp/phot/pe-cs-42.dat +1181 -0
  654. gecatsim/material/edlp/phot/pe-cs-43.dat +1192 -0
  655. gecatsim/material/edlp/phot/pe-cs-44.dat +1217 -0
  656. gecatsim/material/edlp/phot/pe-cs-45.dat +1218 -0
  657. gecatsim/material/edlp/phot/pe-cs-46.dat +1070 -0
  658. gecatsim/material/edlp/phot/pe-cs-47.dat +1209 -0
  659. gecatsim/material/edlp/phot/pe-cs-48.dat +1202 -0
  660. gecatsim/material/edlp/phot/pe-cs-49.dat +1334 -0
  661. gecatsim/material/edlp/phot/pe-cs-5.dat +365 -0
  662. gecatsim/material/edlp/phot/pe-cs-50.dat +1234 -0
  663. gecatsim/material/edlp/phot/pe-cs-51.dat +1262 -0
  664. gecatsim/material/edlp/phot/pe-cs-52.dat +1166 -0
  665. gecatsim/material/edlp/phot/pe-cs-53.dat +1224 -0
  666. gecatsim/material/edlp/phot/pe-cs-54.dat +1139 -0
  667. gecatsim/material/edlp/phot/pe-cs-55.dat +1117 -0
  668. gecatsim/material/edlp/phot/pe-cs-56.dat +1068 -0
  669. gecatsim/material/edlp/phot/pe-cs-57.dat +1213 -0
  670. gecatsim/material/edlp/phot/pe-cs-58.dat +1230 -0
  671. gecatsim/material/edlp/phot/pe-cs-59.dat +1173 -0
  672. gecatsim/material/edlp/phot/pe-cs-6.dat +369 -0
  673. gecatsim/material/edlp/phot/pe-cs-60.dat +1237 -0
  674. gecatsim/material/edlp/phot/pe-cs-61.dat +1196 -0
  675. gecatsim/material/edlp/phot/pe-cs-62.dat +1210 -0
  676. gecatsim/material/edlp/phot/pe-cs-63.dat +1167 -0
  677. gecatsim/material/edlp/phot/pe-cs-64.dat +1309 -0
  678. gecatsim/material/edlp/phot/pe-cs-65.dat +1140 -0
  679. gecatsim/material/edlp/phot/pe-cs-66.dat +1172 -0
  680. gecatsim/material/edlp/phot/pe-cs-67.dat +1175 -0
  681. gecatsim/material/edlp/phot/pe-cs-68.dat +1168 -0
  682. gecatsim/material/edlp/phot/pe-cs-69.dat +1222 -0
  683. gecatsim/material/edlp/phot/pe-cs-7.dat +367 -0
  684. gecatsim/material/edlp/phot/pe-cs-70.dat +1217 -0
  685. gecatsim/material/edlp/phot/pe-cs-71.dat +1341 -0
  686. gecatsim/material/edlp/phot/pe-cs-72.dat +1317 -0
  687. gecatsim/material/edlp/phot/pe-cs-73.dat +1270 -0
  688. gecatsim/material/edlp/phot/pe-cs-74.dat +1295 -0
  689. gecatsim/material/edlp/phot/pe-cs-75.dat +1257 -0
  690. gecatsim/material/edlp/phot/pe-cs-76.dat +1295 -0
  691. gecatsim/material/edlp/phot/pe-cs-77.dat +1196 -0
  692. gecatsim/material/edlp/phot/pe-cs-78.dat +1198 -0
  693. gecatsim/material/edlp/phot/pe-cs-79.dat +1276 -0
  694. gecatsim/material/edlp/phot/pe-cs-8.dat +396 -0
  695. gecatsim/material/edlp/phot/pe-cs-80.dat +1205 -0
  696. gecatsim/material/edlp/phot/pe-cs-81.dat +1380 -0
  697. gecatsim/material/edlp/phot/pe-cs-82.dat +1355 -0
  698. gecatsim/material/edlp/phot/pe-cs-83.dat +1386 -0
  699. gecatsim/material/edlp/phot/pe-cs-84.dat +1366 -0
  700. gecatsim/material/edlp/phot/pe-cs-85.dat +1379 -0
  701. gecatsim/material/edlp/phot/pe-cs-86.dat +1342 -0
  702. gecatsim/material/edlp/phot/pe-cs-87.dat +1390 -0
  703. gecatsim/material/edlp/phot/pe-cs-88.dat +1248 -0
  704. gecatsim/material/edlp/phot/pe-cs-89.dat +1288 -0
  705. gecatsim/material/edlp/phot/pe-cs-9.dat +384 -0
  706. gecatsim/material/edlp/phot/pe-cs-90.dat +1400 -0
  707. gecatsim/material/edlp/phot/pe-cs-91.dat +1517 -0
  708. gecatsim/material/edlp/phot/pe-cs-92.dat +1571 -0
  709. gecatsim/material/edlp/phot/pe-cs-93.dat +1602 -0
  710. gecatsim/material/edlp/phot/pe-cs-94.dat +1432 -0
  711. gecatsim/material/edlp/phot/pe-cs-95.dat +1456 -0
  712. gecatsim/material/edlp/phot/pe-cs-96.dat +1494 -0
  713. gecatsim/material/edlp/phot/pe-cs-97.dat +1522 -0
  714. gecatsim/material/edlp/phot/pe-cs-98.dat +1498 -0
  715. gecatsim/material/edlp/phot/pe-cs-99.dat +1573 -0
  716. gecatsim/material/edlp/phot/pe-cs-all.dat +0 -0
  717. gecatsim/material/edlp/phot/pe-ss-cs-1.dat +88 -0
  718. gecatsim/material/edlp/phot/pe-ss-cs-10.dat +474 -0
  719. gecatsim/material/edlp/phot/pe-ss-cs-100.dat +2821 -0
  720. gecatsim/material/edlp/phot/pe-ss-cs-11.dat +717 -0
  721. gecatsim/material/edlp/phot/pe-ss-cs-12.dat +693 -0
  722. gecatsim/material/edlp/phot/pe-ss-cs-13.dat +978 -0
  723. gecatsim/material/edlp/phot/pe-ss-cs-14.dat +941 -0
  724. gecatsim/material/edlp/phot/pe-ss-cs-15.dat +884 -0
  725. gecatsim/material/edlp/phot/pe-ss-cs-16.dat +861 -0
  726. gecatsim/material/edlp/phot/pe-ss-cs-17.dat +870 -0
  727. gecatsim/material/edlp/phot/pe-ss-cs-18.dat +853 -0
  728. gecatsim/material/edlp/phot/pe-ss-cs-19.dat +993 -0
  729. gecatsim/material/edlp/phot/pe-ss-cs-2.dat +98 -0
  730. gecatsim/material/edlp/phot/pe-ss-cs-20.dat +959 -0
  731. gecatsim/material/edlp/phot/pe-ss-cs-21.dat +1233 -0
  732. gecatsim/material/edlp/phot/pe-ss-cs-22.dat +1227 -0
  733. gecatsim/material/edlp/phot/pe-ss-cs-23.dat +1225 -0
  734. gecatsim/material/edlp/phot/pe-ss-cs-24.dat +1250 -0
  735. gecatsim/material/edlp/phot/pe-ss-cs-25.dat +1209 -0
  736. gecatsim/material/edlp/phot/pe-ss-cs-26.dat +1209 -0
  737. gecatsim/material/edlp/phot/pe-ss-cs-27.dat +1200 -0
  738. gecatsim/material/edlp/phot/pe-ss-cs-28.dat +1198 -0
  739. gecatsim/material/edlp/phot/pe-ss-cs-29.dat +1204 -0
  740. gecatsim/material/edlp/phot/pe-ss-cs-3.dat +207 -0
  741. gecatsim/material/edlp/phot/pe-ss-cs-30.dat +1199 -0
  742. gecatsim/material/edlp/phot/pe-ss-cs-31.dat +1471 -0
  743. gecatsim/material/edlp/phot/pe-ss-cs-32.dat +1456 -0
  744. gecatsim/material/edlp/phot/pe-ss-cs-33.dat +1419 -0
  745. gecatsim/material/edlp/phot/pe-ss-cs-34.dat +1425 -0
  746. gecatsim/material/edlp/phot/pe-ss-cs-35.dat +1392 -0
  747. gecatsim/material/edlp/phot/pe-ss-cs-36.dat +1395 -0
  748. gecatsim/material/edlp/phot/pe-ss-cs-37.dat +1460 -0
  749. gecatsim/material/edlp/phot/pe-ss-cs-38.dat +1407 -0
  750. gecatsim/material/edlp/phot/pe-ss-cs-39.dat +1819 -0
  751. gecatsim/material/edlp/phot/pe-ss-cs-4.dat +211 -0
  752. gecatsim/material/edlp/phot/pe-ss-cs-40.dat +1807 -0
  753. gecatsim/material/edlp/phot/pe-ss-cs-41.dat +1811 -0
  754. gecatsim/material/edlp/phot/pe-ss-cs-42.dat +1818 -0
  755. gecatsim/material/edlp/phot/pe-ss-cs-43.dat +1792 -0
  756. gecatsim/material/edlp/phot/pe-ss-cs-44.dat +1781 -0
  757. gecatsim/material/edlp/phot/pe-ss-cs-45.dat +1788 -0
  758. gecatsim/material/edlp/phot/pe-ss-cs-46.dat +1611 -0
  759. gecatsim/material/edlp/phot/pe-ss-cs-47.dat +1771 -0
  760. gecatsim/material/edlp/phot/pe-ss-cs-48.dat +1782 -0
  761. gecatsim/material/edlp/phot/pe-ss-cs-49.dat +2033 -0
  762. gecatsim/material/edlp/phot/pe-ss-cs-5.dat +431 -0
  763. gecatsim/material/edlp/phot/pe-ss-cs-50.dat +1943 -0
  764. gecatsim/material/edlp/phot/pe-ss-cs-51.dat +1918 -0
  765. gecatsim/material/edlp/phot/pe-ss-cs-52.dat +1879 -0
  766. gecatsim/material/edlp/phot/pe-ss-cs-53.dat +1861 -0
  767. gecatsim/material/edlp/phot/pe-ss-cs-54.dat +1782 -0
  768. gecatsim/material/edlp/phot/pe-ss-cs-55.dat +1855 -0
  769. gecatsim/material/edlp/phot/pe-ss-cs-56.dat +1813 -0
  770. gecatsim/material/edlp/phot/pe-ss-cs-57.dat +2144 -0
  771. gecatsim/material/edlp/phot/pe-ss-cs-58.dat +2090 -0
  772. gecatsim/material/edlp/phot/pe-ss-cs-59.dat +2071 -0
  773. gecatsim/material/edlp/phot/pe-ss-cs-6.dat +436 -0
  774. gecatsim/material/edlp/phot/pe-ss-cs-60.dat +2066 -0
  775. gecatsim/material/edlp/phot/pe-ss-cs-61.dat +2064 -0
  776. gecatsim/material/edlp/phot/pe-ss-cs-62.dat +2063 -0
  777. gecatsim/material/edlp/phot/pe-ss-cs-63.dat +2043 -0
  778. gecatsim/material/edlp/phot/pe-ss-cs-64.dat +2405 -0
  779. gecatsim/material/edlp/phot/pe-ss-cs-65.dat +2035 -0
  780. gecatsim/material/edlp/phot/pe-ss-cs-66.dat +2023 -0
  781. gecatsim/material/edlp/phot/pe-ss-cs-67.dat +2026 -0
  782. gecatsim/material/edlp/phot/pe-ss-cs-68.dat +2029 -0
  783. gecatsim/material/edlp/phot/pe-ss-cs-69.dat +2018 -0
  784. gecatsim/material/edlp/phot/pe-ss-cs-7.dat +440 -0
  785. gecatsim/material/edlp/phot/pe-ss-cs-70.dat +2048 -0
  786. gecatsim/material/edlp/phot/pe-ss-cs-71.dat +2348 -0
  787. gecatsim/material/edlp/phot/pe-ss-cs-72.dat +2333 -0
  788. gecatsim/material/edlp/phot/pe-ss-cs-73.dat +2320 -0
  789. gecatsim/material/edlp/phot/pe-ss-cs-74.dat +2313 -0
  790. gecatsim/material/edlp/phot/pe-ss-cs-75.dat +2290 -0
  791. gecatsim/material/edlp/phot/pe-ss-cs-76.dat +2280 -0
  792. gecatsim/material/edlp/phot/pe-ss-cs-77.dat +2145 -0
  793. gecatsim/material/edlp/phot/pe-ss-cs-78.dat +2268 -0
  794. gecatsim/material/edlp/phot/pe-ss-cs-79.dat +2262 -0
  795. gecatsim/material/edlp/phot/pe-ss-cs-8.dat +445 -0
  796. gecatsim/material/edlp/phot/pe-ss-cs-80.dat +2271 -0
  797. gecatsim/material/edlp/phot/pe-ss-cs-81.dat +2497 -0
  798. gecatsim/material/edlp/phot/pe-ss-cs-82.dat +2494 -0
  799. gecatsim/material/edlp/phot/pe-ss-cs-83.dat +2467 -0
  800. gecatsim/material/edlp/phot/pe-ss-cs-84.dat +2453 -0
  801. gecatsim/material/edlp/phot/pe-ss-cs-85.dat +2423 -0
  802. gecatsim/material/edlp/phot/pe-ss-cs-86.dat +2379 -0
  803. gecatsim/material/edlp/phot/pe-ss-cs-87.dat +2451 -0
  804. gecatsim/material/edlp/phot/pe-ss-cs-88.dat +2367 -0
  805. gecatsim/material/edlp/phot/pe-ss-cs-89.dat +2696 -0
  806. gecatsim/material/edlp/phot/pe-ss-cs-9.dat +457 -0
  807. gecatsim/material/edlp/phot/pe-ss-cs-90.dat +2694 -0
  808. gecatsim/material/edlp/phot/pe-ss-cs-91.dat +3131 -0
  809. gecatsim/material/edlp/phot/pe-ss-cs-92.dat +3130 -0
  810. gecatsim/material/edlp/phot/pe-ss-cs-93.dat +3142 -0
  811. gecatsim/material/edlp/phot/pe-ss-cs-94.dat +2794 -0
  812. gecatsim/material/edlp/phot/pe-ss-cs-95.dat +2810 -0
  813. gecatsim/material/edlp/phot/pe-ss-cs-96.dat +3103 -0
  814. gecatsim/material/edlp/phot/pe-ss-cs-97.dat +3126 -0
  815. gecatsim/material/edlp/phot/pe-ss-cs-98.dat +2835 -0
  816. gecatsim/material/edlp/phot/pe-ss-cs-99.dat +2851 -0
  817. gecatsim/material/edlp/rayl/re-cs-1.dat +375 -0
  818. gecatsim/material/edlp/rayl/re-cs-10.dat +453 -0
  819. gecatsim/material/edlp/rayl/re-cs-100.dat +1555 -0
  820. gecatsim/material/edlp/rayl/re-cs-11.dat +607 -0
  821. gecatsim/material/edlp/rayl/re-cs-12.dat +561 -0
  822. gecatsim/material/edlp/rayl/re-cs-13.dat +903 -0
  823. gecatsim/material/edlp/rayl/re-cs-14.dat +830 -0
  824. gecatsim/material/edlp/rayl/re-cs-15.dat +745 -0
  825. gecatsim/material/edlp/rayl/re-cs-16.dat +698 -0
  826. gecatsim/material/edlp/rayl/re-cs-17.dat +666 -0
  827. gecatsim/material/edlp/rayl/re-cs-18.dat +597 -0
  828. gecatsim/material/edlp/rayl/re-cs-19.dat +760 -0
  829. gecatsim/material/edlp/rayl/re-cs-2.dat +343 -0
  830. gecatsim/material/edlp/rayl/re-cs-20.dat +796 -0
  831. gecatsim/material/edlp/rayl/re-cs-21.dat +869 -0
  832. gecatsim/material/edlp/rayl/re-cs-22.dat +869 -0
  833. gecatsim/material/edlp/rayl/re-cs-23.dat +839 -0
  834. gecatsim/material/edlp/rayl/re-cs-24.dat +826 -0
  835. gecatsim/material/edlp/rayl/re-cs-25.dat +914 -0
  836. gecatsim/material/edlp/rayl/re-cs-26.dat +913 -0
  837. gecatsim/material/edlp/rayl/re-cs-27.dat +901 -0
  838. gecatsim/material/edlp/rayl/re-cs-28.dat +888 -0
  839. gecatsim/material/edlp/rayl/re-cs-29.dat +844 -0
  840. gecatsim/material/edlp/rayl/re-cs-3.dat +517 -0
  841. gecatsim/material/edlp/rayl/re-cs-30.dat +801 -0
  842. gecatsim/material/edlp/rayl/re-cs-31.dat +1202 -0
  843. gecatsim/material/edlp/rayl/re-cs-32.dat +1113 -0
  844. gecatsim/material/edlp/rayl/re-cs-33.dat +1010 -0
  845. gecatsim/material/edlp/rayl/re-cs-34.dat +928 -0
  846. gecatsim/material/edlp/rayl/re-cs-35.dat +894 -0
  847. gecatsim/material/edlp/rayl/re-cs-36.dat +719 -0
  848. gecatsim/material/edlp/rayl/re-cs-37.dat +892 -0
  849. gecatsim/material/edlp/rayl/re-cs-38.dat +891 -0
  850. gecatsim/material/edlp/rayl/re-cs-39.dat +906 -0
  851. gecatsim/material/edlp/rayl/re-cs-4.dat +493 -0
  852. gecatsim/material/edlp/rayl/re-cs-40.dat +930 -0
  853. gecatsim/material/edlp/rayl/re-cs-41.dat +918 -0
  854. gecatsim/material/edlp/rayl/re-cs-42.dat +1068 -0
  855. gecatsim/material/edlp/rayl/re-cs-43.dat +1085 -0
  856. gecatsim/material/edlp/rayl/re-cs-44.dat +1085 -0
  857. gecatsim/material/edlp/rayl/re-cs-45.dat +1124 -0
  858. gecatsim/material/edlp/rayl/re-cs-46.dat +853 -0
  859. gecatsim/material/edlp/rayl/re-cs-47.dat +1087 -0
  860. gecatsim/material/edlp/rayl/re-cs-48.dat +1001 -0
  861. gecatsim/material/edlp/rayl/re-cs-49.dat +1508 -0
  862. gecatsim/material/edlp/rayl/re-cs-5.dat +619 -0
  863. gecatsim/material/edlp/rayl/re-cs-50.dat +1370 -0
  864. gecatsim/material/edlp/rayl/re-cs-51.dat +1234 -0
  865. gecatsim/material/edlp/rayl/re-cs-52.dat +1138 -0
  866. gecatsim/material/edlp/rayl/re-cs-53.dat +1062 -0
  867. gecatsim/material/edlp/rayl/re-cs-54.dat +925 -0
  868. gecatsim/material/edlp/rayl/re-cs-55.dat +1130 -0
  869. gecatsim/material/edlp/rayl/re-cs-56.dat +1176 -0
  870. gecatsim/material/edlp/rayl/re-cs-57.dat +1172 -0
  871. gecatsim/material/edlp/rayl/re-cs-58.dat +1243 -0
  872. gecatsim/material/edlp/rayl/re-cs-59.dat +1232 -0
  873. gecatsim/material/edlp/rayl/re-cs-6.dat +647 -0
  874. gecatsim/material/edlp/rayl/re-cs-60.dat +1195 -0
  875. gecatsim/material/edlp/rayl/re-cs-61.dat +1229 -0
  876. gecatsim/material/edlp/rayl/re-cs-62.dat +1297 -0
  877. gecatsim/material/edlp/rayl/re-cs-63.dat +1324 -0
  878. gecatsim/material/edlp/rayl/re-cs-64.dat +1384 -0
  879. gecatsim/material/edlp/rayl/re-cs-65.dat +1356 -0
  880. gecatsim/material/edlp/rayl/re-cs-66.dat +1401 -0
  881. gecatsim/material/edlp/rayl/re-cs-67.dat +1374 -0
  882. gecatsim/material/edlp/rayl/re-cs-68.dat +1264 -0
  883. gecatsim/material/edlp/rayl/re-cs-69.dat +1327 -0
  884. gecatsim/material/edlp/rayl/re-cs-7.dat +669 -0
  885. gecatsim/material/edlp/rayl/re-cs-70.dat +1243 -0
  886. gecatsim/material/edlp/rayl/re-cs-71.dat +1384 -0
  887. gecatsim/material/edlp/rayl/re-cs-72.dat +1338 -0
  888. gecatsim/material/edlp/rayl/re-cs-73.dat +1181 -0
  889. gecatsim/material/edlp/rayl/re-cs-74.dat +1009 -0
  890. gecatsim/material/edlp/rayl/re-cs-75.dat +1138 -0
  891. gecatsim/material/edlp/rayl/re-cs-76.dat +1106 -0
  892. gecatsim/material/edlp/rayl/re-cs-77.dat +1040 -0
  893. gecatsim/material/edlp/rayl/re-cs-78.dat +1176 -0
  894. gecatsim/material/edlp/rayl/re-cs-79.dat +1123 -0
  895. gecatsim/material/edlp/rayl/re-cs-8.dat +662 -0
  896. gecatsim/material/edlp/rayl/re-cs-80.dat +1126 -0
  897. gecatsim/material/edlp/rayl/re-cs-81.dat +1668 -0
  898. gecatsim/material/edlp/rayl/re-cs-82.dat +1641 -0
  899. gecatsim/material/edlp/rayl/re-cs-83.dat +1448 -0
  900. gecatsim/material/edlp/rayl/re-cs-84.dat +1338 -0
  901. gecatsim/material/edlp/rayl/re-cs-85.dat +1236 -0
  902. gecatsim/material/edlp/rayl/re-cs-86.dat +1099 -0
  903. gecatsim/material/edlp/rayl/re-cs-87.dat +1368 -0
  904. gecatsim/material/edlp/rayl/re-cs-88.dat +1448 -0
  905. gecatsim/material/edlp/rayl/re-cs-89.dat +1592 -0
  906. gecatsim/material/edlp/rayl/re-cs-9.dat +584 -0
  907. gecatsim/material/edlp/rayl/re-cs-90.dat +1504 -0
  908. gecatsim/material/edlp/rayl/re-cs-91.dat +1547 -0
  909. gecatsim/material/edlp/rayl/re-cs-92.dat +1633 -0
  910. gecatsim/material/edlp/rayl/re-cs-93.dat +1625 -0
  911. gecatsim/material/edlp/rayl/re-cs-94.dat +1427 -0
  912. gecatsim/material/edlp/rayl/re-cs-95.dat +1465 -0
  913. gecatsim/material/edlp/rayl/re-cs-96.dat +1794 -0
  914. gecatsim/material/edlp/rayl/re-cs-97.dat +1638 -0
  915. gecatsim/material/edlp/rayl/re-cs-98.dat +1554 -0
  916. gecatsim/material/edlp/rayl/re-cs-99.dat +1528 -0
  917. gecatsim/material/edlp/rayl/re-cs-all.dat +0 -0
  918. gecatsim/material/edlp/rayl/re-ff-1.dat +103 -0
  919. gecatsim/material/edlp/rayl/re-ff-10.dat +175 -0
  920. gecatsim/material/edlp/rayl/re-ff-100.dat +146 -0
  921. gecatsim/material/edlp/rayl/re-ff-11.dat +183 -0
  922. gecatsim/material/edlp/rayl/re-ff-12.dat +176 -0
  923. gecatsim/material/edlp/rayl/re-ff-13.dat +162 -0
  924. gecatsim/material/edlp/rayl/re-ff-14.dat +166 -0
  925. gecatsim/material/edlp/rayl/re-ff-15.dat +162 -0
  926. gecatsim/material/edlp/rayl/re-ff-16.dat +161 -0
  927. gecatsim/material/edlp/rayl/re-ff-17.dat +165 -0
  928. gecatsim/material/edlp/rayl/re-ff-18.dat +157 -0
  929. gecatsim/material/edlp/rayl/re-ff-19.dat +163 -0
  930. gecatsim/material/edlp/rayl/re-ff-2.dat +140 -0
  931. gecatsim/material/edlp/rayl/re-ff-20.dat +164 -0
  932. gecatsim/material/edlp/rayl/re-ff-21.dat +158 -0
  933. gecatsim/material/edlp/rayl/re-ff-22.dat +159 -0
  934. gecatsim/material/edlp/rayl/re-ff-23.dat +158 -0
  935. gecatsim/material/edlp/rayl/re-ff-24.dat +165 -0
  936. gecatsim/material/edlp/rayl/re-ff-25.dat +160 -0
  937. gecatsim/material/edlp/rayl/re-ff-26.dat +163 -0
  938. gecatsim/material/edlp/rayl/re-ff-27.dat +161 -0
  939. gecatsim/material/edlp/rayl/re-ff-28.dat +169 -0
  940. gecatsim/material/edlp/rayl/re-ff-29.dat +163 -0
  941. gecatsim/material/edlp/rayl/re-ff-3.dat +145 -0
  942. gecatsim/material/edlp/rayl/re-ff-30.dat +164 -0
  943. gecatsim/material/edlp/rayl/re-ff-31.dat +162 -0
  944. gecatsim/material/edlp/rayl/re-ff-32.dat +164 -0
  945. gecatsim/material/edlp/rayl/re-ff-33.dat +163 -0
  946. gecatsim/material/edlp/rayl/re-ff-34.dat +165 -0
  947. gecatsim/material/edlp/rayl/re-ff-35.dat +163 -0
  948. gecatsim/material/edlp/rayl/re-ff-36.dat +154 -0
  949. gecatsim/material/edlp/rayl/re-ff-37.dat +156 -0
  950. gecatsim/material/edlp/rayl/re-ff-38.dat +157 -0
  951. gecatsim/material/edlp/rayl/re-ff-39.dat +157 -0
  952. gecatsim/material/edlp/rayl/re-ff-4.dat +147 -0
  953. gecatsim/material/edlp/rayl/re-ff-40.dat +166 -0
  954. gecatsim/material/edlp/rayl/re-ff-41.dat +168 -0
  955. gecatsim/material/edlp/rayl/re-ff-42.dat +163 -0
  956. gecatsim/material/edlp/rayl/re-ff-43.dat +160 -0
  957. gecatsim/material/edlp/rayl/re-ff-44.dat +156 -0
  958. gecatsim/material/edlp/rayl/re-ff-45.dat +156 -0
  959. gecatsim/material/edlp/rayl/re-ff-46.dat +158 -0
  960. gecatsim/material/edlp/rayl/re-ff-47.dat +158 -0
  961. gecatsim/material/edlp/rayl/re-ff-48.dat +160 -0
  962. gecatsim/material/edlp/rayl/re-ff-49.dat +161 -0
  963. gecatsim/material/edlp/rayl/re-ff-5.dat +144 -0
  964. gecatsim/material/edlp/rayl/re-ff-50.dat +154 -0
  965. gecatsim/material/edlp/rayl/re-ff-51.dat +152 -0
  966. gecatsim/material/edlp/rayl/re-ff-52.dat +154 -0
  967. gecatsim/material/edlp/rayl/re-ff-53.dat +159 -0
  968. gecatsim/material/edlp/rayl/re-ff-54.dat +159 -0
  969. gecatsim/material/edlp/rayl/re-ff-55.dat +154 -0
  970. gecatsim/material/edlp/rayl/re-ff-56.dat +157 -0
  971. gecatsim/material/edlp/rayl/re-ff-57.dat +164 -0
  972. gecatsim/material/edlp/rayl/re-ff-58.dat +163 -0
  973. gecatsim/material/edlp/rayl/re-ff-59.dat +158 -0
  974. gecatsim/material/edlp/rayl/re-ff-6.dat +151 -0
  975. gecatsim/material/edlp/rayl/re-ff-60.dat +153 -0
  976. gecatsim/material/edlp/rayl/re-ff-61.dat +165 -0
  977. gecatsim/material/edlp/rayl/re-ff-62.dat +165 -0
  978. gecatsim/material/edlp/rayl/re-ff-63.dat +156 -0
  979. gecatsim/material/edlp/rayl/re-ff-64.dat +162 -0
  980. gecatsim/material/edlp/rayl/re-ff-65.dat +159 -0
  981. gecatsim/material/edlp/rayl/re-ff-66.dat +154 -0
  982. gecatsim/material/edlp/rayl/re-ff-67.dat +164 -0
  983. gecatsim/material/edlp/rayl/re-ff-68.dat +155 -0
  984. gecatsim/material/edlp/rayl/re-ff-69.dat +160 -0
  985. gecatsim/material/edlp/rayl/re-ff-7.dat +170 -0
  986. gecatsim/material/edlp/rayl/re-ff-70.dat +165 -0
  987. gecatsim/material/edlp/rayl/re-ff-71.dat +158 -0
  988. gecatsim/material/edlp/rayl/re-ff-72.dat +159 -0
  989. gecatsim/material/edlp/rayl/re-ff-73.dat +161 -0
  990. gecatsim/material/edlp/rayl/re-ff-74.dat +160 -0
  991. gecatsim/material/edlp/rayl/re-ff-75.dat +157 -0
  992. gecatsim/material/edlp/rayl/re-ff-76.dat +151 -0
  993. gecatsim/material/edlp/rayl/re-ff-77.dat +148 -0
  994. gecatsim/material/edlp/rayl/re-ff-78.dat +146 -0
  995. gecatsim/material/edlp/rayl/re-ff-79.dat +144 -0
  996. gecatsim/material/edlp/rayl/re-ff-8.dat +172 -0
  997. gecatsim/material/edlp/rayl/re-ff-80.dat +149 -0
  998. gecatsim/material/edlp/rayl/re-ff-81.dat +154 -0
  999. gecatsim/material/edlp/rayl/re-ff-82.dat +150 -0
  1000. gecatsim/material/edlp/rayl/re-ff-83.dat +155 -0
  1001. gecatsim/material/edlp/rayl/re-ff-84.dat +152 -0
  1002. gecatsim/material/edlp/rayl/re-ff-85.dat +158 -0
  1003. gecatsim/material/edlp/rayl/re-ff-86.dat +150 -0
  1004. gecatsim/material/edlp/rayl/re-ff-87.dat +150 -0
  1005. gecatsim/material/edlp/rayl/re-ff-88.dat +149 -0
  1006. gecatsim/material/edlp/rayl/re-ff-89.dat +147 -0
  1007. gecatsim/material/edlp/rayl/re-ff-9.dat +180 -0
  1008. gecatsim/material/edlp/rayl/re-ff-90.dat +149 -0
  1009. gecatsim/material/edlp/rayl/re-ff-91.dat +147 -0
  1010. gecatsim/material/edlp/rayl/re-ff-92.dat +153 -0
  1011. gecatsim/material/edlp/rayl/re-ff-93.dat +148 -0
  1012. gecatsim/material/edlp/rayl/re-ff-94.dat +150 -0
  1013. gecatsim/material/edlp/rayl/re-ff-95.dat +147 -0
  1014. gecatsim/material/edlp/rayl/re-ff-96.dat +147 -0
  1015. gecatsim/material/edlp/rayl/re-ff-97.dat +146 -0
  1016. gecatsim/material/edlp/rayl/re-ff-98.dat +148 -0
  1017. gecatsim/material/edlp/rayl/re-ff-99.dat +148 -0
  1018. gecatsim/material/edlp/rayl/re-ff-all.dat +0 -0
  1019. gecatsim/material/graphite +13 -0
  1020. gecatsim/material/ncat_adipose +19 -0
  1021. gecatsim/material/ncat_air +18 -0
  1022. gecatsim/material/ncat_aluminum +14 -0
  1023. gecatsim/material/ncat_bladder +23 -0
  1024. gecatsim/material/ncat_blood +24 -0
  1025. gecatsim/material/ncat_blood_with_0_7pct_iodine +25 -0
  1026. gecatsim/material/ncat_blood_with_0_8pct_iodine +25 -0
  1027. gecatsim/material/ncat_blood_with_0_9pct_iodine +25 -0
  1028. gecatsim/material/ncat_blood_with_1_0pct_iodine +25 -0
  1029. gecatsim/material/ncat_blood_with_1_1pct_iodine +25 -0
  1030. gecatsim/material/ncat_blood_with_2_0pct_iodine +25 -0
  1031. gecatsim/material/ncat_blood_with_3_0pct_iodine +25 -0
  1032. gecatsim/material/ncat_brain +23 -0
  1033. gecatsim/material/ncat_breast_mammary +22 -0
  1034. gecatsim/material/ncat_cartilage +22 -0
  1035. gecatsim/material/ncat_dry_rib +23 -0
  1036. gecatsim/material/ncat_dry_spine +24 -0
  1037. gecatsim/material/ncat_eye_lens +22 -0
  1038. gecatsim/material/ncat_graphite +14 -0
  1039. gecatsim/material/ncat_heart +23 -0
  1040. gecatsim/material/ncat_intestine +23 -0
  1041. gecatsim/material/ncat_iodine +14 -0
  1042. gecatsim/material/ncat_iodine_blood +25 -0
  1043. gecatsim/material/ncat_iron +14 -0
  1044. gecatsim/material/ncat_kidney +24 -0
  1045. gecatsim/material/ncat_lead +14 -0
  1046. gecatsim/material/ncat_liver +23 -0
  1047. gecatsim/material/ncat_lung +23 -0
  1048. gecatsim/material/ncat_lymph +21 -0
  1049. gecatsim/material/ncat_muscle +23 -0
  1050. gecatsim/material/ncat_ovary +23 -0
  1051. gecatsim/material/ncat_pancreas +23 -0
  1052. gecatsim/material/ncat_pmma +17 -0
  1053. gecatsim/material/ncat_red_marrow +23 -0
  1054. gecatsim/material/ncat_skin +23 -0
  1055. gecatsim/material/ncat_skull +23 -0
  1056. gecatsim/material/ncat_spleen +23 -0
  1057. gecatsim/material/ncat_testis +23 -0
  1058. gecatsim/material/ncat_thyroid +24 -0
  1059. gecatsim/material/ncat_titanium +14 -0
  1060. gecatsim/material/ncat_water +16 -0
  1061. gecatsim/material/ncat_yellow_marrow +21 -0
  1062. gecatsim/material/plexi +21 -0
  1063. gecatsim/material/polyethylene +14 -0
  1064. gecatsim/material/polyethylene_HDPE +16 -0
  1065. gecatsim/material/polyethylene_LDPE +16 -0
  1066. gecatsim/material/polyethylene_MDPE +16 -0
  1067. gecatsim/material/polyethylene_legacy +20 -0
  1068. gecatsim/material/polystyrene +18 -0
  1069. gecatsim/material/polystyrene_legacy +21 -0
  1070. gecatsim/material/pvc_legacy +22 -0
  1071. gecatsim/material/water +16 -0
  1072. gecatsim/material/water_20C +16 -0
  1073. gecatsim/material/water_20C_NaCl_0p9_pct +18 -0
  1074. gecatsim/material/water_20C_iodine_100mg +17 -0
  1075. gecatsim/material/water_20C_iodine_10mg +17 -0
  1076. gecatsim/material/water_20C_iodine_15mg +17 -0
  1077. gecatsim/material/water_20C_iodine_1mg +17 -0
  1078. gecatsim/material/water_20C_iodine_20mg +17 -0
  1079. gecatsim/material/water_20C_iodine_2mg +17 -0
  1080. gecatsim/material/water_20C_iodine_30mg +17 -0
  1081. gecatsim/material/water_20C_iodine_40mg +17 -0
  1082. gecatsim/material/water_20C_iodine_50mg +17 -0
  1083. gecatsim/material/water_20C_iodine_5mg +17 -0
  1084. gecatsim/material/water_37C +16 -0
  1085. gecatsim/phantom/CTDI_16cm_WaterAirPEBoneChambers.ppm +62 -0
  1086. gecatsim/phantom/CatSimLogo_1024/CatSimLogo_1024_128mmZ.json +51 -0
  1087. gecatsim/phantom/CatSimLogo_1024/CatSim_logo_1024.json +51 -0
  1088. gecatsim/phantom/CatSimLogo_1024/CatSim_logo_1024_bone_1024x1024x1.raw +0 -0
  1089. gecatsim/phantom/CatSimLogo_1024/CatSim_logo_1024_water_1024x1024x1.raw +0 -0
  1090. gecatsim/phantom/W20.ppm +22 -0
  1091. gecatsim/phantom/W30.ppm +22 -0
  1092. gecatsim/phantom/W35.ppm +22 -0
  1093. gecatsim/phantom/analyticArtifactPhantom.ppm +41 -0
  1094. gecatsim/phantom/female_adult_average_lung_lesions_reduced.nrb +49874 -0
  1095. gecatsim/phantom/poly_bin/poly10 +0 -0
  1096. gecatsim/phantom/poly_bin/poly100 +0 -0
  1097. gecatsim/phantom/poly_bin/poly12 +0 -0
  1098. gecatsim/phantom/poly_bin/poly14 +0 -0
  1099. gecatsim/phantom/poly_bin/poly17 +0 -0
  1100. gecatsim/phantom/poly_bin/poly20 +0 -0
  1101. gecatsim/phantom/poly_bin/poly21 +0 -0
  1102. gecatsim/phantom/poly_bin/poly22 +0 -0
  1103. gecatsim/phantom/poly_bin/poly23 +0 -0
  1104. gecatsim/phantom/poly_bin/poly24 +0 -0
  1105. gecatsim/phantom/poly_bin/poly25 +0 -0
  1106. gecatsim/phantom/poly_bin/poly26 +0 -0
  1107. gecatsim/phantom/poly_bin/poly28 +0 -0
  1108. gecatsim/phantom/poly_bin/poly32 +0 -0
  1109. gecatsim/phantom/poly_bin/poly33 +0 -0
  1110. gecatsim/phantom/poly_bin/poly34 +0 -0
  1111. gecatsim/phantom/poly_bin/poly36 +0 -0
  1112. gecatsim/phantom/poly_bin/poly38 +0 -0
  1113. gecatsim/phantom/poly_bin/poly4 +0 -0
  1114. gecatsim/phantom/poly_bin/poly40 +0 -0
  1115. gecatsim/phantom/poly_bin/poly41 +0 -0
  1116. gecatsim/phantom/poly_bin/poly44 +0 -0
  1117. gecatsim/phantom/poly_bin/poly49 +0 -0
  1118. gecatsim/phantom/poly_bin/poly5 +0 -0
  1119. gecatsim/phantom/poly_bin/poly50 +0 -0
  1120. gecatsim/phantom/poly_bin/poly52 +0 -0
  1121. gecatsim/phantom/poly_bin/poly55 +0 -0
  1122. gecatsim/phantom/poly_bin/poly58 +0 -0
  1123. gecatsim/phantom/poly_bin/poly6 +0 -0
  1124. gecatsim/phantom/poly_bin/poly60 +0 -0
  1125. gecatsim/phantom/poly_bin/poly62 +0 -0
  1126. gecatsim/phantom/poly_bin/poly66 +0 -0
  1127. gecatsim/phantom/poly_bin/poly68 +0 -0
  1128. gecatsim/phantom/poly_bin/poly7 +0 -0
  1129. gecatsim/phantom/poly_bin/poly71 +0 -0
  1130. gecatsim/phantom/poly_bin/poly75 +0 -0
  1131. gecatsim/phantom/poly_bin/poly77 +0 -0
  1132. gecatsim/phantom/poly_bin/poly79 +0 -0
  1133. gecatsim/phantom/poly_bin/poly86 +0 -0
  1134. gecatsim/phantom/poly_bin/poly9 +0 -0
  1135. gecatsim/phantom/poly_bin/poly92 +0 -0
  1136. gecatsim/phantom/poly_bin/poly96 +0 -0
  1137. gecatsim/phantom/tungsten_wire.ppm +12 -0
  1138. gecatsim/phantom/vmale50_chest_less_surfaces.nrb +41545 -0
  1139. gecatsim/pyfiles/C_DD3Proj.py +57 -0
  1140. gecatsim/pyfiles/C_DD3Proj_mm.py +64 -0
  1141. gecatsim/pyfiles/C_Materials_CrossSectionDB_Initialize.py +18 -0
  1142. gecatsim/pyfiles/C_Materials_CrossSectionMAC_ByProc_Get.py +25 -0
  1143. gecatsim/pyfiles/C_Phantom_Analytic_FORBILD_to_tmp.py +13 -0
  1144. gecatsim/pyfiles/C_Projector_Analytic.py +62 -0
  1145. gecatsim/pyfiles/C_Projector_NCAT.py +66 -0
  1146. gecatsim/pyfiles/C_Projector_Polygon.py +60 -0
  1147. gecatsim/pyfiles/C_Projector_SetData.py +166 -0
  1148. gecatsim/pyfiles/C_Projector_Voxelized.py +75 -0
  1149. gecatsim/pyfiles/C_Source_Analytic_Set.py +17 -0
  1150. gecatsim/pyfiles/C_Source_NCAT_Set.py +17 -0
  1151. gecatsim/pyfiles/C_Source_Voxelized_Set.py +17 -0
  1152. gecatsim/pyfiles/C_Volume_Get.py +24 -0
  1153. gecatsim/pyfiles/C_Volume_NCAT_Get.py +24 -0
  1154. gecatsim/pyfiles/C_Volume_Poly_Get.py +24 -0
  1155. gecatsim/pyfiles/CalcCrossTalk.py +42 -0
  1156. gecatsim/pyfiles/CalcOptCrossTalk.py +39 -0
  1157. gecatsim/pyfiles/CatSim.py +88 -0
  1158. gecatsim/pyfiles/CheckModules.py +59 -0
  1159. gecatsim/pyfiles/Check_Replace_Old_Names.py +85 -0
  1160. gecatsim/pyfiles/CommonTools.py +445 -0
  1161. gecatsim/pyfiles/Detection_DAS.py +25 -0
  1162. gecatsim/pyfiles/Detection_EI.py +84 -0
  1163. gecatsim/pyfiles/Detection_Flux.py +47 -0
  1164. gecatsim/pyfiles/Detection_Lag.py +28 -0
  1165. gecatsim/pyfiles/Detection_PC.py +120 -0
  1166. gecatsim/pyfiles/Detection_prefilter.py +35 -0
  1167. gecatsim/pyfiles/Detector_RayAngles_2D.py +86 -0
  1168. gecatsim/pyfiles/Detector_ThirdgenCurved.py +119 -0
  1169. gecatsim/pyfiles/FlatPanel/Detection_DAS_FlatPanel.py +101 -0
  1170. gecatsim/pyfiles/FlatPanel/Detection_OpticalCrosstalk_FlatPanel.py +39 -0
  1171. gecatsim/pyfiles/FlatPanel/Detector_FlatPanel.py +120 -0
  1172. gecatsim/pyfiles/Gantry_Helical.py +56 -0
  1173. gecatsim/pyfiles/GetMu.py +68 -0
  1174. gecatsim/pyfiles/LowSignalCorr.py +32 -0
  1175. gecatsim/pyfiles/OneScan.py +144 -0
  1176. gecatsim/pyfiles/PhantomProjectorWrapper.py +65 -0
  1177. gecatsim/pyfiles/Phantom_Analytic.py +936 -0
  1178. gecatsim/pyfiles/Phantom_CAD_to_Polygonal.py +82 -0
  1179. gecatsim/pyfiles/Phantom_NCAT.py +96 -0
  1180. gecatsim/pyfiles/Phantom_Polygonal.py +122 -0
  1181. gecatsim/pyfiles/Phantom_Polygonal_ReadPolygon.py +58 -0
  1182. gecatsim/pyfiles/Phantom_Voxelized.py +120 -0
  1183. gecatsim/pyfiles/PrepView.py +56 -0
  1184. gecatsim/pyfiles/Prep_BHC_Accurate.py +69 -0
  1185. gecatsim/pyfiles/ReadMaterialFile.py +29 -0
  1186. gecatsim/pyfiles/Scatter_ConvolutionModel.py +44 -0
  1187. gecatsim/pyfiles/Scatter_Correction.py +52 -0
  1188. gecatsim/pyfiles/SetFocalspot.py +239 -0
  1189. gecatsim/pyfiles/Spectrum.py +130 -0
  1190. gecatsim/pyfiles/Spectrum_heel.py +146 -0
  1191. gecatsim/pyfiles/WriteRawView.py +32 -0
  1192. gecatsim/pyfiles/WriteRawViewChunk.py +40 -0
  1193. gecatsim/pyfiles/Xray_Filter.py +93 -0
  1194. gecatsim/pyfiles/__init__.py +0 -0
  1195. gecatsim/pyfiles/catvoxel.py +161 -0
  1196. gecatsim/pyfiles/randpf.py +27 -0
  1197. gecatsim/reconstruction/lib/fdk_equiAngle.dll +0 -0
  1198. gecatsim/reconstruction/lib/fdk_equiAngle.so +0 -0
  1199. gecatsim/reconstruction/lib/fdk_equiAngle_macos.so +0 -0
  1200. gecatsim/reconstruction/lib/helicalrecon.dll +0 -0
  1201. gecatsim/reconstruction/lib/helicalrecon.so +0 -0
  1202. gecatsim/reconstruction/lib/readme.md +20 -0
  1203. gecatsim/reconstruction/pyfiles/createHSP.py +81 -0
  1204. gecatsim/reconstruction/pyfiles/fdk_equiAngle.py +245 -0
  1205. gecatsim/reconstruction/pyfiles/helical_equiAngle.py +284 -0
  1206. gecatsim/reconstruction/pyfiles/mapConfigVariablesToFDK.py +38 -0
  1207. gecatsim/reconstruction/pyfiles/mapConfigVariablesToHelical.py +50 -0
  1208. gecatsim/reconstruction/pyfiles/recon.py +172 -0
  1209. gecatsim/reconstruction/src/Parallel_FDK_Helical_3DWeighting.c +211 -0
  1210. gecatsim/reconstruction/src/interface_fdk_angle.c +162 -0
  1211. gecatsim/response_matrix/PC_spectral_response_CZT0.25x0.25x1.6.mat +0 -0
  1212. gecatsim/scatter/scatter_kernel.dat +0 -0
  1213. gecatsim/spectrum/XCISTspectrum.m +262 -0
  1214. gecatsim/spectrum/convert.py +21 -0
  1215. gecatsim/spectrum/readme.md +17 -0
  1216. gecatsim/spectrum/tungsten_tar10.0_100_filt.dat +201 -0
  1217. gecatsim/spectrum/tungsten_tar10.0_110_filt.dat +221 -0
  1218. gecatsim/spectrum/tungsten_tar10.0_120_filt.dat +241 -0
  1219. gecatsim/spectrum/tungsten_tar10.0_130_filt.dat +261 -0
  1220. gecatsim/spectrum/tungsten_tar10.0_140_filt.dat +281 -0
  1221. gecatsim/spectrum/tungsten_tar10.0_70_filt.dat +141 -0
  1222. gecatsim/spectrum/tungsten_tar10.0_80_filt.dat +161 -0
  1223. gecatsim/spectrum/tungsten_tar10.0_90_filt.dat +181 -0
  1224. gecatsim/spectrum/tungsten_tar7.0_100_filt.dat +201 -0
  1225. gecatsim/spectrum/tungsten_tar7.0_110_filt.dat +221 -0
  1226. gecatsim/spectrum/tungsten_tar7.0_120_filt.dat +241 -0
  1227. gecatsim/spectrum/tungsten_tar7.0_130_filt.dat +261 -0
  1228. gecatsim/spectrum/tungsten_tar7.0_140_filt.dat +281 -0
  1229. gecatsim/spectrum/tungsten_tar7.0_70_filt.dat +141 -0
  1230. gecatsim/spectrum/tungsten_tar7.0_80_filt.dat +161 -0
  1231. gecatsim/spectrum/tungsten_tar7.0_90_filt.dat +181 -0
  1232. gecatsim/spectrum/xcist_kVp100_tar7_bin1.dat +103 -0
  1233. gecatsim/spectrum/xcist_kVp120_tar7_bin1.dat +123 -0
  1234. gecatsim/spectrum/xcist_kVp140_tar7_bin1.dat +143 -0
  1235. gecatsim/spectrum/xcist_kVp80_tar7_bin1.dat +83 -0
@@ -0,0 +1,936 @@
1
+ # Copyright 2024, GE Precision HealthCare. All rights reserved. See https://github.com/xcist/main/tree/master/license
2
+
3
+ import re
4
+ import sys
5
+ from ctypes import *
6
+ from numpy.ctypeslib import ndpointer
7
+ from gecatsim.pyfiles.GetMu import GetMu
8
+ from gecatsim.pyfiles.CommonTools import *
9
+ from gecatsim.pyfiles.C_Phantom_Analytic_FORBILD_to_tmp import C_Phantom_Analytic_FORBILD_to_tmp
10
+
11
+ def Phantom_Analytic(cfg):
12
+
13
+ print("Starting to read ANALYTIC phantom...")
14
+
15
+ phobj, phobject, numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D = Phantom_Analytic_Get(cfg)
16
+
17
+ cfg.phantom.numberOfMaterials = len(phobject['materialList'])
18
+ cfg.phantom.Materials = phobject['materialList']
19
+ set_materials(cfg)
20
+ set_volume(cfg, numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D)
21
+
22
+ print('... done reading phantom.')
23
+ return cfg
24
+
25
+
26
+ def set_materials(cfg):
27
+ materialList = cfg.phantom.Materials
28
+ Evec = cfg.spec.Evec
29
+ nMat = len(materialList)
30
+ Mus = np.zeros([Evec.size, nMat], dtype=np.float64)
31
+ for i in range(nMat):
32
+ Mus[:, i] = GetMu(materialList[i], Evec)/10
33
+
34
+ # analytic_projector.c: void set_material_info(int materialCount, int eBinCount, double *muTable)
35
+ fun = cfg.clib.set_material_info
36
+ fun.argtypes = [c_int, c_int, ndpointer(c_double)]
37
+ fun.restype = None
38
+ fun(nMat, Evec.size, Mus)
39
+
40
+
41
+ def set_volume(cfg, numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D):
42
+ X = X.T.ravel()
43
+ K = K.T.ravel()
44
+ Eta = Eta.T.ravel()
45
+
46
+ # analytic_projector.c: void set_phantom_info(int numObjs, int *objType, int *clipStInd, int *nPlanes, int *matInd, double *objCent, double *shp, double *Qmat, double *clipNormVec, double *clipDist, double *den, int totalNumPlanes)
47
+ # in matlabe: calllib(CatSimLib, 'set_phantom_info', numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D, cumCP_end);
48
+ fun = cfg.clib.set_phantom_info
49
+ fun.argtypes = [c_int, ndpointer(c_int), ndpointer(c_int), ndpointer(c_int), ndpointer(c_int), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), c_int]
50
+ fun.restype = None
51
+ fun(numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D, cumCP[-1])
52
+
53
+ '''
54
+ NOTE: phobject here is object in matlab [simply the parsed phantom], phantobject here is phobject in matlab
55
+ '''
56
+ def Phantom_Analytic_Get(cfg):
57
+ ###----------- phantom file
58
+ cfg.phantom.filename = my_path.find('phantom', cfg.phantom.filename, '')
59
+
60
+ PhantomFilename=cfg.phantom.filename
61
+ Scale=cfg.phantom.scale
62
+ print('Reading phantom file {}...'.format(PhantomFilename))
63
+
64
+ PhantomPath = os.path.dirname(PhantomFilename)
65
+ BaseName = os.path.basename(PhantomFilename)
66
+ PhantomBaseName, PhantomExtension = BaseName.split('.')
67
+ if 'pp' == PhantomExtension:
68
+ ppmPhantomFilename = PhantomFilename.replace('.pp','.ppm')
69
+ if cfg.phantom.force_phantom_conversion or os.path.getmtime(PhantomFilename) > os.path.getmtime(ppmPhantomFilename):
70
+ print("Converting pp format to ppm...")
71
+ if os.path.exists(PhantomFilename):
72
+ # first, replace potential CRLF to LF, to avoid issues in the c parser code
73
+ PhantomFilename = Phantom_Analytic_replace_CRLF(PhantomFilename)
74
+ Phantom_Analytic_pp_to_ppm(os.path.splitext(PhantomFilename)[0], ppmPhantomFilename)
75
+ if "_tmpCRLF" in PhantomFilename: os.remove(PhantomFilename)
76
+ else:
77
+ sys.exit('Phantom file {} not found'.format(PhantomFilename))
78
+ else:
79
+ if 'ppm' == PhantomExtension:
80
+ ppmPhantomFilename = PhantomFilename
81
+
82
+ print('Reading phantom file {}.'.format(ppmPhantomFilename))
83
+
84
+ phobject = parse_analytical_ppm(ppmPhantomFilename)
85
+
86
+ #FIXME: will fix this part
87
+ #if isfield(cfg,'phantom_rotation_y') and any(cfg.phantom_rotation_y) != 0:
88
+ # cfg.phantom_rotation_y_analytic = copy(cfg.phantom_rotation_y)
89
+ #
90
+ #if isfield(cfg,'phantom_rotation_y_analytic') and cfg.phantom_rotation_y_analytic != 0:
91
+ # ang=cfg.phantom_rotation_y_analytic
92
+ # sina=sin(dot(- ang / 180,pi))
93
+ # cosa=cos(dot(- ang / 180,pi))
94
+ # transmat=concat([[cosa,0,sina],[0,1,0],[- sina,0,cosa]])
95
+ # for ii in arange(1,length(object.type)).reshape(-1):
96
+ # if any(object.euler_angs(ii,arange(2,3)) != 0) or all(object.euler_angs(ii,1) != concat([0,90,- 90])):
97
+ # error('CatSim: phantom rotation currently only works without original rotation')
98
+ # object.center[ii,arange()]=dot(object.center(ii,arange()),transmat)
99
+ # object.euler_angs[ii,arange()]=concat([90,ang,90])
100
+ # if logical_not(isempty(object.clip[ii])):
101
+ # for jj in arange(1,size(object.clip[ii],1)).reshape(-1):
102
+ # if all(abs(object.clip[ii](jj,arange(1,3))) == concat([1,0,0])):
103
+ # object.clip[ii][jj,arange(1,3)]=dot(object.clip[ii](jj,arange(1,3)),transmat)
104
+ #
105
+ # phantom position offset, Mingye
106
+ if hasattr(cfg.phantom,'centerOffset') and not np.allclose(cfg.phantom.centerOffset, 0):
107
+ setattr(cfg.phantom, "centerOffset_analytic", cfg.phantom.centerOffset)
108
+
109
+ if hasattr(cfg.phantom, 'centerOffset_analytic') and not np.allclose(cfg.phantom.centerOffset_analytic, 0):
110
+ for ii in range(len(phobject['type'])):
111
+ phobject['center'][ii] = np.array(phobject['center'][ii])
112
+ phobject['center'][ii] += cfg.phantom.centerOffset_analytic
113
+ if len(phobject['clip'][ii]) > 0:
114
+ # Mingye Wu, Sept 15 2017
115
+ # get the delta D of clip distance
116
+ for jj in range(len(phobject['clip'][ii])):
117
+ d = get_clip_dD(phobject['clip'][ii][jj][:3], cfg.phantom.centerOffset_analytic)
118
+ phobject['clip'][ii][jj][3] += d
119
+
120
+ if len(phobject['materialList']) < max(phobject['material']):
121
+ sys.exit('Phantom cannot reference a material that is not in the list')
122
+ objs = {'params': [[] for _ in range(len(phobject['type']))],
123
+ 'clip': [[] for _ in range(len(phobject['type']))]}
124
+ if np.any(np.array(phobject['type'])==100):
125
+ #FIXME: finish this part
126
+ #Phantom_Polygonal(object,Scale)
127
+ pass
128
+ else:
129
+ print('Converting boxes to cylinders with clipping.')
130
+ for i in range(len(phobject['type'])):
131
+ if phobject['type'][i] == 8:
132
+ phobject['type'][i] = 2
133
+ Bt = Rmat(phobject['euler_angs'][i]).T
134
+ phobject['clip'][i] = np.vstack((
135
+ np.hstack((Bt[:,0].T, phobject['half_axes'][i][0] + np.array(phobject['center'][i])@Bt[:,0])),
136
+ np.hstack((-Bt[:,0].T, phobject['half_axes'][i][0] - np.array(phobject['center'][i])@Bt[:,0])),
137
+ np.hstack((Bt[:,1].T, phobject['half_axes'][i][1] + np.array(phobject['center'][i])@Bt[:,1])),
138
+ np.hstack((-Bt[:,1].T, phobject['half_axes'][i][1] - np.array(phobject['center'][i])@Bt[:,1]))))
139
+ phobject['half_axes'][i][:2]= np.array(phobject['half_axes'][i][:2])*np.sqrt(2)
140
+
141
+ print('Scaling and compacting format.')
142
+ indsToScale= list(range(6)) + [13,14]
143
+
144
+ for i in range(len(phobject['type'])):
145
+ if not phobject['type'][i] in [3,7]:
146
+ tmp = list(phobject['center'][i]) + phobject['half_axes'][i] + phobject['euler_angs'][i] + [phobject['density'][i]] + [phobject['type'][i]] + [0] + [phobject['shape'][i]] + phobject['axial_lims'][i] + [phobject['material'][i]]
147
+ tmp = np.array(tmp)
148
+ tmp[indsToScale] = tmp[indsToScale]*Scale
149
+ objs['params'][i] = tmp
150
+ tmp2 = np.array(phobject['clip'][i])
151
+ if len(tmp2)!=0:
152
+ tmp2[:,3]= tmp2[:,3]*Scale
153
+ objs['clip'][i] = tmp2
154
+ else:
155
+ objs['params'][i] = np.vstack([phobject['center'][i],phobject['half_axes'][i],phobject['euler_angs'][i],phobject['density'][i],phobject['type'][i],0,phobject['shape'][i],phobject['axial_lims'][i],phobject['material'][i]])
156
+ objs['clip'][i] = phobject['clip'][i]
157
+ # Set the objects, and pass to C.
158
+ objs['params'] = np.array(objs['params'])
159
+ phantObject, numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D = Phantom_Analytic_SetObjects(objs)
160
+ objs['params'] = Phantom_Analytic_ConvertTori(phantObject,objs['params'],objs['clip'])
161
+ phantObject = Phantom_Analytic_BoundObjects(phantObject,objs['params'])
162
+ print('... done with phantom.')
163
+
164
+ return phantObject, phobject, numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D
165
+
166
+
167
+ def Rmat(p=None):
168
+ p=np.array(p)*3.141592653589793 / 180
169
+ p1=p[0]
170
+ p2=p[1]
171
+ p3=p[2]
172
+ R=np.vstack(([np.cos(p1)*np.cos(p3) - np.sin(p1)*np.cos(p2)*np.sin(p3), np.cos(p1)*np.sin(p3) + np.sin(p1)*np.cos(p2)*np.cos(p3), np.sin(p1)*np.sin(p2)],
173
+ [-np.sin(p1)*np.cos(p3) - np.cos(p1)*np.cos(p2)*np.sin(p3), -np.sin(p1)*np.sin(p3) + np.cos(p1)*np.cos(p2)*np.cos(p3),np.cos(p1)*np.sin(p2)],
174
+ [np.sin(p2)*np.sin(p3), -np.sin(p2)*np.cos(p3), np.cos(p2)]))
175
+ return R
176
+
177
+ # Mingye Wu, Sept 15 2017
178
+ # get the delta D of clip
179
+ # c0: original clip vector
180
+ # c1: phantom off-centering coordinates
181
+ def get_clip_dD(c0=None,c1=None):
182
+
183
+ c0 = np.array(c0)
184
+ c1 = np.array(c1)
185
+ r0 = np.linalg.norm(c0)
186
+ r1 = np.linalg.norm(c1)
187
+ d = np.linalg.norm(c0 - c1)
188
+ cosA = (r0**2 + r1**2 - d**2)/(2*r0*r1)
189
+ cosA = np.nan_to_num(cosA)
190
+ #cosA[cosA==np.inf] = 0.
191
+ delta = r1*cosA
192
+
193
+ return delta
194
+
195
+ def Phantom_Analytic_replace_CRLF(PhantomFilename):
196
+ WINDOWS_LINE_ENDING = b'\r\n'
197
+ UNIX_LINE_ENDING = b'\n'
198
+
199
+ with open(PhantomFilename, 'rb') as open_file:
200
+ content = open_file.read()
201
+
202
+ if WINDOWS_LINE_ENDING not in content: return PhantomFilename
203
+
204
+ print("Warning: found windows EOL symbols in the phantom file.\n")
205
+
206
+ content = content.replace(WINDOWS_LINE_ENDING, UNIX_LINE_ENDING)
207
+
208
+ tmpPhantomFilename = PhantomFilename.replace(".pp", "_tmpCRLF.pp")
209
+ with open(tmpPhantomFilename, 'wb') as open_file:
210
+ open_file.write(content)
211
+
212
+ return tmpPhantomFilename
213
+
214
+ def Phantom_Analytic_BoundObjects(phantObject=None,params=None):
215
+
216
+ print('Bounding objects in the ANALYTIC phantom.')
217
+ speedup = 0
218
+
219
+ Good = [4,4,4,4,5,6,7,9,9,10,12,12,14,14,17,17,17,20,20,20,21,22,23,24,25,26,28,28,32,32,32,32,33,34,36,36,38,38,40,40,41,44,44,44,49,49,49,49,49,50,52,52,55,55,55,58,58,58,60,60,62,62,66,66,66,66,68,68,71,71,71,75,75,75,75,77,77,79,79,86,86,86,86,86,86,86,92,92,92,92,92,92,96,96,96,96,100,100,100,100]
220
+ numObjects = len(params)
221
+
222
+ for i in range(numObjects):
223
+ pars = params[i]
224
+ typ = pars[10]
225
+ if typ == 1:
226
+ c = 2.5
227
+ Volume = np.prod(pars[3:6])
228
+ Verts = Good[min(100, int(np.ceil(Volume**(4/15)*c)))-1]
229
+ Vx, nV = Phantom_Polygonal_ReadPolygon(Verts)
230
+ tmp = np.vstack(([pars[3],0,0],[0,pars[4],0],[0,0,pars[5]]))
231
+ Vx = phantObject[i]['R'].T@tmp@Vx + pars[:3, None]@np.ones((1,Verts))
232
+ elif typ == 2:
233
+ c = 2
234
+ Volume = np.prod(pars[3:6])
235
+ nodes=max(round(c*Volume ** (2 / 15)),3)
236
+ ang = np.linspace(0, 2*np.pi ,nodes + 1)
237
+ ang = ang[:-1]
238
+ sc = 1/np.cos(np.pi / nodes)
239
+ x = np.cos(ang)*sc
240
+ y = np.sin(ang)*sc
241
+ z = x*0
242
+ Vx = np.stack((np.concatenate((x,x), axis=0),
243
+ np.concatenate((y,y), axis=0),
244
+ np.concatenate((z-1,z+1), axis=0)), axis=0)
245
+ Vx_old = Vx.copy()
246
+ tmp1 = (np.arange(1,nodes+1) - 2)%nodes + 1
247
+ tmp2 = (np.arange(1,nodes+1))%nodes + 1
248
+ tmp3 = np.arange(1,nodes+1) + nodes
249
+ nV = np.stack((np.concatenate((tmp1, tmp2 + nodes), axis=0),
250
+ np.concatenate((tmp2, tmp1 + nodes), axis=0),
251
+ np.concatenate((tmp3, tmp3 - nodes), axis=0)), axis=0)
252
+ Verts = Vx.shape[1]
253
+ tmp_mat = np.array(([pars[3],0,0],[0,pars[4],0],[0,0,pars[5]]))
254
+ Vx = np.matmul(phantObject[i]['R'].T, np.matmul(tmp_mat,Vx)) + pars[:3, None]*np.ones((1,Verts))
255
+ else: print("new types need attention:", typ)
256
+ #if i==9: breakpoint()
257
+ #elif typ == 3:
258
+ # c=2
259
+ # s=pars(13)
260
+ # Volume=dot(dot(prod(pars(arange(4,6))),(1 + s) ** 2),s)
261
+ # nodes=max(round(dot(c,Volume ** (2 / 15))),3)
262
+ # ang=linspace(0,dot(2,pi),nodes + 1)
263
+ # ang=ang(arange(1,end() - 1))
264
+ # sc=dot(1 / cos(pi / nodes),(1 + s))
265
+ # x=dot(cos(ang),sc)
266
+ # y=dot(sin(ang),sc)
267
+ # z=dot(x,0)
268
+ # Vx=concat([[x,x],[y,y],[z - s,z + s]])
269
+
270
+ # tmp1=mod(concat([arange(1,nodes)]) - 2,nodes) + 1
271
+ # tmp2=mod(concat([arange(1,nodes)]),nodes) + 1
272
+ # tmp3=concat([arange(1,nodes)]) + nodes
273
+ # nV=concat([concat([[tmp1.T],[tmp2.T + nodes]]),concat([[tmp2.T],[tmp1.T + nodes]]),concat([[tmp3.T],[tmp3.T - nodes]])])
274
+ # Verts=size(Vx,2)
275
+ # Vx=dot(dot(phantObject[i].R.T,concat([[pars(4),0,0],[0,pars(5),0],[0,0,pars(6)]])),Vx) + dot(pars(arange(1,3)).T,ones(1,Verts))
276
+ #elif typ == 4:
277
+ # c=2
278
+ # alim=sort(pars(arange(14,15)))
279
+ # rat=alim(2) / pars(6)
280
+ # Volume=dot(dot(dot(pars(4),pars(5)),rat ** 2),alim(2)) / 3
281
+ # nodes=max(round(dot(c,Volume ** (2 / 15))),3)
282
+ # ang=linspace(0,dot(2,pi),nodes + 1)
283
+ # ang=ang(arange(1,end() - 1))
284
+ # sc=1 / cos(pi / nodes)
285
+ # x=dot(cos(ang),sc)
286
+ # y=dot(sin(ang),sc)
287
+ # z=dot(x,0)
288
+ # scl=max(alim(1) / alim(2),0.05)
289
+ # Vx=concat([[dot(x,scl),x],[dot(y,scl),y],[z + alim(1),z + alim(2)]])
290
+ # tmp1=mod(concat([arange(1,nodes)]) - 2,nodes) + 1
291
+ # tmp2=mod(concat([arange(1,nodes)]),nodes) + 1
292
+ # tmp3=concat([arange(1,nodes)]) + nodes
293
+ # nV=concat([concat([[tmp1.T],[tmp2.T + nodes]]),concat([[tmp2.T],[tmp1.T + nodes]]),concat([[tmp3.T],[tmp3.T - nodes]])])
294
+ # Verts=size(Vx,2)
295
+ # Vx=dot(dot(phantObject[i].R.T,concat([[dot(pars(4),rat),0,0],[0,dot(pars(5),rat),0],[0,0,1]])),Vx) + dot(pars(arange(1,3)).T,ones(1,Verts))
296
+ #if typ == 5:
297
+ # c=2
298
+ # alim=sort(pars(arange(14,15)))
299
+ # mag=sqrt(1 + alim ** 2 / pars(6) ** 2)
300
+ # Volume=dot(dot(dot(pars(4),pars(5)),prod(mag)),(alim(2) - alim(1)))
301
+ # nodes=max(round(dot(c,Volume ** (2 / 15))),3)
302
+ # ang=linspace(0,dot(2,pi),nodes + 1)
303
+ # ang=ang(arange(1,end() - 1))
304
+ # sc=1 / cos(pi / nodes)
305
+ # x=dot(cos(ang),sc)
306
+ # y=dot(sin(ang),sc)
307
+ # z=dot(x,0)
308
+ # Vx=concat([[dot(x,mag(1)),dot(x,mag(2))],[dot(y,mag(1)),dot(y,mag(2))],[z + alim(1),z + alim(2)]])
309
+ # tmp1=mod(concat([arange(1,nodes)]) - 2,nodes) + 1
310
+ # tmp2=mod(concat([arange(1,nodes)]),nodes) + 1
311
+ # tmp3=concat([arange(1,nodes)]) + nodes
312
+ # nV=concat([concat([[tmp1.T],[tmp2.T + nodes]]),concat([[tmp2.T],[tmp1.T + nodes]]),concat([[tmp3.T],[tmp3.T - nodes]])])
313
+ # Verts=size(Vx,2)
314
+ # Vx=dot(dot(phantObject[i].R.T,concat([[pars(4),0,0],[0,pars(5),0],[0,0,1]])),Vx) + dot(pars(arange(1,3)).T,ones(1,Verts))
315
+ #if typ == 6:
316
+ # c=2
317
+ # alim=sort(pars(arange(14,15)))
318
+ # lim=max(abs(alim))
319
+ # if (alim(1) > - pars(6)) and (alim(1) < pars(6)):
320
+ # alim[1]=min(pars(6),alim(2))
321
+ # if (alim(2) > - pars(6)) and (alim(2) < pars(6)):
322
+ # alim[2]=max(- pars(6),alim(1))
323
+ # mag=sqrt(- 1 + lim ** 2 / pars(6) ** 2)
324
+ # Volume=dot(dot(dot(pars(4),pars(5)),prod(mag)),(alim(2) - alim(1)))
325
+ # nodes=max(round(dot(c,Volume ** (2 / 15))),3)
326
+ # ang=linspace(0,dot(2,pi),nodes + 1)
327
+ # ang=ang(arange(1,end() - 1))
328
+ # sc=1 / cos(pi / nodes)
329
+ # x=dot(cos(ang),sc)
330
+ # y=dot(sin(ang),sc)
331
+ # z=dot(x,0)
332
+ # Vx=concat([[dot(x,mag),dot(x,mag)],[dot(y,mag),dot(y,mag)],[z + alim(1),z + alim(2)]])
333
+ # tmp1=mod(concat([arange(1,nodes)]) - 2,nodes) + 1
334
+ # tmp2=mod(concat([arange(1,nodes)]),nodes) + 1
335
+ # tmp3=concat([arange(1,nodes)]) + nodes
336
+ # nV=concat([concat([[tmp1.T],[tmp2.T + nodes]]),concat([[tmp2.T],[tmp1.T + nodes]]),concat([[tmp3.T],[tmp3.T - nodes]])])
337
+ # Verts=size(Vx,2)
338
+ # Vx=dot(dot(phantObject[i].R.T,concat([[pars(4),0,0],[0,pars(5),0],[0,0,1]])),Vx) + dot(pars(arange(1,3)).T,ones(1,Verts))
339
+ #if typ == 7:
340
+ # C=pars(13)
341
+ # A=pars(6)
342
+ # T=pars(15)
343
+ # theta=pars(14)
344
+ # delta=pars(5)
345
+ # k=pars(4)
346
+ # if C <= 0:
347
+ # error('Torus shape value must be > 0.')
348
+ # # st_ang=(pi/2-theta)*T;
349
+ # st_ang=pi / 4 + T - theta / 2
350
+ # en_ang=st_ang + theta
351
+ # deltas=dot(delta,cos(dot(2,concat([st_ang,en_ang]))))
352
+ # if sign1(sin(st_ang)) != sign1(sin(en_ang)):
353
+ # delta_max=copy(delta)
354
+ # else:
355
+ # delta_max=max(deltas)
356
+ # alphas=dot(2 / C ** 2,(1 + concat([deltas,delta_max]) / 2))
357
+ # s1=sqrt(alphas - k + sqrt(alphas ** 2 - dot(dot(2,alphas),k)))
358
+ # s2=sqrt(alphas - k - sqrt(alphas ** 2 - dot(dot(2,alphas),k)))
359
+ # rmax=((s1(3) - s2(3)) / 2 + sqrt(alphas(3) / 2)) / A
360
+ # r=(- (s1(3) - s2(3)) / 2 + sqrt(alphas(arange(1,2)) / 2)) / A / rmax
361
+ # s=(s1(3) - s2(3)) / 2 / A
362
+ # c=2
363
+ # shp=(s1(3) - s2(3)) / 2 / sqrt(alphas(3) / 2)
364
+ # Volume=dot(dot(theta,C ** 3),shp ** 2)
365
+ # nodes=max(round(dot(c,Volume ** (2 / 15))),3)
366
+ # ang=linspace(st_ang,en_ang,nodes)
367
+ # sc=dot(1 / cos(theta / 2 / (nodes - 1)),(rmax))
368
+ # x=dot(cos(ang),sc)
369
+ # y=dot(sin(ang),sc)
370
+ # z=dot(x,0)
371
+ # if min(r) <= 0.1:
372
+ # Vx=concat([[x,0,x,0],[y,0,y,0],[z - s,- s,z + s,s]])
373
+ # nodes=nodes + 1
374
+ # else:
375
+ # Vx=concat([[concat([x,dot(r(2),x(end())),dot(r(1),x(1)),x,dot(r(2),x(end())),dot(r(1),x(1))])],[concat([y,dot(r(2),y(end())),dot(r(1),y(1)),y,dot(r(2),y(end())),dot(r(1),y(1))])],[concat([z - s,- s,- s,z + s,s,s])]])
376
+ # nodes=nodes + 2
377
+ # tmp1=mod(concat([arange(1,nodes)]) - 2,nodes) + 1
378
+ # tmp2=mod(concat([arange(1,nodes)]),nodes) + 1
379
+ # tmp3=concat([arange(1,nodes)]) + nodes
380
+ # nV=concat([concat([[tmp1.T],[tmp2.T + nodes]]),concat([[tmp2.T],[tmp1.T + nodes]]),concat([[tmp3.T],[tmp3.T - nodes]])])
381
+ # Verts=size(Vx,2)
382
+ # Vx=dot(phantObject[i].R.T,Vx) + dot(pars(arange(1,3)).T,ones(1,Verts))
383
+
384
+ if speedup:
385
+ for j in range(phantObject[i]['cp']):
386
+ Vx,nV=clip_polygon(Vx,nV,phantObject[i]['eta'][:,j],phantObject[i]['s'][j])
387
+ phantObject[i]['Vx'] = Vx
388
+
389
+ Vx_all = np.hstack([this['Vx'] for this in phantObject])
390
+ nm1 = [this['Vx'].shape[1] for this in phantObject]
391
+
392
+ cum = np.cumsum(nm1)
393
+ cum = np.concatenate(([0], cum))
394
+
395
+ clib = load_C_lib()
396
+ func = clib.set_bounding_info
397
+ func.argtypes = [c_int, ndpointer(c_int), ndpointer(c_double), c_int]
398
+ func.restype = None
399
+ cum = cum.astype(np.int32)
400
+ Vx_all = Vx_all.T.ravel()
401
+
402
+ func(numObjects, cum, Vx_all, cum[-1])
403
+
404
+ return phantObject, cum, Vx_all
405
+
406
+ #FIXME: not tested
407
+ def clip_polygon(vX=None,nV=None,clipVec=None,clipS=None):
408
+ """
409
+ This function clips the bounding polyhedron with the clipping planes.
410
+ This helps to reduce the volume of the bounding polyhedron and thereby improves efficiency.
411
+ In some (rare) cases, this clipping is also necessary to prevent the source from being inside the polyhedron.
412
+ If the source is inside the bounding polyhedron, no horizon can be computed and the simulator will fail.
413
+ """
414
+
415
+ numVert = vX.shape[1]
416
+ newVerts = 0
417
+ thresh = 0.01
418
+ distOutside = clipVec.T*vX - clipS
419
+ if max(distOutside) > thresh:
420
+ outside = (distOutside > 0)
421
+ for i in range(1,numVert+1):
422
+ # This won't happen when we are at index 1 so we start with index 2.
423
+ numNeighbors = sum(np.logical_not(np.isinf(nV[i])))
424
+ for j in range(numNeighbors):
425
+ neighbor = nV[i,j]
426
+ if neighbor < i:
427
+ if outside[i] + outsize[neighbor] == 1:
428
+ newVerts += 1
429
+ wt = abs(distOutside(neighbor)) / (abs(distOutside(neighbor)) + abs(distOutside(i)))
430
+ vX = [vX, wt*vX[:,i] +(1 - wt)*vX[:, neighbor]]
431
+ if outside[i]:
432
+ ind = find(nV(neighbor,arange()) == i)
433
+ nV[neighbor,ind]=numVert + newVerts
434
+ nV[numVert + newVerts,arange()]=inf
435
+ nV[numVert + newVerts,1]=neighbor
436
+ else:
437
+ nV[i,j]=numVert + newVerts
438
+ nV[numVert + newVerts,arange()]=inf
439
+ nV[numVert + newVerts,1]=i
440
+ # Next, we connect the dots on the new vertices
441
+ # Find a point on the face
442
+ newFaceCenter=mean(vX(arange(),numVert + concat([arange(1,newVerts)])),2)
443
+ vec1=vX(arange(),numVert + 1) - newFaceCenter
444
+ vec1=vec1 / norm_cs(vec1)
445
+ vec2=cross(clipVec,vec1)
446
+ vec2=vec2 / norm_cs(vec2)
447
+ coords=dot(concat([[vec1.T],[vec2]]),(vX(arange(),numVert + concat([arange(1,newVerts)])) - dot(newFaceCenter,ones(1,newVerts))))
448
+ angles=atan2(coords(2,arange()),coords(1,arange()))
449
+ angles,order=sort(angles,nargout=2)
450
+ order=order + numVert
451
+ nV[order,2]=order(concat([arange(2,end()),1]))
452
+ nV[order,3]=order(concat([end(),arange(1,end() - 1)]))
453
+ outside[numVert + concat([arange(1,newVerts)])]=0
454
+ ind=find(outside == 0)
455
+ newIndex[ind]=concat([arange(1,length(ind))])
456
+ nV=nV(ind,arange())
457
+ vX=vX(arange(),ind)
458
+ ii=find(logical_not(isinf(nV)))
459
+ nV[ii]=newIndex(nV(ii))
460
+ if sum(nV == 0):
461
+ sys.exit('Unexpected.')
462
+ # show_poly_stereographic(vX,nV,newFaceCenter,cross(vec1,vec2)',[vec1 vec2'])
463
+ # FIXME : Need to eliminate any very small faces to prevent precision errors
464
+
465
+
466
+ return vX,nV
467
+
468
+
469
+ #def show_poly_stereographic(vX=None,nV=None,newfacecenter=None,newfacevector=None,orthogonalvecs=None,*args,**kwargs):
470
+ # varargin = show_poly_stereographic.varargin
471
+ # nargin = show_poly_stereographic.nargin
472
+ #
473
+ # focus=newfacecenter + dot(newfacevector,5)
474
+ # vX2=dot(concat([orthogonalvecs,newfacevector]).T,(vX - repmat(focus,concat([1,size(vX,2)]))))
475
+ # x=- vX2(1,arange()) / vX2(3,arange())
476
+ # y=- vX2(2,arange()) / vX2(3,arange())
477
+ # figure(1)
478
+ # hold('off')
479
+ # for i in arange(1,size(vX,2)).reshape(-1):
480
+ # text(x(i),y(i),sprintf('%d',i))
481
+ # hold('on')
482
+ # nb=nV(i,find(logical_not(isinf(nV(i,arange())))))
483
+ # for j in arange(1,length(nb)).reshape(-1):
484
+ # h=plot(x(concat([i,nb(j)])),y(concat([i,nb(j)])))
485
+ #
486
+ #
487
+ # return
488
+
489
+ def Phantom_Analytic_ConvertTori(phantObject=None,params=None,clip=None):
490
+ pi = 3.141592653589793
491
+
492
+ print('Converting tori in the ANALYTIC phantom.')
493
+ for i in range(params.shape[0]):
494
+ pars = params[i]
495
+ clp = clip[i]
496
+ if pars[10] == 3:
497
+ if clp.shape[0] == 2:
498
+ ax = phantObject[i]['R'][2].T
499
+ dot = clp[:,:3]*ax
500
+ center = pars[:3]
501
+ dot2 = clp[:,:3]*center - clp[:,3]
502
+ if max(abs(dot) + abs(dot2)) < 5e-05:
503
+ if np.std(pars[4:6]) == 0:
504
+ clip_ax_vec[:,1] = np.cross(ax,clp[1,:3]).T
505
+ clip_ax_vec[:,2] = np.cross(ax,clp[2,:3]).T
506
+ clip_ax_vec = phantObject[i]['R']*clip_ax_vec
507
+ ang = np.arctan2(clip_ax_vec[2], clip_ax_vec[1])
508
+ if (ang(2) - ang(1))%(2*pi) > pi:
509
+ ang[2] += pi
510
+ else:
511
+ ang[1] += pi
512
+ ang = [[ang[2]],[ang[1]]]
513
+ ang = ang%(2*pi)
514
+ l = (ang(2) - ang(1))%(2*pi)
515
+ relative_cent_ang = ang(1) + l / 2 - pi / 4
516
+ C = pars(6)
517
+ A = 1 / C ** 2
518
+ shp = pars(13)
519
+ pars[4] = A*(1 - shp ** 2)
520
+ pars[5] = 0
521
+ pars[6] = A
522
+ pars[13] = C
523
+ pars[14] = l
524
+ pars[15] = relative_cent_ang
525
+ pars[11] = 7
526
+ params[i] = pars
527
+
528
+ #
529
+ # Info on parameter storage:
530
+ # --------------------------
531
+ #
532
+ # vessel seg. par # original objects
533
+ # ------------------------------------------
534
+ # center 1:3 - object center
535
+ # k,d,A 4:6 - object half axes
536
+ # Euler angles 7:9 - Euler angles
537
+ # intensity 10 - intensity
538
+ # 7 11 - obj. type (1=ell,2=cyl,3=tor,4=cone,5=hyp1,6=hyp2,7=vessel seg.)
539
+ # trans 12 - transparency (vis)
540
+ # C 13 - torus shape
541
+ # l,T 14,15 - ax. lim.
542
+ # min OS 16 - minimum detector oversampling
543
+ #
544
+ # vessel definition
545
+ # -----------------
546
+ #
547
+ # start_point (x,y,z)
548
+ # start_direction (theta,phi)
549
+ # start_curvature_direction (gamma)
550
+ # start_radius (R)
551
+ #
552
+ # R_scaling_factor (vector [Num_segs]) default:1
553
+ # length (vector [Num_segs]) default:pi/4
554
+ # ellipticity (vector [Num_segs]) default:0
555
+ # curvature (vector [Num_segs]) default:20
556
+ # torsion (vector [Num_segs]) default:0
557
+ # tapering nature (rel_cent_ang) (vector [Num_segs]) default:0
558
+ #
559
+ #
560
+ # Program reads in and converts to:
561
+ #
562
+ # vessel seg store
563
+ # ----------------
564
+ #
565
+ # center point
566
+ # clipping planes (array[2 by 4])
567
+ # k
568
+ # ellipticity (d)
569
+ # A
570
+ # curvature (C)
571
+ # length (l) ( 0 < l < pi )
572
+ # tapering nature (T)
573
+ # Ql,Qr,R
574
+ #
575
+ # Also can convert circular torus segments to the above form if there are exactly two clipping planes and they
576
+ # both contain the major axis of the torus (C=radius of curvature;A=1/C^2; s=1-shape^2; k=A*s;d=0;T=0;)
577
+
578
+ return params
579
+
580
+ def parse_analytical_ppm(ppmPhantomFilename):
581
+ #NOTE: consider change obj to a class
582
+ obj = dict.fromkeys(['materialList', 'center', 'half_axes', 'euler_angs', 'density', 'type', 'material', 'axial_lims', 'shape', 'clip'])
583
+ with open(ppmPhantomFilename, 'r') as f:
584
+ all_lines = f.readlines()
585
+
586
+ key_indice = []
587
+ for line in all_lines:
588
+ if "materialList" in line:
589
+ material_list = line.strip().rstrip(";").split('=')[-1].lstrip('{').rstrip('}').split()
590
+ material_list = [tmp.strip().lstrip('{').rstrip('}').strip("'") for tmp in material_list]
591
+ obj['materialList'] = material_list
592
+ elif len(line) < 4: continue
593
+ else:
594
+ key_str, value_str = line.rstrip(";").split('=')
595
+ key_idx = int(''.join(filter(str.isdigit, key_str)))
596
+ key_indice.append(key_idx)
597
+
598
+ key_indice = set(key_indice)
599
+ for key in obj.keys():
600
+ if key != 'materialList': obj[key] = [[] for _ in range(len(key_indice))]
601
+
602
+ for line in all_lines:
603
+ if len(line) < 4: continue
604
+ elif "materialList" not in line:
605
+ key_str, value_str = line.rstrip(";").split('=')
606
+ key_word = key_str.split('.')[-1].split('(')[0].split('{')[0]
607
+ key_word = str(key_word)
608
+ key_idx = int(''.join(filter(str.isdigit, key_str)))
609
+
610
+ if '[' in value_str:
611
+ # extract substring in []
612
+ value_str = re.findall(r'\[([^]]*)\]', value_str)[0]
613
+ split_valstr = value_str.rstrip(';').split(';')
614
+ if len(split_valstr) == 1:
615
+ this_str = split_valstr[0].strip().rstrip(";").split(' ')
616
+ if len(this_str)==1 and this_str[0] == '':
617
+ value = []
618
+ else:
619
+ value = [eval(x) for x in this_str]
620
+ else:
621
+ value = []
622
+ for this_splvalstr in split_valstr:
623
+ _tmp = this_splvalstr.split(' ')
624
+ #breakpoint()
625
+ this_value = [eval(x) for x in _tmp]
626
+ value.append(this_value)
627
+ else:
628
+ this_str = value_str.strip().rstrip(";")
629
+ value = eval(this_str)
630
+ if 'clip' in key_word and len(value)>0 and len(np.array(value).shape)==1: value=[value]
631
+
632
+ obj[key_word][key_idx-1] = value
633
+
634
+ return obj
635
+
636
+ def Phantom_Analytic_SetObjects(objs=None, debug=False):
637
+ numObjects = objs['params'].shape[0]
638
+ print('Setting {} objects in the ANALYTIC phantom.'.format(numObjects))
639
+ phantObject = []
640
+ for i in range(numObjects):
641
+ tmp_dict = dict.fromkeys(('eta', 's', 'k', 'Q', 'xo', 'cp', 'matIndex', 'R'))
642
+ phantObject.append(tmp_dict)
643
+
644
+ pars = objs['params'][i]
645
+ cp = len(objs['clip'][i])
646
+ if cp > 0:
647
+ phantObject[i]['eta'] = objs['clip'][i][:,:3].T
648
+ phantObject[i]['s'] = objs['clip'][i][:,3].T
649
+ else:
650
+ #TODO: consider change to []
651
+ #phantObject[i]['eta'] = []
652
+ #phantObject[i]['s'] = []
653
+ phantObject[i]['eta'] = None
654
+ phantObject[i]['s'] = None
655
+ p1=pars[6]*np.pi / 180
656
+ p2=pars[7]*np.pi / 180
657
+ p3=pars[8]*np.pi / 180
658
+ R = np.array([[np.cos(p1)*np.cos(p3) - np.sin(p1)*np.cos(p2)*np.sin(p3), np.cos(p1)*np.sin(p3) + np.sin(p1)*np.cos(p2)*np.cos(p3), np.sin(p1)*np.sin(p2)],
659
+ [-np.sin(p1)*np.cos(p3) - np.cos(p1)*np.cos(p2)*np.sin(p3), -np.sin(p1)*np.sin(p3) + np.cos(p1)*np.cos(p2)*np.cos(p3), np.cos(p1)*np.sin(p2)],
660
+ [np.sin(p2)*np.sin(p3), - np.sin(p2)*np.cos(p3), np.cos(p2)]])
661
+
662
+ if (pars[10] != 3) and (pars[10] != 7):
663
+ if pars[10] == 1:
664
+ phantObject[i]['k'] = 1.
665
+ d=np.array(pars[3:6]) ** 2
666
+ elif pars[10] == 2:
667
+ phantObject[i]['k'] = 1.
668
+ d = np.concatenate((pars[3:5], [np.inf])) ** 2
669
+
670
+ if phantObject[i]['eta'] is None:
671
+ phantObject[i]['eta'] = np.vstack((R[2], -R[2])).T
672
+ else:
673
+ phantObject[i]['eta'] = np.hstack((phantObject[i]['eta'], R[2][:,None], -R[2][:,None]))
674
+ if phantObject[i]['s'] is None:
675
+ phantObject[i]['s'] = np.vstack((pars[5] + pars[:3]@R[2].T, pars[5] - pars[:3]@R[2].T))
676
+ else:
677
+ phantObject[i]['s'] = np.hstack((phantObject[i]['s'], pars[5] + pars[:3]@R[2].T, pars[5] - pars[:3]@R[2].T))
678
+ else:
679
+ print("Error! New materials, need to fix", pars[10])
680
+ sys.exit(1)
681
+ #elif pars(11) == 4:
682
+ # phantObject[i].k = copy(0)
683
+ # d=concat([pars(arange(4,5)) ** 2,- pars(6) ** 2])
684
+ # phantObject[i].eta = copy(concat([phantObject[i].eta,R(3,arange()).T,- R(3,arange()).T]))
685
+ # phantObject[i].s = copy(concat([phantObject[i].s,pars(15) + dot(pars(arange(1,3)),R(3,arange()).T),- pars(14) - dot(pars(arange(1,3)),R(3,arange()).T)]))
686
+ #elif pars(11) == 5:
687
+ # phantObject[i].k = copy(1)
688
+ # d=concat([pars(arange(4,5)) ** 2,- pars(6) ** 2])
689
+ # phantObject[i].eta = copy(concat([phantObject[i].eta,R(3,arange()).T,- R(3,arange()).T]))
690
+ # phantObject[i].s = copy(concat([phantObject[i].s,pars(15) + dot(pars(arange(1,3)),R(3,arange()).T),- pars(14) - dot(pars(arange(1,3)),R(3,arange()).T)]))
691
+ #elif pars(11) == 6:
692
+ # phantObject[i].k = copy(- 1)
693
+ # d=concat([pars(arange(4,5)) ** 2,- pars(6) ** 2])
694
+ # phantObject[i].eta = copy(concat([phantObject[i].eta,R(3,arange()).T,- R(3,arange()).T]))
695
+ # phantObject[i].s = copy(concat([phantObject[i].s,pars(15) + dot(pars(arange(1,3)),R(3,arange()).T),- pars(14) - dot(pars(arange(1,3)),R(3,arange()).T)]))
696
+ S = np.zeros((3,3), dtype=np.float64)
697
+ np.fill_diagonal(S, 1.0 / d) #in place ops
698
+ phantObject[i]['Q'] = R.T@S@R
699
+ elif pars[10] == 3:
700
+ Sl=np.zeros((3,3))
701
+ Sr=np.copy(Sl)
702
+ parst = pars[3:6]
703
+ np.fill_diagonal(S, 1.0 / parst**2)
704
+ Sr[0,0]=1.0 / parst[0] ** 2
705
+ Sr[1,1]=1.0 / parst[1] ** 2
706
+ phantObject[i]['Q'] = np.vstack((R.T*Sl*R, R.T*Sr*R))
707
+ phantObject[i]['k'] = 1. - pars[12] ** 2
708
+ #elif pars[11] == 7:
709
+ # # error('attempt to use incomplete code')
710
+ # C=pars(13)
711
+ # delta=pars(5)
712
+ # A=pars(6)
713
+ # k=pars(4)
714
+ # s=k / A
715
+ # shape=sqrt(1 - s)
716
+ # D_true=dot(1 / C ** 2,(1 + delta / 2))
717
+ # E_true=dot(1 / C ** 2,(1 - delta / 2))
718
+ # Sl=zeros(3)
719
+ # Sr=copy(Sl)
720
+ # Sl[concat([1,5,9])]=dot(concat([1,1,1]),A)
721
+ # Sr[concat([1,5])]=concat([D_true,E_true])
722
+ # phantObject[i].Q = copy(concat([dot(dot(R.T,Sl),R),dot(dot(R.T,Sr),R)]))
723
+ # phantObject[i].k = copy(s)
724
+ else:
725
+ sys.exit('Unknown object type.')
726
+
727
+ phantObject[i]['xo'] = pars[:3].T
728
+ if phantObject[i]['s'] is None:
729
+ phantObject[i]['cp'] = 0
730
+ else:
731
+ phantObject[i]['cp'] = len(phantObject[i]['s'])
732
+ phantObject[i]['typ'] = pars[10]
733
+ phantObject[i]['matIndex'] = pars[15]
734
+ phantObject[i]['R'] = R
735
+
736
+ # Write some of the data in phantObject to the memory of C
737
+ Q=[]
738
+ qt=np.zeros((3,6), dtype=np.float64)
739
+ Eta= np.hstack([x['eta'] for x in phantObject if x['eta'] is not None])
740
+ S = []
741
+ for x in phantObject:
742
+ if x['s'] is not None:
743
+ S += list(x['s'].ravel())
744
+ NumCP = []
745
+ for x in phantObject:
746
+ if x['s'] is not None:
747
+ NumCP.append(len(x['s']))
748
+ else:
749
+ NumCP.append(0)
750
+ K = np.hstack([x['k'] for x in phantObject if x['k'] is not None])
751
+ X = np.vstack([x['xo'] for x in phantObject if x['xo'] is not None])
752
+ C = np.hstack([x['cp'] for x in phantObject if x['cp'] is not None])
753
+ T = np.hstack([int(x['typ']) for x in phantObject if x['typ'] is not None])
754
+ D = np.hstack([x[9] for x in objs['params'] if x[9] is not None])
755
+ materialIndex = np.hstack([x['matIndex'] for x in phantObject if x['matIndex'] is not None])
756
+ for i in range(numObjects):
757
+ if phantObject[i]['Q'].shape[1] == 3:
758
+ Q.append(np.vstack((phantObject[i]['Q'], phantObject[i]['Q'])))
759
+ else:
760
+ Q.append(phantObject[i]['Q'])
761
+
762
+ Q = np.vstack(Q).T
763
+
764
+ materialCount = len(materialIndex)
765
+ cumCP = np.cumsum(NumCP)
766
+ cumCP= np.insert(cumCP, 0, 0)
767
+ if debug:
768
+ print("Q: sum={}, std={}\n".format(np.sum(Q), np.std(Q)))
769
+ breakpoint()
770
+ T = T.astype(np.int32)
771
+ S = np.array(S, dtype=np.float64)
772
+ X = X.T
773
+ cumCP = cumCP.astype(np.int32)
774
+ NumCP = np.array(NumCP).astype(np.int32)
775
+ materialIndex = materialIndex.astype(np.int32)
776
+ clib = load_C_lib()
777
+ func = clib.set_phantom_info
778
+ func.argtypes = [c_int, ndpointer(c_int), ndpointer(c_int), ndpointer(c_int), ndpointer(c_int), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), ndpointer(c_double), c_int]
779
+ func.restype = None
780
+ func(numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D, cumCP[-1])
781
+
782
+ return phantObject, numObjects, T, cumCP, NumCP, materialIndex, X, K, Q, Eta, S, D
783
+
784
+ def read_object(lines, offset):
785
+ obj = {}
786
+ clip = []
787
+ obj['type'] = lines[1 + offset].strip().split()[1]
788
+ A = np.zeros((4, 4))
789
+ for i in range(4):
790
+ A[i, :] = [float(x) for x in lines[i + 5 + offset].strip().split()]
791
+ if np.linalg.norm(A[3, :] - np.array([0, 0, 0, 1])) > 1e-5:
792
+ raise ValueError('Unexpected transform')
793
+
794
+ obj['cent'] = A[0:3, 3]
795
+ B = A[0:3, 0:3]
796
+ obj['hax'] = np.sqrt(np.sum(B * B, axis=0))
797
+ B = B / obj['hax']
798
+ B = B.T
799
+ try:
800
+ obj['ea'] = euler_angs(B) * 180 / np.pi
801
+ except ValueError:
802
+ breakpoint()
803
+
804
+ obj['transform'] = A
805
+ tmp = lines[15 + offset].strip().split()[0]
806
+ if tmp[0] == 'C': # clipping planes
807
+ i = 0
808
+ while tmp[0] == 'C':
809
+ v = [float(x) for x in lines[15 + offset].strip().split(',')[1:]]
810
+ clip.append(v)
811
+ clip[i][3] = float(lines[16 + offset].strip().split()[1])
812
+ clip[i] = [-x for x in clip[i]]
813
+ offset += 3
814
+ tmp = lines[15 + offset].strip().split()[0]
815
+ i += 1
816
+ else:
817
+ clip = []
818
+
819
+ if obj['type'][:3] == 'Cyl':
820
+ obj['type'] = 2
821
+ obj['hax'][2] = obj['hax'][2] / 2 # length needs to be divided by two for half axis
822
+ else:
823
+ if obj['type'][:3] == 'Cub':
824
+ obj['type'] = 2 # change to cylinder
825
+ old = False
826
+ if old:
827
+ Bt = B
828
+ else:
829
+ Bt = B.T
830
+ clip.extend([np.concatenate((Bt[:, 0], [obj['hax'][0] / 2 + np.dot(obj['cent'], Bt[:, 0])])),
831
+ np.concatenate((-Bt[:, 0], [obj['hax'][0] / 2 - np.dot(obj['cent'], Bt[:, 0])])),
832
+ np.concatenate((Bt[:, 1], [obj['hax'][1] / 2 + np.dot(obj['cent'], Bt[:, 1])])),
833
+ np.concatenate((-Bt[:, 1], [obj['hax'][1] / 2 - np.dot(obj['cent'], Bt[:, 1])]))])
834
+ obj['hax'][0:2] = obj['hax'][0:2] * np.sqrt(2) # cyl needs to be larger by sqrt(2) to contain cube
835
+ obj['hax'] = obj['hax'] / 2 # (/2 changes from full width to half)
836
+ else:
837
+ if obj['type'][:3] == 'Sph':
838
+ obj['type'] = 1
839
+ else:
840
+ if obj['type'][:3] == 'Ell':
841
+ obj['type'] = 1
842
+ else:
843
+ raise ValueError('Unrecognized obj type')
844
+
845
+ obj['material'] = int(lines[18 + offset].strip().split()[1])
846
+ obj['density'] = float(lines[19 + offset].strip().split()[1])
847
+ offset += 21
848
+
849
+ return obj, np.array(clip), lines, offset
850
+
851
+ def euler_angs(R):
852
+ p2 = np.real(np.arccos(R[2, 2])) # could also be -arccos, but we don't care which it is since the end result (R matrix) is the same
853
+ if np.abs(np.sin(p2)) > 1e-6:
854
+ p1 = np.arctan2(R[0, 2] / np.sin(p2), R[1, 2] / np.sin(p2))
855
+ p3 = np.arctan2(R[2, 0] / np.sin(p2), -R[2, 1] / np.sin(p2))
856
+ elif np.sign(np.cos(p2)) > 0:
857
+ p2 = 0
858
+ p3 = 0
859
+ p1 = np.arctan2(R[0, 1], R[0, 0])
860
+ else:
861
+ p2 = np.pi
862
+ p3 = 0
863
+ p1 = np.arctan2(-R[0, 1], R[0, 0])
864
+ Rnew = np.array([[np.cos(p1) * np.cos(p3) - np.sin(p1) * np.cos(p2) * np.sin(p3),
865
+ np.cos(p1) * np.sin(p3) + np.sin(p1) * np.cos(p2) * np.cos(p3),
866
+ np.sin(p1) * np.sin(p2)],
867
+ [-np.sin(p1) * np.cos(p3) - np.cos(p1) * np.cos(p2) * np.sin(p3),
868
+ -np.sin(p1) * np.sin(p3) + np.cos(p1) * np.cos(p2) * np.cos(p3),
869
+ np.cos(p1) * np.sin(p2)],
870
+ [np.sin(p2) * np.sin(p3),
871
+ -np.sin(p2) * np.cos(p3),
872
+ np.cos(p2)]])
873
+
874
+ err = np.linalg.norm((Rnew - R).reshape(-1))
875
+ if err > 1e-5:
876
+ breakpoint()
877
+ raise ValueError('Error computing Euler angles')
878
+ return np.array([p1, p2, p3])
879
+
880
+ def Phantom_Polygonal_ReadPolygon(Verts):
881
+
882
+ ddir = my_path.find_dir("phantom", "poly_bin")
883
+ filename = 'poly{}'.format(Verts)
884
+ with open(os.path.join(ddir, filename),'rb') as fid:
885
+ data_array = np.fromfile(fid, dtype=np.int32, count=4)
886
+ nv_sz1, nv_sz2, vx_sz1, vx_sz2 = data_array
887
+ tmp = np.fromfile(fid, dtype=np.float64)
888
+ nV = tmp[:nv_sz1*nv_sz2].reshape(nv_sz2,nv_sz1).T
889
+ Vx = tmp[nv_sz1*nv_sz2:].reshape(vx_sz2,vx_sz1).T
890
+
891
+ return Vx,nV
892
+
893
+ def Phantom_Analytic_pp_to_ppm(PhantomFileBasename, ppmPhantomFilename, Scale=1):
894
+
895
+ if not PhantomFileBasename:
896
+ raise ValueError('PhantomFileBasename must be specified')
897
+
898
+ ppPhantomFilename = f'{PhantomFileBasename}.pp'
899
+ tmpPhantomFilename = f'{PhantomFileBasename}.tmp'
900
+
901
+ C_Phantom_Analytic_FORBILD_to_tmp(np.double(Scale), ppPhantomFilename, tmpPhantomFilename)
902
+
903
+ with open(tmpPhantomFilename, 'r') as f:
904
+ lns = f.readlines()
905
+ # Delete the temporary file
906
+ os.remove(tmpPhantomFilename)
907
+
908
+ with open(ppmPhantomFilename, 'w') as f:
909
+ ind = [i for i, line in enumerate(lns) if line.startswith('#')]
910
+ if len(ind) < 2:
911
+ raise ValueError('material table not found')
912
+ else:
913
+ f.write('materialList = {')
914
+ for i in range(ind[0] + 1, ind[1]):
915
+ mn = lns[i].strip().split()
916
+ f.write(f"'{mn[0]}' ")
917
+ f.write('};\n\n')
918
+ offset = ind[1]
919
+
920
+ i = 0
921
+ while offset < len(lns) - 15:
922
+ i += 1
923
+ tmpo, tmpc, lns, offset = read_object(lns, offset)
924
+ f.write(f'object.center({i},:) = [{tmpo["cent"][0]:.6f} {tmpo["cent"][1]:.6f} {tmpo["cent"][2]:.6f}];\n')
925
+ f.write(f'object.half_axes({i},:) = [{tmpo["hax"][0]:.6f} {tmpo["hax"][1]:.6f} {tmpo["hax"][2]:.6f}];\n')
926
+ f.write(f'object.euler_angs({i},:) = [{tmpo["ea"][0]:.6f} {tmpo["ea"][1]:.6f} {tmpo["ea"][2]:.6f}];\n')
927
+ f.write(f'object.density({i}) = {tmpo["density"]:.6f};\n')
928
+ f.write(f'object.type({i}) = {tmpo["type"]};\n')
929
+ f.write(f'object.material({i}) = {tmpo["material"]};\n')
930
+ f.write(f'object.axial_lims({i},:) = [0 0];\n')
931
+ f.write(f'object.shape({i}) = 0;\n')
932
+ f.write(f'object.clip{{{i}}} = [')
933
+ for j in range(tmpc.shape[0]):
934
+ f.write(f'{tmpc[j, 0]:.6f} {tmpc[j, 1]:.6f} {tmpc[j, 2]:.6f} {tmpc[j, 3]:.6f};')
935
+ f.write('];\n\n')
936
+