{
 "description": "Fits of grey-opacity kilonova models to the fixed GW170817 photometry. Synthetic model output compared with real observations; no radiative transfer.",
 "software": {
  "python": "3.9.6",
  "numpy": "2.0.2",
  "scipy": "1.13.1"
 },
 "inputs": {
  "photometrySha256": "6e977704480b16314e4794abecf452216848f41e6682d623f53119de646d52fc",
  "rows": 394,
  "distanceMpc": 39.5,
  "ebvSfd": 0.1228
 },
 "fits": {
  "two-component": {
   "model": "two-component",
   "parameters": {
    "blueMass": 0.02087,
    "blueVelocity": 0.38486,
    "blueFloor": 5184.20485,
    "redMass": 0.05247,
    "redVelocity": 0.15232,
    "redFloor": 1014.37114,
    "redOpacity": 3.17887
   },
   "scatter": 0.2611,
   "rmsResidual": 0.2884,
   "negativeLogLikelihood": 63.02,
   "freeParameters": 8,
   "bic": 173.85,
   "diffusionDays": [
    1.0953,
    6.9597
   ],
   "bandRms": {
    "g": 0.292,
    "r": 0.2397,
    "i": 0.2621,
    "z": 0.2967,
    "J": 0.3154,
    "H": 0.3987,
    "K": 0.2656
   },
   "lateKResidualMean": 0.0225,
   "linearErrors": {
    "blueMass": 0.00052,
    "blueVelocity": 0.01605,
    "blueFloor": 123.84087,
    "redMass": 0.00219,
    "redVelocity": 0.0052,
    "redFloor": 30.90319,
    "redOpacity": 0.11953
   },
   "atBounds": [],
   "localOptima": [
    {
     "negativeLogLikelihood": 63.02,
     "scatter": 0.2611,
     "parameters": {
      "blueMass": 0.0209,
      "blueVelocity": 0.3849,
      "blueFloor": 5184.2048,
      "redMass": 0.0525,
      "redVelocity": 0.1523,
      "redFloor": 1014.3711,
      "redOpacity": 3.1789
     },
     "starts": 3
    },
    {
     "negativeLogLikelihood": 64.9,
     "scatter": 0.2454,
     "parameters": {
      "blueMass": 0.0178,
      "blueVelocity": 0.387,
      "blueFloor": 6216.4158,
      "redMass": 0.0501,
      "redVelocity": 0.1975,
      "redFloor": 2076.9195,
      "redOpacity": 2.6348
     },
     "starts": 3
    },
    {
     "negativeLogLikelihood": 82.13,
     "scatter": 0.2774,
     "parameters": {
      "blueMass": 0.0231,
      "blueVelocity": 0.2821,
      "blueFloor": 4228.9649,
      "redMass": 0.046,
      "redVelocity": 0.1386,
      "redFloor": 1035.2513,
      "redOpacity": 3.3137
     },
     "starts": 10
    },
    {
     "negativeLogLikelihood": 137.28,
     "scatter": 0.3018,
     "parameters": {
      "blueMass": 0.0204,
      "blueVelocity": 0.2986,
      "blueFloor": 1326.6952,
      "redMass": 0.0385,
      "redVelocity": 0.1156,
      "redFloor": 2507.1995,
      "redOpacity": 1.8171
     },
     "starts": 1
    }
   ],
   "correlation": {
    "redMass-redVelocity": 0.888,
    "redMass-redOpacity": 0.132,
    "blueMass-blueVelocity": 0.168
   }
  },
  "red-kappa-10": {
   "model": "red-kappa-10",
   "parameters": {
    "blueMass": 0.03101,
    "blueVelocity": 0.25005,
    "blueFloor": 4081.31022,
    "redMass": 0.07396,
    "redVelocity": 0.23289,
    "redFloor": 785.09909,
    "redOpacity": 10.0
   },
   "scatter": 0.3661,
   "rmsResidual": 0.381,
   "negativeLogLikelihood": 178.94,
   "freeParameters": 7,
   "bic": 399.71,
   "diffusionDays": [
    1.6563,
    11.8521
   ],
   "bandRms": {
    "g": 0.3555,
    "r": 0.3262,
    "i": 0.4287,
    "z": 0.5468,
    "J": 0.4461,
    "H": 0.3241,
    "K": 0.2323
   },
   "lateKResidualMean": -0.0527
  },
  "one-component": {
   "model": "one-component",
   "parameters": {
    "blueMass": 0.0,
    "blueVelocity": 0.0,
    "blueFloor": 0.0,
    "redMass": 0.07641,
    "redVelocity": 0.29913,
    "redFloor": 2628.47802,
    "redOpacity": 1.21249
   },
   "scatter": 0.5455,
   "rmsResidual": 0.5713,
   "negativeLogLikelihood": 332.93,
   "freeParameters": 5,
   "bic": 695.74,
   "diffusionDays": [
    3.7015
   ],
   "bandRms": {
    "g": 0.7498,
    "r": 0.4153,
    "i": 0.4477,
    "z": 0.6315,
    "J": 0.5997,
    "H": 0.4998,
    "K": 0.6513
   },
   "lateKResidualMean": 0.5658
  },
  "no-floor": {
   "model": "no-floor",
   "parameters": {
    "blueMass": 0.02598,
    "blueVelocity": 0.26919,
    "blueFloor": 300.0,
    "redMass": 0.03736,
    "redVelocity": 0.06374,
    "redFloor": 300.0,
    "redOpacity": 2.10435
   },
   "scatter": 0.3992,
   "rmsResidual": 0.5011,
   "negativeLogLikelihood": 243.13,
   "freeParameters": 6,
   "bic": 522.12,
   "diffusionDays": [
    1.4609,
    7.387
   ],
   "bandRms": {
    "g": 0.3434,
    "r": 0.4617,
    "i": 0.3416,
    "z": 0.8443,
    "J": 0.5887,
    "H": 0.5225,
    "K": 0.3594
   },
   "lateKResidualMean": 0.0085
  },
  "two-component-low-extinction": {
   "model": "two-component-low-extinction",
   "parameters": {
    "blueMass": 0.02032,
    "blueVelocity": 0.37907,
    "blueFloor": 5117.96575,
    "redMass": 0.05226,
    "redVelocity": 0.15269,
    "redFloor": 1013.21818,
    "redOpacity": 3.23165
   },
   "scatter": 0.2604,
   "rmsResidual": 0.2879,
   "negativeLogLikelihood": 62.08,
   "freeParameters": 8,
   "bic": 171.98,
   "diffusionDays": [
    1.089,
    6.9946
   ],
   "bandRms": {
    "g": 0.2853,
    "r": 0.2409,
    "i": 0.2626,
    "z": 0.2976,
    "J": 0.3153,
    "H": 0.3992,
    "K": 0.2653
   },
   "lateKResidualMean": 0.0209,
   "note": "Table 6 coefficients multiplied by the recalibrated E(B-V) = 0.1056 instead of E(B-V)_SFD; under-corrects extinction by 14%."
  },
  "villar-2017-printed-parameters": {
   "model": "villar-2017-printed-parameters",
   "parameters": {
    "blueMass": 0.023,
    "blueVelocity": 0.256,
    "blueFloor": 3983.0,
    "redMass": 0.05,
    "redVelocity": 0.149,
    "redFloor": 1151.0,
    "redOpacity": 3.65
   },
   "scatter": 0.2934,
   "rmsResidual": 0.3262,
   "negativeLogLikelihood": 106.32,
   "freeParameters": 1,
   "bic": 218.62,
   "diffusionDays": [
    1.4097,
    7.3608
   ],
   "bandRms": {
    "g": 0.3715,
    "r": 0.2786,
    "i": 0.3123,
    "z": 0.3061,
    "J": 0.3486,
    "H": 0.4346,
    "K": 0.2823
   },
   "lateKResidualMean": -0.2047
  }
 },
 "degeneracy": {
  "redMass": [
   0.03,
   0.035,
   0.04,
   0.045,
   0.05,
   0.055,
   0.06,
   0.065,
   0.07,
   0.075,
   0.08
  ],
  "redVelocity": [
   0.1,
   0.11,
   0.12,
   0.13,
   0.14,
   0.15,
   0.16,
   0.17,
   0.18,
   0.19,
   0.2,
   0.21,
   0.22
  ],
  "negativeLogLikelihood": [
   [
    162.4,
    156.09,
    179.77,
    198.63,
    212.9,
    225.37,
    240.86,
    256.45,
    272.17,
    285.93,
    299.4,
    312.01,
    321.73
   ],
   [
    126.56,
    106.03,
    116.69,
    129.51,
    133.38,
    143.3,
    157.85,
    176.77,
    195.02,
    209.44,
    222.11,
    233.62,
    244.89
   ],
   [
    139.33,
    94.87,
    89.01,
    93.73,
    97.54,
    93.0,
    94.48,
    101.46,
    113.99,
    128.73,
    145.47,
    164.25,
    184.06
   ],
   [
    199.69,
    125.8,
    89.95,
    72.77,
    73.33,
    86.32,
    79.67,
    73.53,
    72.85,
    78.2,
    86.36,
    96.93,
    110.99
   ],
   [
    297.25,
    193.72,
    131.22,
    89.09,
    67.68,
    64.15,
    72.69,
    86.35,
    74.66,
    67.42,
    66.05,
    68.71,
    72.79
   ],
   [
    394.42,
    270.3,
    189.85,
    127.37,
    88.36,
    68.02,
    63.98,
    71.44,
    87.44,
    84.78,
    74.36,
    70.13,
    69.0
   ],
   [
    493.13,
    360.18,
    263.6,
    183.82,
    127.04,
    91.18,
    72.21,
    68.04,
    74.86,
    89.64,
    100.65,
    88.56,
    81.72
   ],
   [
    577.68,
    457.21,
    347.07,
    252.83,
    180.8,
    129.35,
    96.67,
    79.21,
    75.26,
    81.68,
    95.2,
    114.04,
    107.8
   ],
   [
    571.7,
    528.71,
    433.79,
    329.81,
    245.02,
    180.13,
    133.65,
    104.11,
    88.24,
    84.74,
    90.92,
    103.62,
    121.26
   ],
   [
    586.11,
    550.97,
    510.27,
    410.2,
    316.0,
    239.77,
    181.3,
    139.37,
    112.87,
    98.72,
    95.84,
    102.13,
    113.95
   ],
   [
    596.86,
    565.23,
    531.6,
    489.0,
    390.48,
    305.2,
    236.58,
    183.68,
    145.98,
    122.4,
    110.21,
    108.28,
    114.49
   ]
  ],
  "note": "Profile over the other five parameters at the best-fit scatter. Constant diffusion time means M/v constant at fixed kappa."
 },
 "printedFormulaFailures": {
  "missingArnettPrefactor": "Villar et al. eq. 3 prints the kernel t/td instead of 2t/td^2, so the printed integral has units of energy. It equals L times td/2; for the red component that is a factor 3.48 with time in days and 3.01e+05 with time in seconds, so the result depends on the time unit chosen.",
  "squaredStefanBoltzmann": "With sigma_SB squared inside the fourth root (eqs. 4-5), the photosphere temperature is divided by sigma_SB^(1/4) = 0.0868 in CGS, so about 4000 K becomes 46095 K. The receded-radius branch of eq. 5 prints sigma_SB unsquared, so the two branches would not meet at T = Tc."
 }
}
