bhishantryphysics

jupyter-notebook

Jun 14th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.92 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "markdown",
  5. "metadata": {
  6. "hideCode": false,
  7. "hidePrompt": false
  8. },
  9. "source": [
  10. "### Date : Jun 12, 2017 Mon\n",
  11. "### Summary : Testing jedimaster\n",
  12. "### Result : FAILED\n",
  13. "\n"
  14. ]
  15. },
  16. {
  17. "cell_type": "markdown",
  18. "metadata": {
  19. "hideCode": false,
  20. "hidePrompt": false
  21. },
  22. "source": [
  23. "1. I got the outputs of jedimaster_same_psf0 and one_loop_jedimaster.\n",
  24. "2. Compared HST.FITS and lsst0.fits from both outputs, result FAILED.\n",
  25. "3. Parameters used:\n",
  26. " one loop = jedicolor args were both 1.0"
  27. ]
  28. },
  29. {
  30. "cell_type": "code",
  31. "execution_count": null,
  32. "metadata": {
  33. "collapsed": true,
  34. "hideCode": false,
  35. "hidePrompt": false
  36. },
  37. "outputs": [],
  38. "source": [
  39. "# Changes in one loop jedimaster\n",
  40. "'''\n",
  41. "psf = ['psf/psf%d.fits' % i for i in range(1)]\n",
  42. "rescaled_lsst_outfile = ['jedisim_out/rescaled_lsst/rescaled_lsst_%d.fits'\n",
  43. " % i for i in range(1) ]\n",
  44. "run_process(\"jedicolor\", ['./executables/jedicolor',\n",
  45. " config['color_infile'],\n",
  46. " str(1.0), str(1.0) ])\n",
  47. "'''"
  48. ]
  49. },
  50. {
  51. "cell_type": "markdown",
  52. "metadata": {
  53. "hideCode": false,
  54. "hidePrompt": false
  55. },
  56. "source": [
  57. "### Date: June 13, 2017 Tue\n",
  58. "### Summary: Testing create_jedicolor_args\n"
  59. ]
  60. },
  61. {
  62. "cell_type": "code",
  63. "execution_count": null,
  64. "metadata": {
  65. "collapsed": true,
  66. "hideCode": false,
  67. "hidePrompt": false
  68. },
  69. "outputs": [],
  70. "source": [
  71. "Ilb = 4.6903969e-06, laml[0] = 2208.0000000, laml[1] = 2234.4761905\n",
  72. "Ilb = 1.0811318e-05, laml[20] = 2737.5238095, laml[21] = 2764.0000000\n",
  73. "\n",
  74. "# The range of laml are:\n",
  75. "laml = [2208.0, 2234.0, 2261.0, 2287.0, 2314.0, 2340.0, 2367.0, 2393.0, 2420.0, 2446.0, 2473.0, 2499.0, 2526.0, \n",
  76. " 2552.0, 2579.0, 2605.0, 2632.0, 2658.0, 2685.0, 2711.0, 2738.0, 2764.0]\n",
  77. "lamh = [5898.0, 5998.0, 6097.0, 6197.0, 6296.0, 6396.0, 6496.0, 6595.0, 6695.0, 6795.0, 6894.0, 6994.0, 7093.0, \n",
  78. " 7193.0, 7293.0, 7392.0, 7492.0, 7592.0, 7691.0, 7791.0, 7890.0, 7990.0]\n",
  79. "\n",
  80. "laml = [ 2208. 2234.47619048 2260.95238095 2287.42857143 2313.9047619\n",
  81. " 2340.38095238 2366.85714286 2393.33333333 2419.80952381 2446.28571429\n",
  82. " 2472.76190476 2499.23809524 2525.71428571 2552.19047619 2578.66666667\n",
  83. " 2605.14285714 2631.61904762 2658.0952381 2684.57142857 2711.04761905\n",
  84. " 2737.52380952 2764. ]\n",
  85. "\n",
  86. "lamh = \n",
  87. " [ 5898. 5997.61904762 6097.23809524 6196.85714286 6296.47619048\n",
  88. " 6396.0952381 6495.71428571 6595.33333333 6694.95238095 6794.57142857\n",
  89. " 6894.19047619 6993.80952381 7093.42857143 7193.04761905 7292.66666667\n",
  90. " 7392.28571429 7491.9047619 7591.52380952 7691.14285714 7790.76190476\n",
  91. " 7890.38095238 7990. ]\n",
  92. "\n",
  93. "\n",
  94. "# **sed file** \n",
  95. "# 2208.0 1.84513019624e-07 1.84282370291e-07\n",
  96. "\n",
  97. "# Outputs\n",
  98. "Ilb = [4.6903968749339998e-06, 4.6571558729443342e-06, 4.8635798194950002e-06, \n",
  99. " 4.7078427828713339e-06, 4.4231369867153331e-06, 4.4089244213865839e-06, \n",
  100. " 4.4277371321743342e-06, 4.3715355210064171e-06, 5.3247892752783337e-06, \n",
  101. " 5.4684569716699998e-06, 4.5442569184129993e-06, 4.4924738889891667e-06, \n",
  102. " 5.3638911379889998e-06, 7.2220447348052491e-06, 7.5010599722189996e-06, \n",
  103. " 7.3149464738010826e-06, 1.7910793972782668e-05, 1.5949918845252085e-05, \n",
  104. " 1.671509828222633e-05, 1.0994193905745251e-05, 1.0811318459904999e-05]\n",
  105. "Ild = [0.00061422549434196681, 0.00058711598274869983, 0.00061970266368843339, 0.00058320998289951667, \n",
  106. " 0.0005263389657528, 0.00053231453588329161, 0.00053468511679656669, 0.00051638004855998339, \n",
  107. " 0.00056124740487846665, 0.00054620775157538336, 0.00054282793092296671, 0.00052731680090986664, \n",
  108. " 0.00052957457793649998, 0.00053636890521508319, 0.00056218084492309992, 0.00052893913499545001, \n",
  109. " 0.00061118169013153322, 0.00057375173665417489, 0.00058838577882906664, 0.00055189399650721672, \n",
  110. " 0.00053975083037946666]\n",
  111. "\n",
  112. "# The outputs of create_jedimaster_args.py are good.\n",
  113. "# I tested the integrals separately and they yield the same values."
  114. ]
  115. },
  116. {
  117. "cell_type": "markdown",
  118. "metadata": {
  119. "hideCode": false,
  120. "hidePrompt": false
  121. },
  122. "source": [
  123. "# Date : Jun 12, 2017 Mon\n",
  124. "### Summary : Comparison of same_psf0 and one_loop_jedimaster\n",
  125. "### Test : catalogs that creates\n",
  126. "\n"
  127. ]
  128. },
  129. {
  130. "cell_type": "code",
  131. "execution_count": 2,
  132. "metadata": {
  133. "collapsed": false
  134. },
  135. "outputs": [
  136. {
  137. "data": {
  138. "text/plain": [
  139. "'\\n1. When I changed the jedicolor program and tested outputs of 21 same psf0.fits and one_loop_jedimaster\\n I got different HST.fits.\\n2. I tested for the consistency of the code that calculates the jedicolor args.\\n3. The integrals and args created by create_jedicolor_args.py are GOOD.\\n4. Now I will take the same jedicatalogs to create the HST.fits.\\n Create catalog once and use them in both of the programs and comment out jedicatalog.c.\\n'"
  140. ]
  141. },
  142. "execution_count": 2,
  143. "metadata": {},
  144. "output_type": "execute_result"
  145. }
  146. ],
  147. "source": [
  148. "'''\n",
  149. "1. When I changed the jedicolor program and tested outputs of 21 same psf0.fits and one_loop_jedimaster\n",
  150. " I got different HST.fits.\n",
  151. "2. I tested for the consistency of the code that calculates the jedicolor args.\n",
  152. "3. The integrals and args created by create_jedicolor_args.py are GOOD.\n",
  153. "4. Now I will take the same jedicatalogs to create the HST.fits.\n",
  154. " Create catalog once and use them in both of the programs and comment out jedicatalog.c.\n",
  155. "5. Result: SUCCESS!!\n",
  156. "'''"
  157. ]
  158. },
  159. {
  160. "cell_type": "code",
  161. "execution_count": null,
  162. "metadata": {
  163. "collapsed": true
  164. },
  165. "outputs": [],
  166. "source": [
  167. "# I can not edit notebook markdown cells."
  168. ]
  169. }
  170. ],
  171. "metadata": {
  172. "hide_code_all_hidden": false,
  173. "kernelspec": {
  174. "display_name": "Python 3",
  175. "language": "python",
  176. "name": "python3"
  177. },
  178. "language_info": {
  179. "codemirror_mode": {
  180. "name": "ipython",
  181. "version": 3
  182. },
  183. "file_extension": ".py",
  184. "mimetype": "text/x-python",
  185. "name": "python",
  186. "nbconvert_exporter": "python",
  187. "pygments_lexer": "ipython3",
  188. "version": "3.5.2"
  189. }
  190. },
  191. "nbformat": 4,
  192. "nbformat_minor": 1
  193. }
Advertisement
Add Comment
Please, Sign In to add comment