From e88c962ff73817815a533930e7323736946c0e24 Mon Sep 17 00:00:00 2001 From: gibsongreen Date: Wed, 20 Nov 2024 21:26:48 -0500 Subject: [PATCH] final styling --- notebooks/MIRI/psf_photometry/miri_1028.ipynb | 7 +++--- .../MIRI/psf_photometry/miri_spacephot.ipynb | 24 ------------------- 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/notebooks/MIRI/psf_photometry/miri_1028.ipynb b/notebooks/MIRI/psf_photometry/miri_1028.ipynb index 86c350caa..35d38952a 100644 --- a/notebooks/MIRI/psf_photometry/miri_1028.ipynb +++ b/notebooks/MIRI/psf_photometry/miri_1028.ipynb @@ -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", @@ -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)" ] }, { @@ -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", @@ -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)" ] }, { diff --git a/notebooks/MIRI/psf_photometry/miri_spacephot.ipynb b/notebooks/MIRI/psf_photometry/miri_spacephot.ipynb index 7169609cc..c286c8b1d 100644 --- a/notebooks/MIRI/psf_photometry/miri_spacephot.ipynb +++ b/notebooks/MIRI/psf_photometry/miri_spacephot.ipynb @@ -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.
\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,