Updated notebook to show how to detect sources in PACO
"metadata": {},
"outputs": [],
"source": [
- "sources = paco.threshold_detection(snr_paco, threshold = 5.0) #Threshold in sigma\n",
- "initial_guesses = [flux_paco[s[0],s[1]] for s in sources]\n",
- "flux_estimates = paco.flux_estimate(sources,eps = 0.1,inital_est = initial_guesses)"
+ "sources = paco.subpixel_threshold_detection(snr_paco, threshold = 5.0) #Threshold in sigma\n",
+ "posns = [(sources[entry]['x'],sources[entry]['y']) for entry in sources]\n",
+ "initial_guesses = [flux_paco[int(s[0]),int(s[1])] for s in posns]\n",
+ "flux_estimates = paco.flux_estimate(posns,eps = 0.1,inital_est = initial_guesses)"
]
},
{
