mirror of
https://asciireactor.com/otho/phy-4660.git
synced 2024-11-25 11:45:06 +00:00
817 lines
159 KiB
Plaintext
817 lines
159 KiB
Plaintext
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 1,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Populating the interactive namespace from numpy and matplotlib\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"<Container object of 3 artists>"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 1,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAg8AAAFkCAYAAACn/timAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAIABJREFUeJzt3X18VPWd9/9XSAKSRBRwbFEoxFBYg1pNKhD6s+qCqFBy\n1UI35PGzbbjorle73V2vSzK22u7P31W07aRre117tbXXlpL21zWmWnYXoevderNU7mro9sb4kxID\nyO2MiDcQhNyc64/vHOcmM8lM5szMOTPv5+ORR2BmMufkmzPnfM73+/l+viAiIiIiIiIiIiIiIiIi\nIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIjJm+4GhBF//K4/7JCIiIi42Fbg46msxJnj4\neD53SkRERLzju8DefO+EiIiIeMN44A3gy/neEREREXFOWRbf+5PABUD7CK+ZFv4SERGR9BwNf+Vc\nSRbf+0ngPeA/JXl+2iWXXHLkyJEjWdwFERGRgnUYuJY8BBDZ6nmYiUmWvG2E10w7cuQIP/vZz7j8\n8suztBsS78477+S73/1uvnejqKjNc09tnntq89x65ZVXuP322y/F9N4XTPCwBjgObB3thZdffjl1\ndXVZ2g2Jd+GFF6q9c0xt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24loKHkRSFAwG+cUvniVxkKDx62IUm7dgqkbCVmAz8EsGBj7E2rW+\nhEGAz+fjD3/oZPXqn1FVVQdcCXyUqqq/orFxHj/7mZJtxb2U8yCSorvvbqO//xISBwkavy5Go+Ut\nzJw5yObNyX/esix+/et
|
||
|
"text/plain": [
|
||
|
"<matplotlib.figure.Figure at 0x7f60c13cfc10>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"import numpy as np\n",
|
||
|
"import sys\n",
|
||
|
"import getopt\n",
|
||
|
"sys.path.insert(1,\"/usr/local/science/clag/\")\n",
|
||
|
"import clag\n",
|
||
|
"%pylab inline\n",
|
||
|
"\n",
|
||
|
"from scipy.stats import norm\n",
|
||
|
"from scipy.stats import lognorm\n",
|
||
|
"\n",
|
||
|
"ref_file=\"lc/1367A.lc\"\n",
|
||
|
"echo_file=\"lc/6175A.lc\"\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"dt = 0.01\n",
|
||
|
"t1, l1, l1e = np.loadtxt(ref_file).T\n",
|
||
|
"errorbar(t1, l1, yerr=l1e, fmt='o')"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 2,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"array([ 0.00964867, 0.02886003, 0.0556922 , 0.08632291, 0.13380051,\n",
|
||
|
" 0.20739079, 0.32145572, 0.49825637])"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 2,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"fqL = np.array([0.0049999999, 0.018619375, 0.044733049, 0.069336227, 0.10747115, 0.16658029, \n",
|
||
|
" 0.25819945, 0.40020915, 0.62032418])\n",
|
||
|
"# fqL = np.logspace(np.log10(0.0006),np.log10(1.2),11)\n",
|
||
|
"nfq = len(fqL) - 1\n",
|
||
|
"fqd = 10**(np.log10( (fqL[:-1]*fqL[1:]) )/2.)\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"fqd\n",
|
||
|
"\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 3,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
" 1 4.342e-01 5.077e+01 inf -- -5.530e+02 -- 1 1 1 1 1 1 1 1\n",
|
||
|
" 2 7.674e-01 5.065e+01 8.300e+01 -- -4.700e+02 -- 0.653018 0.587019 0.568277 0.567457 0.566281 0.566085 0.565773 0.566163\n",
|
||
|
" 3 3.298e+00 5.043e+01 8.075e+01 -- -3.893e+02 -- 0.414806 0.209135 0.141159 0.13784 0.133393 0.132728 0.131612 0.132761\n",
|
||
|
" 4 1.572e+00 5.010e+01 7.754e+01 -- -3.117e+02 -- 0.322539 -0.0834456 -0.273066 -0.284295 -0.297612 -0.299435 -0.302479 -0.300412\n",
|
||
|
" 5 5.908e-01 4.964e+01 7.386e+01 -- -2.379e+02 -- 0.302357 -0.214604 -0.654658 -0.688754 -0.723838 -0.729279 -0.736418 -0.733888\n",
|
||
|
" 6 3.713e-01 4.877e+01 6.953e+01 -- -1.683e+02 -- 0.284419 -0.200357 -0.96379 -1.05472 -1.13798 -1.15477 -1.17031 -1.16748\n",
|
||
|
" 7 2.709e-01 4.671e+01 6.269e+01 -- -1.056e+02 -- 0.277768 -0.185001 -1.13047 -1.34026 -1.52128 -1.56845 -1.6043 -1.60101\n",
|
||
|
" 8 2.135e-01 4.361e+01 5.281e+01 -- -5.282e+01 -- 0.277012 -0.185189 -1.16375 -1.49463 -1.83211 -1.9477 -2.03737 -2.03476\n",
|
||
|
" 9 1.764e-01 3.767e+01 4.019e+01 -- -1.264e+01 -- 0.282161 -0.184207 -1.17891 -1.53049 -2.01851 -2.24569 -2.46562 -2.46922\n",
|
||
|
" 10 1.508e-01 2.738e+01 2.645e+01 -- 1.382e+01 -- 0.289545 -0.182463 -1.18795 -1.52893 -2.08812 -2.41103 -2.87498 -2.90486\n",
|
||
|
" 11 1.349e-01 1.468e+01 1.390e+01 -- 2.772e+01 -- 0.293547 -0.180898 -1.1897 -1.52803 -2.10944 -2.46526 -3.22702 -3.34288\n",
|
||
|
" 12 1.358e-01 5.365e+00 5.378e+00 -- 3.309e+01 -- 0.295456 -0.179941 -1.19052 -1.52801 -2.11928 -2.48294 -3.46233 -3.79368\n",
|
||
|
" 13 1.868e-01 1.338e+00 1.633e+00 -- 3.473e+01 -- 0.297315 -0.17923 -1.19104 -1.52666 -2.12491 -2.48975 -3.55567 -4.30889\n",
|
||
|
" 14 6.248e-01 2.604e-01 4.517e-01 -- 3.518e+01 -- 0.299091 -0.178645 -1.191 -1.52463 -2.12805 -2.4915 -3.5672 -5.11363\n",
|
||
|
" 15 2.744e+02 2.611e-01 7.022e-02 -- 3.525e+01 -- 0.300248 -0.178286 -1.19075 -1.52307 -2.12961 -2.49161 -3.56337 -8\n",
|
||
|
" 16 2.745e+02 2.782e-01 4.368e-04 -- 3.525e+01 -- 0.300566 -0.178158 -1.19062 -1.52252 -2.13009 -2.49151 -3.5617 -8\n",
|
||
|
" 17 2.745e+02 2.805e-01 6.410e-05 -- 3.525e+01 -- 0.300599 -0.178134 -1.19059 -1.52242 -2.13017 -2.49148 -3.56148 -8\n",
|
||
|
"********************\n",
|
||
|
"0.300599 -0.178134 -1.19059 -1.52242 -2.13017 -2.49148 -3.56148 -8\n",
|
||
|
"0.238931 0.202434 0.232634 0.177249 0.153039 0.132988 0.297259 3285.23\n",
|
||
|
"-0.000915535 -0.00131061 -0.00195128 -0.00497899 -0.0226059 -0.0776175 -0.280541 -0.000206646\n",
|
||
|
"********************\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"P1 = clag.clag('psd10r', [t1], [l1], [l1e], dt, fqL)\n",
|
||
|
"p1 = np.ones(nfq)\n",
|
||
|
"p1, p1e = clag.optimize(P1, p1)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 4,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"\t### errors for param 0 ###\n",
|
||
|
"+++ 3.525e+01 3.480e+01 3.006e-01 5.395e-01 0.891 +++\n",
|
||
|
"+++ 3.525e+01 3.431e+01 3.006e-01 6.590e-01 1.87 +++\n",
|
||
|
"+++ 3.525e+01 3.458e+01 3.006e-01 5.993e-01 1.34 +++\n",
|
||
|
"+++ 3.525e+01 3.469e+01 3.006e-01 5.694e-01 1.11 +++\n",
|
||
|
"+++ 3.525e+01 3.475e+01 3.006e-01 5.545e-01 0.997 +++\n",
|
||
|
"\t### errors for param 1 ###\n",
|
||
|
"+++ 3.525e+01 3.476e+01 -1.781e-01 2.430e-02 0.973 +++\n",
|
||
|
"+++ 3.525e+01 3.421e+01 -1.781e-01 1.255e-01 2.07 +++\n",
|
||
|
"+++ 3.525e+01 3.451e+01 -1.781e-01 7.491e-02 1.48 +++\n",
|
||
|
"+++ 3.525e+01 3.464e+01 -1.781e-01 4.961e-02 1.21 +++\n",
|
||
|
"+++ 3.525e+01 3.470e+01 -1.781e-01 3.696e-02 1.09 +++\n",
|
||
|
"+++ 3.525e+01 3.473e+01 -1.781e-01 3.063e-02 1.03 +++\n",
|
||
|
"+++ 3.525e+01 3.475e+01 -1.781e-01 2.747e-02 1 +++\n",
|
||
|
"\t### errors for param 2 ###\n",
|
||
|
"+++ 3.525e+01 3.511e+01 -1.191e+00 -1.074e+00 0.276 +++\n",
|
||
|
"+++ 3.525e+01 3.495e+01 -1.191e+00 -1.016e+00 0.598 +++\n",
|
||
|
"+++ 3.525e+01 3.485e+01 -1.191e+00 -9.870e-01 0.8 +++\n",
|
||
|
"+++ 3.525e+01 3.479e+01 -1.191e+00 -9.725e-01 0.91 +++\n",
|
||
|
"+++ 3.525e+01 3.476e+01 -1.191e+00 -9.652e-01 0.968 +++\n",
|
||
|
"+++ 3.525e+01 3.475e+01 -1.191e+00 -9.616e-01 0.997 +++\n",
|
||
|
"\t### errors for param 3 ###\n",
|
||
|
"+++ 3.525e+01 3.482e+01 -1.522e+00 -1.345e+00 0.865 +++\n",
|
||
|
"+++ 3.525e+01 3.432e+01 -1.522e+00 -1.257e+00 1.86 +++\n",
|
||
|
"+++ 3.525e+01 3.459e+01 -1.522e+00 -1.301e+00 1.32 +++\n",
|
||
|
"+++ 3.525e+01 3.471e+01 -1.522e+00 -1.323e+00 1.08 +++\n",
|
||
|
"+++ 3.525e+01 3.476e+01 -1.522e+00 -1.334e+00 0.97 +++\n",
|
||
|
"+++ 3.525e+01 3.473e+01 -1.522e+00 -1.329e+00 1.03 +++\n",
|
||
|
"+++ 3.525e+01 3.475e+01 -1.522e+00 -1.331e+00 0.998 +++\n",
|
||
|
"\t### errors for param 4 ###\n",
|
||
|
"+++ 3.525e+01 3.481e+01 -2.130e+00 -1.977e+00 0.874 +++\n",
|
||
|
"+++ 3.525e+01 3.429e+01 -2.130e+00 -1.901e+00 1.91 +++\n",
|
||
|
"+++ 3.525e+01 3.457e+01 -2.130e+00 -1.939e+00 1.35 +++\n",
|
||
|
"+++ 3.525e+01 3.470e+01 -2.130e+00 -1.958e+00 1.1 +++\n",
|
||
|
"+++ 3.525e+01 3.476e+01 -2.130e+00 -1.968e+00 0.983 +++\n",
|
||
|
"+++ 3.525e+01 3.473e+01 -2.130e+00 -1.963e+00 1.04 +++\n",
|
||
|
"+++ 3.525e+01 3.474e+01 -2.130e+00 -1.965e+00 1.01 +++\n",
|
||
|
"+++ 3.525e+01 3.475e+01 -2.130e+00 -1.966e+00 0.997 +++\n",
|
||
|
"\t### errors for param 5 ###\n",
|
||
|
"+++ 3.525e+01 3.474e+01 -2.491e+00 -2.358e+00 1.01 +++\n",
|
||
|
"+++ 3.525e+01 3.512e+01 -2.491e+00 -2.425e+00 0.263 +++\n",
|
||
|
"+++ 3.525e+01 3.496e+01 -2.491e+00 -2.392e+00 0.579 +++\n",
|
||
|
"+++ 3.525e+01 3.486e+01 -2.491e+00 -2.375e+00 0.781 +++\n",
|
||
|
"+++ 3.525e+01 3.480e+01 -2.491e+00 -2.367e+00 0.893 +++\n",
|
||
|
"+++ 3.525e+01 3.477e+01 -2.491e+00 -2.363e+00 0.952 +++\n",
|
||
|
"+++ 3.525e+01 3.476e+01 -2.491e+00 -2.361e+00 0.982 +++\n",
|
||
|
"+++ 3.525e+01 3.475e+01 -2.491e+00 -2.360e+00 0.997 +++\n",
|
||
|
"\t### errors for param 6 ###\n",
|
||
|
"+++ 3.525e+01 3.507e+01 -3.561e+00 -3.413e+00 0.363 +++\n",
|
||
|
"+++ 3.525e+01 3.484e+01 -3.561e+00 -3.339e+00 0.814 +++\n",
|
||
|
"+++ 3.525e+01 3.468e+01 -3.561e+00 -3.301e+00 1.13 +++\n",
|
||
|
"+++ 3.525e+01 3.477e+01 -3.561e+00 -3.320e+00 0.962 +++\n",
|
||
|
"+++ 3.525e+01 3.473e+01 -3.561e+00 -3.311e+00 1.04 +++\n",
|
||
|
"+++ 3.525e+01 3.475e+01 -3.561e+00 -3.315e+00 1 +++\n",
|
||
|
"\t### errors for param 7 ###\n",
|
||
|
"+++ 3.525e+01 3.524e+01 -8.000e+00 -6.000e+00 0.0178 +++\n",
|
||
|
"+++ 3.525e+01 3.515e+01 -8.000e+00 -5.000e+00 0.187 +++\n",
|
||
|
"+++ 3.525e+01 3.494e+01 -8.000e+00 -4.500e+00 0.618 +++\n",
|
||
|
"+++ 3.525e+01 3.466e+01 -8.000e+00 -4.250e+00 1.18 +++\n",
|
||
|
"+++ 3.525e+01 3.482e+01 -8.000e+00 -4.375e+00 0.851 +++\n",
|
||
|
"+++ 3.525e+01 3.475e+01 -8.000e+00 -4.312e+00 1 +++\n",
|
||
|
"********************\n",
|
||
|
"0.300605 -0.178131 -1.19059 -1.52241 -2.13019 -2.49148 -3.56144 -8\n",
|
||
|
"0.253864 0.205597 0.228999 0.191096 0.1638 0.131949 0.246154 3.6875\n",
|
||
|
"********************\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"p1, p1e = clag.errors(P1, p1, p1e)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 5,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"<Container object of 3 artists>"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 5,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAgkAAAFrCAYAAABbtho0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAGp1JREFUeJzt3X9s4/d93/HnxZaj5dxOi12RZ+98bLhdaBhJDbLSHzrb\n5TIn2IY26dBOIbFsiLTCQdoOuHUrcMMgzZCAYS2G9uqua3FbD9kQjNQNaDYH2LXFUKW5UVqnimm7\nbmadUT+W5kxmTXvr6kSpVnt/UHeR1I9+8I7fL389HwAhivx8vp+3cJ+TXvx+P9/vFyRJkiRJkiRJ\nkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkvSA/iGwBvwh0AQ+A1zsakWSJKkn3AT+NvA08H7gs8AW\n8K4u1iRJknrQ48BbwHPdLkSSJJ3sHTGONbb39fdjHFOSJPW4M7QON/xqtwuRJEmn83BM4/xz4BmO\nP9Rwbu8hSZLa88beo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b7AWrh8uXL\njI2NHXjNTwaSJLXs35t21507dyIbr52Q8NW9R2SuXr3qJwJJko4Q+uB8d69aFKJak/AU8O69rw8B\n3wGcAb4IvBnRmJIkqYOiOrthgdbahJeBs8AXgHUgmqgjaWhsbW0xOzvL9PQ0ANPT08zOzrK1tdXd\nwqQBFNWehI/jNRIkdVCz2aRQKFCr1Wg0Gvder9fr1Ot1bt68SSaToVwuk0gkulipNDg8BVJSz2s2\nm0xNTbGxsXFkm0ajQaPR4NKlS1QqFYOC1AFeTElSzysUCscGhP3q9TqFQiHiiqThYEiQ1NM2Nzep\n1Wpt9anVaq5RkDrAkCC
|
||
|
"text/plain": [
|
||
|
"<matplotlib.figure.Figure at 0x7f60e50f8b90>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"xscale('log'); ylim(-4,2)\n",
|
||
|
"errorbar(fqd, p1, yerr=p1e, fmt='o', ms=10, color=\"black\")\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 6,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"<Container object of 3 artists>"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 6,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAg8AAAFkCAYAAACn/timAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAIABJREFUeJzt3Xt8k/d99/+XfAQbjEniQLBJICam2CXj0DoE0qQdJIRl\ny6klxWnv1vyyhe6RbsuWDe6t2256/3Yf5q2Hde1vwJbFSbMqp3ZJ1rRA3TbhEBI3kCwM0Tg4kGAD\nsSCcbAM+6ffHV5cs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IOgeF5C2UYkYgvgDcD3wRBiYP8EDLAxFHECoqKnjx+y8yeedkqPX/zP3Al6B7\nZTe/88Xfwev1pug3EYmPggeRGLW+1Qr5RA4SKlC9hxw0Vt7CNWXX8GLDixGLPbn3u1n5yErO33Ze\nuTKScRQ8iMRogIHoQcIyYBvwAar3ECSess2ZKJEiYQ3zGyg7V6ZcGclICh5EYlRAASwlcmLcKSi4\nVMAa1jB762z4AczeOpvG4sacbsud7VUUEy0SpuWakqk0ESsSo/oF9XhOe0YmxvmAEsivzqetvo05\nn55D4dlCrplyDacKTvFAywM0fLwhJ/sUhFRRtFjD8phh+ce+91i6dm/crHofbzz7BmfOnIGXMEFD\nEeRNyKP8mvJAk6uGiuh/d/VGkUylM1MkRoHs+IXtsAJzERwCOs1d5p4Xc3eEIZrAaoRIKqG1JTOH\n5a1GWB8t/MisvvGvrqATZr85mz3u2M6F+gX1eDo8ocGVRbky4mCathCJUUVFBXu27qGxuDHq1ES2\nz/HHK1uH5e3qS6HeKJK
|
||
|
"text/plain": [
|
||
|
"<matplotlib.figure.Figure at 0x7f60c0f38e50>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"t2, l2, l2e = np.loadtxt(echo_file).T\n",
|
||
|
"errorbar(t1, l1, yerr=l1e, fmt='o', color=\"green\")\n",
|
||
|
"errorbar(t2, l2, yerr=l2e, fmt='o', color=\"black\")"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 7,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
" 1 4.356e-01 6.706e+01 inf -- -2.964e+02 -- 1 1 1 1 1 1 1 1\n",
|
||
|
" 2 7.719e-01 6.609e+01 8.091e+01 -- -2.155e+02 -- 0.566297 0.565079 0.565579 0.565108 0.564503 0.565385 0.564367 0.564961\n",
|
||
|
" 3 3.379e+00 6.484e+01 7.996e+01 -- -1.355e+02 -- 0.138579 0.130954 0.131695 0.130103 0.128857 0.130335 0.128712 0.130511\n",
|
||
|
" 4 1.429e+00 6.354e+01 7.865e+01 -- -5.686e+01 -- -0.27205 -0.301257 -0.300578 -0.304918 -0.306545 -0.305024 -0.306246 -0.301896\n",
|
||
|
" 5 5.891e-01 6.225e+01 7.700e+01 -- 2.014e+01 -- -0.639865 -0.728428 -0.729483 -0.7395 -0.741278 -0.740758 -0.740477 -0.732461\n",
|
||
|
" 6 3.717e-01 6.064e+01 7.473e+01 -- 9.487e+01 -- -0.916158 -1.1392 -1.15122 -1.17266 -1.17468 -1.17713 -1.17495 -1.16261\n",
|
||
|
" 7 2.723e-01 5.813e+01 7.142e+01 -- 1.663e+02 -- -1.05542 -1.49675 -1.55907 -1.60318 -1.60661 -1.61473 -1.61106 -1.59295\n",
|
||
|
" 8 2.151e-01 5.427e+01 6.693e+01 -- 2.332e+02 -- -1.09159 -1.71699 -1.94737 -2.02949 -2.03872 -2.0544 -2.04928 -2.02094\n",
|
||
|
" 9 1.766e-01 4.902e+01 6.164e+01 -- 2.949e+02 -- -1.0864 -1.76184 -2.31512 -2.44735 -2.4733 -2.49635 -2.4886 -2.44039\n",
|
||
|
" 10 1.488e-01 4.321e+01 5.498e+01 -- 3.498e+02 -- -1.06321 -1.76835 -2.64945 -2.8386 -2.90987 -2.9371 -2.92734 -2.84392\n",
|
||
|
" 11 1.266e-01 3.774e+01 4.629e+01 -- 3.961e+02 -- -1.05206 -1.78791 -2.90485 -3.15492 -3.34002 -3.36876 -3.363 -3.22984\n",
|
||
|
" 12 1.020e-01 3.183e+01 3.581e+01 -- 4.319e+02 -- -1.04328 -1.80162 -3.05493 -3.33738 -3.73969 -3.77247 -3.78883 -3.60537\n",
|
||
|
" 13 8.417e-02 2.370e+01 2.339e+01 -- 4.553e+02 -- -1.03318 -1.80414 -3.12825 -3.41545 -4.06016 -4.10442 -4.17529 -3.97261\n",
|
||
|
" 14 5.584e-02 1.304e+01 1.058e+01 -- 4.659e+02 -- -1.02449 -1.80162 -3.1555 -3.47184 -4.25708 -4.30813 -4.44309 -4.307\n",
|
||
|
" 15 2.209e-02 4.062e+00 2.538e+00 -- 4.684e+02 -- -1.02032 -1.79854 -3.15803 -3.51038 -4.34263 -4.3778 -4.52295 -4.54752\n",
|
||
|
" 16 5.247e-03 5.023e-01 2.477e-01 -- 4.687e+02 -- -1.02062 -1.79556 -3.15642 -3.51858 -4.37903 -4.39008 -4.51121 -4.64796\n",
|
||
|
" 17 2.880e-03 1.411e-01 1.010e-02 -- 4.687e+02 -- -1.02146 -1.79354 -3.15518 -3.51435 -4.40201 -4.39592 -4.50461 -4.66221\n",
|
||
|
" 18 1.495e-03 7.076e-02 1.728e-03 -- 4.687e+02 -- -1.02146 -1.79301 -3.15424 -3.51272 -4.41468 -4.39804 -4.50083 -4.6632\n",
|
||
|
" 19 7.709e-04 3.584e-02 4.325e-04 -- 4.687e+02 -- -1.02146 -1.79285 -3.15372 -3.51155 -4.42128 -4.39875 -4.49916 -4.66361\n",
|
||
|
" 20 3.958e-04 1.822e-02 1.104e-04 -- 4.687e+02 -- -1.02145 -1.79279 -3.15346 -3.51104 -4.42469 -4.39897 -4.4983 -4.66381\n",
|
||
|
" 21 2.024e-04 9.268e-03 2.840e-05 -- 4.687e+02 -- -1.02145 -1.79276 -3.15333 -3.51076 -4.42644 -4.39904 -4.4979 -4.6639\n",
|
||
|
"********************\n",
|
||
|
"-1.02145 -1.79276 -3.15333 -3.51076 -4.42644 -4.39904 -4.4979 -4.6639\n",
|
||
|
"0.234388 0.20444 0.264527 0.210547 0.308149 0.209858 0.179189 0.173278\n",
|
||
|
"1.75973e-05 0.000353327 0.000863132 0.0021508 -0.00926831 -0.00174289 0.00467078 -0.00131932\n",
|
||
|
"********************\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"P2 = clag.clag('psd10r', [t2], [l2], [l2e], dt, fqL)\n",
|
||
|
"p2 = np.ones(nfq)\n",
|
||
|
"p2, p2e = clag.optimize(P2, p2)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 8,
|
||
|
"metadata": {
|
||
|
"collapsed": false,
|
||
|
"scrolled": true
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"\t### errors for param 0 ###\n",
|
||
|
"+++ 4.687e+02 4.637e+02 -1.021e+00 -2.145e-02 9.96 +++\n",
|
||
|
"+++ 4.687e+02 4.671e+02 -1.021e+00 -5.214e-01 3.22 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -1.021e+00 -7.714e-01 0.935 +++\n",
|
||
|
"+++ 4.687e+02 4.677e+02 -1.021e+00 -6.464e-01 1.95 +++\n",
|
||
|
"+++ 4.687e+02 4.680e+02 -1.021e+00 -7.089e-01 1.41 +++\n",
|
||
|
"+++ 4.687e+02 4.681e+02 -1.021e+00 -7.402e-01 1.16 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -1.021e+00 -7.558e-01 1.05 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -1.021e+00 -7.636e-01 0.99 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -1.021e+00 -7.597e-01 1.02 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -1.021e+00 -7.617e-01 1 +++\n",
|
||
|
"\t### errors for param 1 ###\n",
|
||
|
"+++ 4.687e+02 4.683e+02 -1.793e+00 -1.589e+00 0.875 +++\n",
|
||
|
"+++ 4.687e+02 4.678e+02 -1.793e+00 -1.487e+00 1.84 +++\n",
|
||
|
"+++ 4.687e+02 4.680e+02 -1.793e+00 -1.538e+00 1.33 +++\n",
|
||
|
"+++ 4.687e+02 4.681e+02 -1.793e+00 -1.563e+00 1.09 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -1.793e+00 -1.576e+00 0.981 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -1.793e+00 -1.569e+00 1.04 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -1.793e+00 -1.573e+00 1.01 +++\n",
|
||
|
"\t### errors for param 2 ###\n",
|
||
|
"+++ 4.687e+02 4.683e+02 -3.153e+00 -2.889e+00 0.804 +++\n",
|
||
|
"+++ 4.687e+02 4.678e+02 -3.153e+00 -2.756e+00 1.76 +++\n",
|
||
|
"+++ 4.687e+02 4.681e+02 -3.153e+00 -2.823e+00 1.24 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -3.153e+00 -2.856e+00 1.01 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -3.153e+00 -2.872e+00 0.904 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -3.153e+00 -2.864e+00 0.957 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -3.153e+00 -2.860e+00 0.983 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -3.153e+00 -2.858e+00 0.997 +++\n",
|
||
|
"\t### errors for param 3 ###\n",
|
||
|
"+++ 4.687e+02 4.686e+02 -3.511e+00 -3.405e+00 0.282 +++\n",
|
||
|
"+++ 4.687e+02 4.684e+02 -3.511e+00 -3.353e+00 0.62 +++\n",
|
||
|
"+++ 4.687e+02 4.683e+02 -3.511e+00 -3.326e+00 0.835 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -3.511e+00 -3.313e+00 0.953 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -3.511e+00 -3.307e+00 1.01 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -3.511e+00 -3.310e+00 0.984 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -3.511e+00 -3.308e+00 0.999 +++\n",
|
||
|
"\t### errors for param 4 ###\n",
|
||
|
"+++ 4.687e+02 4.683e+02 -4.427e+00 -4.119e+00 0.792 +++\n",
|
||
|
"+++ 4.687e+02 4.678e+02 -4.427e+00 -3.965e+00 1.84 +++\n",
|
||
|
"+++ 4.687e+02 4.680e+02 -4.427e+00 -4.042e+00 1.31 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -4.427e+00 -4.080e+00 1.03 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -4.427e+00 -4.100e+00 0.907 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -4.427e+00 -4.090e+00 0.968 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -4.427e+00 -4.085e+00 1 +++\n",
|
||
|
"\t### errors for param 5 ###\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -4.399e+00 -4.189e+00 0.899 +++\n",
|
||
|
"+++ 4.687e+02 4.677e+02 -4.399e+00 -4.084e+00 1.98 +++\n",
|
||
|
"+++ 4.687e+02 4.680e+02 -4.399e+00 -4.137e+00 1.33 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -4.399e+00 -4.163e+00 1.06 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -4.399e+00 -4.176e+00 0.941 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -4.399e+00 -4.170e+00 1 +++\n",
|
||
|
"\t### errors for param 6 ###\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -4.498e+00 -4.319e+00 1.01 +++\n",
|
||
|
"\t### errors for param 7 ###\n",
|
||
|
"+++ 4.687e+02 4.686e+02 -4.664e+00 -4.577e+00 0.267 +++\n",
|
||
|
"+++ 4.687e+02 4.684e+02 -4.664e+00 -4.534e+00 0.602 +++\n",
|
||
|
"+++ 4.687e+02 4.683e+02 -4.664e+00 -4.512e+00 0.82 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -4.664e+00 -4.501e+00 0.942 +++\n",
|
||
|
"+++ 4.687e+02 4.682e+02 -4.664e+00 -4.496e+00 1.01 +++\n",
|
||
|
"********************\n",
|
||
|
"-1.02145 -1.79274 -3.15326 -3.51062 -4.42734 -4.39906 -4.49769 -4.66395\n",
|
||
|
"0.259766 0.220088 0.295514 0.2023 0.342171 0.229522 0.179146 0.167871\n",
|
||
|
"********************\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"p2, p2e = clag.errors(P2, p2, p2e)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 9,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"<Container object of 3 artists>"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 9,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAgkAAAFrCAYAAABbtho0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAIABJREFUeJzt3X9w3PV95/GnsQVKSItjct41MWjj7TlriCEnIRes4Ipe\nmmm5Nuk1PXV3krmJhI+0pce4dzD1tWMdI9/kro2noU067fhA9O4CK/umzTWewYWmlWsqi5wqJYCD\nF3JrrbCDd13imLakAoF9f6xkZPOVpZX2uz+0z8fMjuTd72c/H8PX2pe+n8/38wZJkiRJkiRJkiRJ\nkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiQt0X8CRoC/BwrA14CNVR2RJEmqCQeBfwtsAm4GDgA54L1V\nHJMkSapBHwDOAR+r9kAkSdL8rqhgX6unv56pYJ+SJKnGraA43fDX1R6IJElamFUV6ucrwE1cfqph\n3fRDkiSV5tT0o6wqERK+DPwssA14ZY5j1l133XWvvPLKXC9LkqTL+B7QTpmDQpghYQXFgPApoBOY\nuMyx61555RW++tWvsmnTphCHVH47duzgoYceqsv+lvJepbYt5fiFHDvfMZd7vdL/z8rFc638x3uu\nBfNcK//xYZ5rx44d47Of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0Malcop\n/Xya9NHp/S/emmTitQlarmmhedX0/hcfSZHa7P4XUrmUEhK+DDw+zzETSxgLO3bsYPXq1Rc956Y3\nWqiRkZGKtlPlpTanuP1Hbqfvi30cHjtM9kyWt9e8zbbWbfQ+0EssFqv2EKVQzd4obsbZs2dD629F\naO9c9DngS8D75zmuFRgdHR11sxstWiKR4MUXXyy53Yc//OGSpylUeYVCgeT2JJkzGfI35mH9rBdP\nQvSFKIk1CQYe9q4VNZa
|
||
|
"text/plain": [
|
||
|
"<matplotlib.figure.Figure at 0x7f60c06ee2d0>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"xscale('log'); ylim(-6,2)\n",
|
||
|
"errorbar(fqd, p1, yerr=p1e, fmt='o', ms=10, color=\"green\")\n",
|
||
|
"errorbar(fqd, p2, yerr=p2e, fmt='o', ms=10, color=\"black\")"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 10,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
" 1 1.071e+02 1.046e+01 inf -- 5.152e+02 -- -0.660422 -1.28544 -2.47192 -2.81652 -3.57876 -3.74527 -4.32957 -6.63198 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1\n",
|
||
|
" 3 2.672e+01 1.099e+01 2.000e+00 -- 5.172e+02 -- -0.619685 -1.25308 -2.4665 -2.85762 -3.55873 -3.77022 -4.28599 -6.33198 0.133144 0.179124 0.1802 0.166312 0.0659412 0.140772 0.112456 -0.971453\n",
|
||
|
" 5 9.529e+00 1.283e+01 1.721e+00 -- 5.189e+02 -- -0.585859 -1.22408 -2.4589 -2.89696 -3.54076 -3.79301 -4.25035 -6.03198 0.157464 0.240277 0.249232 0.240742 0.0381923 0.179734 0.122603 1.62466\n",
|
||
|
" 7 2.140e+01 1.475e+01 1.536e+00 -- 5.204e+02 -- -0.557456 -1.19853 -2.45014 -2.93384 -3.52464 -3.81372 -4.22037 -6.12619 0.175865 0.28851 0.308387 0.323331 0.0151409 0.217034 0.131397 0.0766008\n",
|
||
|
" 9 4.054e+01 1.673e+01 1.375e+00 -- 5.218e+02 -- -0.53338 -1.17617 -2.44091 -2.96736 -3.51007 -3.8326 -4.19508 -5.82619 0.19012 0.327294 0.359004 0.414056 -0.00394175 0.251863 0.139262 -0.0873399\n",
|
||
|
" 11 1.539e+02 1.878e+01 1.257e+00 -- 5.231e+02 -- -0.512807 -1.15664 -2.43168 -2.9966 -3.49691 -3.84978 -4.17339 -5.52619 0.201361 0.359027 0.402429 0.511897 -0.0199226 0.284261 0.146507 0.000430987\n",
|
||
|
" 13 6.674e+00 2.124e+01 1.152e+00 -- 5.242e+02 -- -0.495111 -1.13956 -2.42273 -3.02071 -3.48496 -3.86545 -4.15466 -5.35324 0.210341 0.385373 0.439852 0.614993 -0.0333288 0.314186 0.153466 0.00706348\n",
|
||
|
" 15 3.252e+00 2.410e+01 1.060e+00 -- 5.253e+02 -- -0.479803 -1.1246 -2.41423 -3.03903 -3.47409 -3.87976 -4.13835 -5.24709 0.217599 0.407526 0.472271 0.72086 -0.0446408 0.341603 0.160157 0.0117776\n",
|
||
|
" 17 2.016e+00 2.719e+01 9.825e-01 -- 5.263e+02 -- -0.466499 -1.11148 -2.40628 -3.05126 -3.46421 -3.89282 -4.124 -5.17073 0.223523 0.426356 0.500528 0.826462 -0.0542649 0.366566 0.166562 0.0156079\n",
|
||
|
" 19 1.362e+00 3.054e+01 9.145e-01 -- 5.272e+02 -- -0.454889 -1.09993 -2.3989 -3.05757 -3.45521 -3.90473 -4.1113 -5.1118 0.228399 0.442508 0.525313 0.928622 -0.0625105 0.389157 0.172682 0.0187539\n",
|
||
|
" 21 9.515e-01 3.414e+01 8.538e-01 -- 5.280e+02 -- -0.444723 -1.08976 -2.3921 -3.05859 -3.44701 -3.9156 -4.09998 -5.06443 0.232442 0.456468 0.547196 1.02454 -0.0696201 0.409485 0.178522 0.0213081\n",
|
||
|
" 23 7.093e-01 3.801e+01 7.988e-01 -- 5.288e+02 -- -0.435796 -1.08077 -2.38588 -3.05525 -3.43953 -3.92551 -4.08984 -5.0253 0.235816 0.468611 0.566644 1.11219 -0.0757858 0.427675 0.18409 0.0233356\n",
|
||
|
" 25 5.803e-01 4.215e+01 7.484e-01 -- 5.296e+02 -- -0.427935 -1.07281 -2.38021 -3.04863 -3.43269 -3.93455 -4.0807 -4.99237 0.23865 0.479229 0.584038 1.19049 -0.0811613 0.443868 0.189393 0.0248916\n",
|
||
|
" 27 4.826e-01 4.655e+01 7.016e-01 -- 5.303e+02 -- -0.421 -1.06576 -2.37506 -3.03976 -3.42645 -3.94279 -4.07243 -4.96428 0.241046 0.488555 0.599693 1.25918 -0.085871 0.458207 0.194441 0.0260258\n",
|
||
|
" 29 4.068e-01 5.122e+01 6.579e-01 -- 5.309e+02 -- -0.414869 -1.0595 -2.3704 -3.02952 -3.42074 -3.95028 -4.06492 -4.94006 0.243083 0.496775 0.613868 1.31864 -0.0900155 0.470841 0.199241 0.0267841\n",
|
||
|
" 30 3.534e+01 8.279e+04 1.751e+01 -- 5.134e+02 -- -0.360586 -1.00374 -2.32839 -2.92007 -3.3685 -4.01834 -3.99643 -4.7296 0.260518 0.56944 0.742943 1.82845 -0.126634 0.581593 0.244852 0.0310258\n",
|
||
|
" 31 2.628e+00 5.230e+02 1.385e+01 -- 5.273e+02 -- -0.367347 -0.995704 -2.41817 -2.93715 -3.22222 -3.67509 -3.96857 -4.92098 0.252274 0.493499 0.92368 1.27613 -0.141219 0.150824 0.421865 -1.06553\n",
|
||
|
" 33 1.245e+00 1.834e+02 5.511e+00 -- 5.328e+02 -- -0.366953 -0.996565 -2.41698 -2.92546 -3.2361 -3.70408 -3.95122 -4.90366 0.254103 0.498794 0.945127 1.30107 -0.17833 0.138325 0.416295 -0.885392\n",
|
||
|
" 34 2.632e+00 2.549e+02 4.231e+00 -- 5.370e+02 -- -0.363913 -1.00399 -2.39017 -2.80507 -3.34439 -3.93632 -3.87676 -4.84813 0.268355 0.551262 1.00931 1.53983 -0.400317 0.167888 0.35166 0.103037\n",
|
||
|
" 35 2.312e-01 2.769e+01 1.185e+00 -- 5.382e+02 -- -0.36551 -1.00259 -2.35867 -2.82081 -3.32433 -3.99735 -3.92146 -5.15833 0.258537 0.557539 0.798409 1.50393 -0.115974 0.467843 0.342653 -0.168121\n",
|
||
|
" 36 1.282e-01 1.344e+01 1.168e-01 -- 5.383e+02 -- -0.365155 -1.00375 -2.35465 -2.81558 -3.34281 -3.98947 -3.93824 -5.07587 0.261859 0.557604 0.867168 1.51669 -0.142791 0.48333 0.289755 -0.174609\n",
|
||
|
" 37 2.322e-01 2.131e+00 2.015e-02 -- 5.383e+02 -- -0.365299 -1.00349 -2.35109 -2.82381 -3.34204 -3.98257 -3.95106 -5.06742 0.260301 0.559365 0.842097 1.51206 -0.130381 0.490731 0.287031 -0.152216\n",
|
||
|
" 38 6.590e-02 2.211e+00 4.939e-03 -- 5.383e+02 -- -0.365272 -1.00361 -2.3515 -2.82539 -3.34697 -3.98003 -3.95473 -5.01474 0.260526 0.558922 0.844539 1.51206 -0.138355 0.502691 0.282545 -0.116878\n",
|
||
|
" 39 5.891e-02 3.773e-01 1.420e-03 -- 5.383e+02 -- -0.365297 -1.00355 -2.3514 -2.82741 -3.34661 -3.9783 -3.95801 -4.99087 0.260204 0.559082 0.839989 1.51118 -0.135923 0.505973 0.282768 -0.109176\n",
|
||
|
" 40 2.572e-02 4.637e-01 4.968e-04 -- 5.383e+02 -- -0.365292 -1.00357 -2.35165 -2.82796 -3.34757 -3.97813 -3.95907 -4.96797 0.260227 0.558996 0.840181 1.51095 -0.137625 0.508445 0.282456 -0.102744\n",
|
||
|
" 41 1.649e-02 5.031e-02 1.977e-04 -- 5.383e+02 -- -0.365297 -1.00356 -2.35169 -2.8285 -3.34746 -3.97798 -3.95998 -4.95472 0.260155 0.559001 0.83919 1.51074 -0.137022 0.509266 0.282795 -0.100101\n",
|
||
|
" 42 9.246e-03 1.178e-01 8.567e-05 -- 5.383e+02 -- -0.365297 -1.00356 -2.35177 -2.82872 -3.34765 -3.9781 -3.96035 -4.94463 0.260153 0.558976 0.839165 1.51071 -0.137277 0.509832 0.282928 -0.0984504\n",
|
||
|
"********************\n",
|
||
|
"-0.365297 -1.00356 -2.35177 -2.82872 -3.34765 -3.9781 -3.96035 -4.94463 0.260153 0.558976 0.839165 1.51071 -0.137277 0.509832 0.282928 -0.0984504\n",
|
||
|
"0.0033599 0.00994879 0.12815 0.199699 0.0939759 0.373185 0.0923458 1.11837 0.0669538 0.104719 0.458098 0.560874 0.328106 0.903943 0.28723 1.91846\n",
|
||
|
"-0.117785 0.0115573 -0.00195453 -0.00472824 0.000416438 -0.000751097 -0.0358018 0.00519553 -0.00437069 -0.000802906 -0.00125322 -8.26251e-05 0.00185064 0.000334232 0.00218703 -0.00017406\n",
|
||
|
"********************\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"Cx = clag.clag('cxd10r', [[t1,t2]], [[l1,l2]], [[l1e,l2e]], dt, fqL, p1, p2)\n",
|
||
|
"p = np.concatenate( ((p1+p2)*0.5-0.3,p1*0+0.1) ) # a good starting point generally\n",
|
||
|
"p, pe = clag.optimize(Cx, p)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 11,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"ERROR:root:Line magic function `%autoreload` not found.\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"\t### errors for param 0 ###\n",
|
||
|
"+++ 5.384e+02 5.381e+02 -3.653e-01 -3.636e-01 0.473 +++\n",
|
||
|
"+++ 5.384e+02 5.376e+02 -3.653e-01 -3.628e-01 1.49 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -3.653e-01 -3.632e-01 0.867 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -3.653e-01 -3.630e-01 1.14 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -3.653e-01 -3.631e-01 0.998 +++\n",
|
||
|
"\t### errors for param 1 ###\n",
|
||
|
"+++ 5.384e+02 5.382e+02 -1.004e+00 -9.986e-01 0.343 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -1.004e+00 -9.961e-01 0.962 +++\n",
|
||
|
"+++ 5.384e+02 5.376e+02 -1.004e+00 -9.949e-01 1.48 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -1.004e+00 -9.955e-01 1.2 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -1.004e+00 -9.958e-01 1.08 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -1.004e+00 -9.959e-01 1.02 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -1.004e+00 -9.960e-01 0.989 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -1.004e+00 -9.960e-01 1 +++\n",
|
||
|
"\t### errors for param 2 ###\n",
|
||
|
"+++ 5.384e+02 5.382e+02 -2.352e+00 -2.288e+00 0.363 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -2.352e+00 -2.256e+00 1.15 +++\n",
|
||
|
"+++ 5.384e+02 5.380e+02 -2.352e+00 -2.272e+00 0.665 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -2.352e+00 -2.264e+00 0.878 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -2.352e+00 -2.260e+00 1.01 +++\n",
|
||
|
"\t### errors for param 3 ###\n",
|
||
|
"+++ 5.384e+02 5.382e+02 -2.829e+00 -2.729e+00 0.379 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -2.829e+00 -2.679e+00 1.17 +++\n",
|
||
|
"+++ 5.384e+02 5.380e+02 -2.829e+00 -2.704e+00 0.689 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -2.829e+00 -2.692e+00 0.902 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -2.829e+00 -2.685e+00 1.03 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -2.829e+00 -2.688e+00 0.964 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -2.829e+00 -2.687e+00 0.996 +++\n",
|
||
|
"\t### errors for param 4 ###\n",
|
||
|
"+++ 5.384e+02 5.382e+02 -3.348e+00 -3.301e+00 0.337 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -3.348e+00 -3.277e+00 0.983 +++\n",
|
||
|
"+++ 5.384e+02 5.376e+02 -3.348e+00 -3.265e+00 1.56 +++\n",
|
||
|
"+++ 5.384e+02 5.377e+02 -3.348e+00 -3.271e+00 1.24 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -3.348e+00 -3.274e+00 1.11 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -3.348e+00 -3.276e+00 1.04 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -3.348e+00 -3.276e+00 1.01 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -3.348e+00 -3.277e+00 0.997 +++\n",
|
||
|
"\t### errors for param 5 ###\n",
|
||
|
"+++ 5.384e+02 5.381e+02 -3.978e+00 -3.792e+00 0.447 +++\n",
|
||
|
"+++ 5.384e+02 5.376e+02 -3.978e+00 -3.698e+00 1.41 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -3.978e+00 -3.745e+00 0.822 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -3.978e+00 -3.722e+00 1.08 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -3.978e+00 -3.733e+00 0.946 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -3.978e+00 -3.727e+00 1.01 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -3.978e+00 -3.730e+00 0.979 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -3.978e+00 -3.729e+00 0.996 +++\n",
|
||
|
"\t### errors for param 6 ###\n",
|
||
|
"+++ 5.384e+02 5.382e+02 -3.961e+00 -3.914e+00 0.206 +++\n",
|
||
|
"+++ 5.384e+02 5.381e+02 -3.961e+00 -3.891e+00 0.527 +++\n",
|
||
|
"+++ 5.384e+02 5.380e+02 -3.961e+00 -3.880e+00 0.771 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -3.961e+00 -3.874e+00 0.919 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -3.961e+00 -3.871e+00 1 +++\n",
|
||
|
"\t### errors for param 7 ###\n",
|
||
|
"+++ 5.384e+02 5.382e+02 -4.938e+00 -4.387e+00 0.366 +++\n",
|
||
|
"+++ 5.384e+02 5.370e+02 -4.938e+00 -4.112e+00 2.72 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -4.938e+00 -4.250e+00 0.924 +++\n",
|
||
|
"+++ 5.384e+02 5.376e+02 -4.938e+00 -4.181e+00 1.5 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -4.938e+00 -4.215e+00 1.17 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -4.938e+00 -4.232e+00 1.04 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -4.938e+00 -4.241e+00 0.98 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -4.938e+00 -4.237e+00 1.01 +++\n",
|
||
|
"\t### errors for param 8 ###\n",
|
||
|
"+++ 5.384e+02 5.379e+02 2.601e-01 3.271e-01 0.994 +++\n",
|
||
|
"\t### errors for param 9 ###\n",
|
||
|
"+++ 5.384e+02 5.382e+02 5.590e-01 6.113e-01 0.275 +++\n",
|
||
|
"+++ 5.384e+02 5.380e+02 5.590e-01 6.375e-01 0.603 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 5.590e-01 6.506e-01 0.808 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 5.590e-01 6.571e-01 0.921 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 5.590e-01 6.604e-01 0.979 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 5.590e-01 6.620e-01 1.01 +++\n",
|
||
|
"\t### errors for param 10 ###\n",
|
||
|
"+++ 5.384e+02 5.379e+02 8.389e-01 1.297e+00 0.964 +++\n",
|
||
|
"+++ 5.384e+02 5.374e+02 8.389e-01 1.526e+00 1.86 +++\n",
|
||
|
"+++ 5.384e+02 5.376e+02 8.389e-01 1.412e+00 1.4 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 8.389e-01 1.354e+00 1.18 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 8.389e-01 1.326e+00 1.07 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 8.389e-01 1.311e+00 1.02 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 8.389e-01 1.304e+00 0.991 +++\n",
|
||
|
"\t### errors for param 11 ###\n",
|
||
|
"+++ 5.384e+02 5.380e+02 1.511e+00 2.072e+00 0.717 +++\n",
|
||
|
"+++ 5.384e+02 5.377e+02 1.511e+00 2.352e+00 1.37 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 1.511e+00 2.212e+00 1.04 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 1.511e+00 2.142e+00 0.876 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 1.511e+00 2.177e+00 0.957 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 1.511e+00 2.195e+00 0.999 +++\n",
|
||
|
"\t### errors for param 12 ###\n",
|
||
|
"+++ 5.384e+02 5.380e+02 -1.371e-01 1.910e-01 0.629 +++\n",
|
||
|
"+++ 5.384e+02 5.377e+02 -1.371e-01 3.551e-01 1.31 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -1.371e-01 2.730e-01 0.947 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -1.371e-01 3.141e-01 1.13 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 -1.371e-01 2.935e-01 1.03 +++\n",
|
||
|
"+++ 5.384e+02 5.379e+02 -1.371e-01 2.833e-01 0.991 +++\n",
|
||
|
"\t### errors for param 13 ###\n",
|
||
|
"+++ 5.384e+02 5.380e+02 5.100e-01 1.414e+00 0.77 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 5.100e-01 1.866e+00 1.16 +++\n",
|
||
|
"+++ 5.384e+02 5.378e+02 5.100e-01 1.640e+00 1 +++\n",
|
||
|
"\t### errors for param 14 ###\n",
|
||
|
"+++ 5.384e+02 5.379e+02 2.831e-01 5.706e-01 0.999 +++\n",
|
||
|
"\t### errors for param 15 ###\n",
|
||
|
"********************\n",
|
||
|
"-0.365298 -1.00356 -2.3518 -2.8289 -3.34762 -3.97818 -3.96065 -4.9382 0.260133 0.55897 0.838914 1.51069 -0.137073 0.510048 0.283115 -0.0975401\n",
|
||
|
"0.00220546 0.00757768 0.0921231 0.142074 0.0708427 0.249334 0.0895957 0.701524 0.0669616 0.10308 0.465309 0.683925 0.420368 1.13017 0.287504 9.44994\n",
|
||
|
"********************\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"%autoreload\n",
|
||
|
"p, pe = clag.errors(Cx, p, pe)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 12,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"phi, phie = p[nfq:], pe[nfq:]\n",
|
||
|
"lag, lage = phi/(2*np.pi*fqd), phie/(2*np.pi*fqd) \n",
|
||
|
"cx, cxe = p[:nfq], pe[:nfq]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 13,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"array([ 4.29089818, 3.08255955, 2.39741626, 2.78529154, -0.1630473 ,\n",
|
||
|
" 0.39141847, 0.14017202, -0.03115664])"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 13,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAhIAAAFrCAYAAACE+GArAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAF5ZJREFUeJzt3XFsnOd9H/CvE8tWG69VmlSkncamzVamO3nLpMitxcCl\nMTcohs0ZsE0lgQwrtTVG283QNmw1Mpj1ZKwDhq1x/+g2aIPcosGO0ooNTbFpS/+Q4k1SNpX0uso1\n244SNdXW0VEWpY1TJUKs/XGkQ1GiyHt4dy/v+PkAhMj3nvfeH6VH5Pee9/e+lwAAAAAAAAAAAAAA\nAAAAAAAAAAAAAABAz3giyW8keSPJO0k+cYsxLyw8/vUkx5P8YKeKAwDW7z1tfO7vTPJqkp9Z+Pr6\nssd/NsmBhcf3JKkn+c0k97SxJgCgC72T5OklX9+R5FKSf7Bk211JvpLkUx2sCwBYh3auSNzOg0n6\nknx+ybZvJvlCkr2VVAQANK2qING/8Of8su1vLXkMANjg7qy6gFtY3kux6N6FDwCgOZcWPlquqiBR\nX/izb8nnt/p60b333Xffm2+++WbbCwOAHvRGGhc2tDxMVBUkzqcRGD6e5LcXtt2V5EdyYwPmonvf\nfPPNfPazn80jjzzSoRJb58CBA3nppZe68ljreb5m913r+LWMW23M7R7v5L9Xq5lrrR1vrq3MXGvt\n+HbOtddffz2f/OQnP5TGqn5XBYn3JfmBJV8/lOQjSb6c5GKSl5J8OskfJPk/C59/Lcm/W+kJH3nk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S/jxIkT\nKwaZer2eEydOZHh4OPP
|
||
|
"text/plain": [
|
||
|
"<matplotlib.figure.Figure at 0x7f60c090e390>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"xscale('log'); ylim(-10,10)\n",
|
||
|
"errorbar(fqd, lag, yerr=lage, fmt='o', ms=10,color=\"black\")\n",
|
||
|
"\n",
|
||
|
"lag"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 15,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"[<matplotlib.lines.Line2D at 0x7f60c02c2a90>]"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 15,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAiMAAAGYCAYAAACQz+KaAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAIABJREFUeJzt3XecHHX9+PHXpZADQhJCDQESAoTe7pD+hQQQkCZoLKcI\nIT9QFJBgjOYrIEVQJAajCIjg0Tn4RqqGGkBAREpOmkQpCaEEQgmhh7T7/fGZdfcuu3e7N3M3u7ev\n5+Mxj9mdnfK+mdvd937mU0CSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmS1LPsAdwOLAA+\nAZ4HTk01IkmSqlSftANIwTeAq4AbgG8BHwGbAEPSDEqSJFWHoYTk43dpByJJkqrT6cByYIO0A5Ek\nSUGvtAPoZnsC7wJbAk8CS4D5wMXAainGJUmSqsS/CRVW3wd+TEhOfgh8DDyUYlySJFWtaqvA2guo\nBc4AzouWPQgsBqYCewP3tdlmCFZulSSpM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48UTYcUc47LAwbbmllW0lqbO66u74m8B5wBbAbsBlZEfr3QT4OTCXUNn1cLp/BF+p\nJGuvvYTvfhfuugvefhuuuw5GjIBzz4Wtt4aRI2HiRHj44fytiiRJhXVHVb1/EMav+SYhScnoAxxI\nGL9mLuFWj/2eqOwNGgQNDXDDDSExmT4dRo+Gq66CPfYIt4yOPRZuv71wBVtJUlZXJyPDgNOBl4Bb\nCbdvAJYCdwKvRs/XA6YQKryu3sUxSYmprYUDD4Q//AHmzQslI0ceCfffDwcdBGutBV/9aihJWbgw\n7WglqTx1RTKyMqFlzb2
|
||
|
"text/plain": [
|
||
|
"<matplotlib.figure.Figure at 0x7f60c04bb4d0>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"from scipy.optimize import curve_fit\n",
|
||
|
"\n",
|
||
|
"# Define model function to be used to fit to the data above:\n",
|
||
|
"def tophat_time(x, *p):\n",
|
||
|
" mean, width = p\n",
|
||
|
" if x>(mean+width): y=0\n",
|
||
|
" if x<(mean-width): y=0\n",
|
||
|
" if x==(mean+width) | x==(mean-width): y=5\n",
|
||
|
" return y\n",
|
||
|
"\n",
|
||
|
"def tophat_freq(f, *pars):\n",
|
||
|
" A,T,t0 = pars\n",
|
||
|
" #return A*T*sinc(pi*f*T)*exp(-i*2*pi*f*t0)\n",
|
||
|
" return A*T*sinc(pi*f*T)*cos(2*pi*f*t0)\n",
|
||
|
"\n",
|
||
|
"x=np.logspace(fqd[0],fqd[-1],200)\n",
|
||
|
"\n",
|
||
|
"# p0 is the initial guess for the fitting coefficients\n",
|
||
|
"p0 = [3, 3, 3]\n",
|
||
|
"coeff, var_matrix = curve_fit(tophat_freq, fqd, lag, p0)\n",
|
||
|
"fit = tophat_freq(fqd, *coeff)\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"mpl.rcParams['xtick.labelsize']=12\n",
|
||
|
"mpl.rcParams['ytick.labelsize']=12\n",
|
||
|
"xscale('log'); xlim(.009,.6)\n",
|
||
|
"xlabel(\"Fourier Frequency (days$^{-1}$)\",fontsize=20)\n",
|
||
|
"ylabel(\"Time Lag (days)\",fontsize=20)\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"errorbar(fqd, lag, yerr=lage, fmt='o', ms=5,color=\"black\")\n",
|
||
|
"plot(fqd,fit)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 16,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"[<matplotlib.lines.Line2D at 0x7f60c07f9cd0>]"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 16,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjYAAAGJCAYAAACZwnkIAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAIABJREFUeJzt3Xnc1PP+//HHdJU27QsttjihRalUOLIlUfgSTleSlLWS\nKOScwkE4HI5jKVtKlssWR+SkrNlLV7SQDooWS0pFe13X74/XZ34z1zTr9fnMfOaaed5vt8/tM9dn\ne79m6mpevVcQEREREREREREREREREREREREREREREREREREREREREREREREREREREREREamITgSe\nAJYCm4CVwH+ADkne3xiYDKxx7v8IOMHzKEVERESS8DzwDnA50A3ogyUn24HjE9xbFVgIfA8UYknS\ny8693dIUr4iIiEhMjaMcqwn8CMxKcO8QoAToEnasAFgEfOJJdCIiIiIeeBv4KsE1s4AvoxwfjSU8\nTbwOSkRERFJXye8AfFYH62OzOMF1bYAFUY4vdPatvQxKREREyiffE5sHgerAuATX1QfWRTkePNbA\ny6BERESkfCr7HYCPbgH6AcOA+T7HIiIiIh7I18TmRuBvwF+B8UlcvxartYlUP+x8LE1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4kNsHlDDb4UHaFVbOmdSJu\n2RJ69IBFi/yOSEREJPuk2nl437DX4RPzNSXxCt9VgYOwtZUAvkyx7LxXuzbMmGF9brp3tz43LVv6\nHZWIiEj2SDWxWc7uE+sFgDdSeEYwIaqIK4P7rn59mDULjjvOEpzZs6FFC7+jEhERyQ7laYoKhG3R\njiXatgJ3AhPLHXWea9Q
|
||
|
"text/plain": [
|
||
|
"<matplotlib.figure.Figure at 0x7f60c07f9e50>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"time_fit = irfft(fit)\n",
|
||
|
"\n",
|
||
|
"mpl.rcParams['xtick.labelsize']=12\n",
|
||
|
"mpl.rcParams['ytick.labelsize']=12\n",
|
||
|
"ylabel(\"Response (relative)\",fontsize=20)\n",
|
||
|
"xlabel(\"Time (days)\",fontsize=20) \n",
|
||
|
"\n",
|
||
|
"ylim(-0.5,2)\n",
|
||
|
"xlim(0,7)\n",
|
||
|
"\n",
|
||
|
"plot(time_fit)\n",
|
||
|
"plot([3.13,3.13], [-50, 50], color='k', linestyle='-', linewidth=2)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"kernelspec": {
|
||
|
"display_name": "Python 2",
|
||
|
"language": "python",
|
||
|
"name": "python2"
|
||
|
},
|
||
|
"language_info": {
|
||
|
"codemirror_mode": {
|
||
|
"name": "ipython",
|
||
|
"version": 2
|
||
|
},
|
||
|
"file_extension": ".py",
|
||
|
"mimetype": "text/x-python",
|
||
|
"name": "python",
|
||
|
"nbconvert_exporter": "python",
|
||
|
"pygments_lexer": "ipython2",
|
||
|
"version": "2.7.6"
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 2
|
||
|
}
|