Skip to content

Commit

Permalink
Transfer improvements from F2023 obs astro to stellarphot
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcraig committed Dec 4, 2023
1 parent c8b99b3 commit 21a4cb7
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 61 deletions.
18 changes: 9 additions & 9 deletions stellarphot/notebooks/photometry/03-photometry-template.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"\n",
"from stellarphot import Camera, SourceListData\n",
"from stellarphot.photometry import *\n",
"from stellarphot.gui_tools.photometry_widget_functions import PhotometrySettings"
"from stellarphot.gui_tools.photometry_widget_functions import PhotometrySettings\n"
]
},
{
Expand All @@ -40,7 +40,7 @@
"source": [
"##\n",
"## Setting defining the observatory and camera\n",
"## \n",
"##\n",
"feder_cg_16m = Camera(gain = 1.5 * u.electron / u.adu,\n",
" read_noise = 10.0 * u.electron,\n",
" dark_current=0.01 * u.electron / u.second,\n",
Expand All @@ -49,7 +49,7 @@
"feder_obs = EarthLocation(lat = 46.86678, lon=-96.45328, height=311)\n",
"\n",
"# Maxmimum ADU for the images before we should consider pixels saturated\n",
"max_adu = 50000"
"max_adu = 50000\n"
]
},
{
Expand All @@ -70,7 +70,7 @@
"outputs": [],
"source": [
"ps = PhotometrySettings()\n",
"ps.box"
"ps.box\n"
]
},
{
Expand Down Expand Up @@ -104,7 +104,7 @@
"aperture_settings = ps.aperture_settings\n",
"\n",
"# Retrieve the object name here\n",
"object_name = ps.object_name"
"object_name = ps.object_name\n"
]
},
{
Expand All @@ -131,11 +131,11 @@
"fwhm_estimate = 5\n",
"\n",
"# Enter date data was taken here\n",
"date = '2021-09-28'\n",
"date = ps.ifc.summary['date-obs'][0].split('T')[0]\n",
"\n",
"# Enter the name you want to give the photometry data file (it should end in\n",
"# .ecsv). This will be saved in the same directory as the images)\n",
"photometry_file = f'{object_name}-{date}.ecsv'"
"photometry_file = f'{object_name}-{date}.ecsv'\n"
]
},
{
Expand Down Expand Up @@ -163,7 +163,7 @@
" reject_too_close=True,\n",
" reject_background_outliers=True,\n",
" passband_map=feder_filters,\n",
" fwhm_by_fit=False)"
" fwhm_by_fit=False)\n"
]
},
{
Expand All @@ -174,7 +174,7 @@
},
"outputs": [],
"source": [
"photometry_table.write(photometry_file)"
"photometry_table.write(photometry_file)\n"
]
},
{
Expand Down
Loading

0 comments on commit 21a4cb7

Please sign in to comment.