Fix pixel indexing in sherpa tutorial
" delstat = stati - statf\n",
"\n",
" geom = resid.geom\n",
- " coord = geom.pix_to_coord((g.xpos.val, g.ypos.val))\n",
+ " # sherpa uses 1 based indexing\n",
+ " coord = geom.pix_to_coord((g.xpos.val - 1, g.ypos.val - 1))\n",
" pix_scale = geom.pixel_scales.mean().deg\n",
" sigma = g.fwhm.val * pix_scale * gaussian_fwhm_to_sigma\n",
" rows.append(\n",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.7.1"
+ "version": "3.7.0"
}
},
"nbformat": 4,
