Skip to content

Commit

Permalink
final styling
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsongreen committed Nov 21, 2024
1 parent 2fcdbe0 commit e88c962
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
7 changes: 3 additions & 4 deletions notebooks/MIRI/psf_photometry/miri_1028.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
"# Filter the product list to include only specific product subgroups: 'RATE', 'CAL', 'I2D', and 'ASN'\n",
"fplist = Observations.filter_products(plist, productSubGroupDescription=['CAL', 'I2D', 'ASN'])\n",
"\n",
"# Download the selected products from the MAST database (UNCOMMENT TO DOWNLOAD)\n",
"# Download the selected products from the MAST database\n",
"Observations.download_products(fplist)\n",
"\n",
"# Define source and destination directories\n",
Expand Down Expand Up @@ -1101,7 +1101,7 @@
"# Useful reference: https://webbpsf.readthedocs.io/en/latest/api/webbpsf.JWInstrument.html#webbpsf.JWInstrument.calc_psf\n",
"\n",
"jwst_obs = space_phot.observation2(lvl2)\n",
"psfs = space_phot.get_jwst_psf(jwst_obs, source_location) # ,num_psfs=4)"
"psfs = space_phot.get_jwst_psf(jwst_obs, source_location)"
]
},
{
Expand Down Expand Up @@ -1140,7 +1140,6 @@
" source_location,\n",
" bounds={\n",
" 'flux': [-10, 1000],\n",
" # 'centroid': [-2, 2],\n",
" 'bkg': [0, 50]\n",
" },\n",
" fit_width=5,\n",
Expand Down Expand Up @@ -1307,7 +1306,7 @@
"# Useful reference: https://webbpsf.readthedocs.io/en/latest/api/webbpsf.JWInstrument.html#webbpsf.JWInstrument.calc_psf\n",
"\n",
"jwst3_obs = space_phot.observation3(lvl3[0])\n",
"psf3 = space_phot.get_jwst3_psf(jwst_obs, jwst3_obs, source_location) # ,num_psfs=4)"
"psf3 = space_phot.get_jwst3_psf(jwst_obs, jwst3_obs, source_location)"
]
},
{
Expand Down
24 changes: 0 additions & 24 deletions notebooks/MIRI/psf_photometry/miri_spacephot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -547,30 +547,6 @@
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "2b1a0db5-500b-4f20-999f-67a94be66764",
"metadata": {},
"outputs": [],
"source": [
"# Get PSF from WebbPSF\n",
"# The function get_jwst_psf is a space_phot wrapper for the WebbPSF calc_psf and CreatePSFLibrary functions. It is intended to provide easy, but limited, access to WebbPSF.\n",
"# The source code for psfs = space_phot.get_jwst_psf(jwst_obs, source_location) is as follows:\n",
"\n",
"# c = webbpsf.gridded_library.CreatePSFLibrary(inst, inst.filter, num_psfs = 1, psf_location=(x, y), fov_pixels=psf_width, detectors=st_obs.detector, save=False)\n",
"# grid = c.create_grid()\n",
"\n",
"# In most cases, we assume the user wishes to simply grab the default WebbPSF. Advanced users should consider using webbpsf.\n",
"# In that case, you would use the code below.<br>\n",
"\n",
"# psf_model = inst.calc_psf(oversample=4,normalize='last') # creates a psf model in webbpsf\n",
"# psfs = photutils.psf.FittableImageModel(psf[0].data*16,normalize=False,oversampling=oversampling) # turns the psf into a fittableimage model to improve processing time\n",
"\n",
"# There are more advanced methods for generating your WebbPSF, but those are beyond the scope of this notebook.\n",
"# Useful reference: https://webbpsf.readthedocs.io/en/latest/api/webbpsf.JWInstrument.html#webbpsf.JWInstrument.calc_psf"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit e88c962

Please sign in to comment.