Skip to content

Commit

Permalink
update styling/whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsongreen committed Nov 21, 2024
1 parent adb1217 commit 2fcdbe0
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
"\n",
"from astroquery.mast import Observations\n",
"import os\n",
"from urllib import request\n",
"import tarfile\n",
"\n",
"# Background and PSF Functions\n",
Expand Down Expand Up @@ -387,7 +386,6 @@
"source": [
"# Do PSF Photometry using space_phot (details of fitting are in documentation)\n",
"# https://st-phot.readthedocs.io/en/latest/examples/plot_a_psf.html#jwst-images\n",
"\n",
"jwst_obs.psf_photometry(psfs, source_location, bounds={'flux': [-10, 10000],\n",
" 'centroid': [-2, 2],\n",
" 'bkg': [0, 50]},\n",
Expand Down Expand Up @@ -479,7 +477,6 @@
"outputs": [],
"source": [
"# Sort out LVL2 Data That Includes The Actual Source (there are 4 detectors)\n",
"\n",
"source_location = SkyCoord('5:05:30.6186', '+52:49:49.130', unit=(u.hourangle, u.deg))\n",
"lvl2 = []\n",
"for ref_image in lvl2_prelim:\n",
Expand Down Expand Up @@ -687,7 +684,6 @@
"outputs": [],
"source": [
"# Find Stars in Level 3 File\n",
"\n",
"# Get rough estimate of background (There are Better Ways to Do Background Subtraction)\n",
"bkgrms = MADStdBackgroundRMS()\n",
"mmm_bkg = MMMBackground()\n",
Expand Down Expand Up @@ -728,7 +724,6 @@
"outputs": [],
"source": [
"# Filter out only stars you want\n",
"\n",
"plt.figure(figsize=(12, 8))\n",
"plt.clf()\n",
"\n",
Expand Down Expand Up @@ -884,7 +879,6 @@
"source": [
"# Create a grid for fast lookup using WebbPSF. The larger the grid, the better the photometric precision.\n",
"# Developer note. Would be great to have a fast/approximate look up table.\n",
"\n",
"jwst_obs = space_phot.observation2(lvl2)\n",
"grid = space_phot.util.get_jwst_psf_grid(jwst_obs, num_psfs=4)"
]
Expand All @@ -899,7 +893,6 @@
"outputs": [],
"source": [
"# Now Loop Through All Stars and Build Photometry Table\n",
"\n",
"counter = 0.\n",
"badindex = []\n",
"\n",
Expand Down

0 comments on commit 2fcdbe0

Please sign in to comment.