{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Source Injector (Extended Source Example)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
COSI-SMEX/develop/Data/Responses/PointSourceResponse/psr_gal_511_DC2_earthocc.h5 4.53 GB"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"%%capture\n",
"response_path = data_dir / \"psr_gal_511_DC2_earthocc.h5\"\n",
"\n",
"fetch_wasabi_file(\"COSI-SMEX/develop/Data/Responses/PointSourceResponse/psr_gal_511_DC2_earthocc.h5\", \n",
" response_path,\n",
" checksum = '99f8a49b21373110ee371acfa1d52a36')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Wasabi path: COSI-SMEX/DC2/Data/Sources/511_thin_disk_3months_binned_data.hdf5 140.3 MB"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"%%capture\n",
"file_path = data_dir / \"511_thin_disk_3months_binned_data.hdf5\"\n",
"\n",
"fetch_wasabi_file(\"COSI-SMEX/DC2/Data/Sources/511_thin_disk_3months_binned_data.hdf5\", \n",
" file_path,\n",
" checksum = '57aa483c4fd42d8964ad71d57ef646b3')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 1: Simple Extended Source"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 1 : Define the extended source\n",
"This defines a simple extended source using `astromodels.ExtendedSource`, combining a Gaussian spectral shape centered at 511 keV with a Gaussian spatial model centered near the Galactic Center."
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"