add eval_rad
"spatial_model.plot_grid(geom=geom, add_cbar=True);"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "For computational purposes, it is useful to specify a `evaluation_radius` for `SpatialModels` - this gives a size on which to compute the model. Though optional, it is highly recommened for Custom Spatial Models. This can be done, for ex, by defining the following function inside the above class:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "@property\n",
+ "def evaluation_radius(self):\n",
+ " \"\"\"Evaluation radius (`~astropy.coordinates.Angle`).\"\"\"\n",
+ " return 5 * np.max([self.sigma_1TeV.value, self.sigma_10TeV.value]) * u.deg"
+ ]
+ },
{
"cell_type": "code",
"execution_count": null,
