Skip to content

Commit bcd132b

Browse files
committed
minor edits to links, text
1 parent 11dc4a4 commit bcd132b

1 file changed

Lines changed: 13 additions & 24 deletions

File tree

notebooks/WFC3/uvis_amp_equalization/uvis_amp_equalization.ipynb

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,21 @@
5252
"import glob\n",
5353
"import os\n",
5454
"import crds\n",
55+
"import shutil\n",
56+
"\n",
5557
"import numpy as np\n",
5658
"import matplotlib.pyplot as plt\n",
57-
"from astropy.io import fits\n",
59+
"%matplotlib inline\n",
60+
"\n",
61+
"from astropy.io import ascii, fits\n",
5862
"from astropy.visualization import ImageNormalize, ZScaleInterval\n",
5963
"from astropy.convolution import convolve, Gaussian2DKernel\n",
6064
"from astropy.stats import gaussian_fwhm_to_sigma\n",
6165
"from photutils.segmentation import detect_sources, detect_threshold\n",
6266
"from astroquery.mast import Observations\n",
63-
"\n",
64-
"%matplotlib inline"
67+
"from drizzlepac import tweakreg, astrodrizzle\n",
68+
"from drizzlepac.processInput import getMdriztabPars\n",
69+
"from IPython.display import Image, clear_output\n"
6570
]
6671
},
6772
{
@@ -152,7 +157,6 @@
152157
"outputs": [],
153158
"source": [
154159
"# Filter for calibrated science products (in this case, FLC and DRC files from CALWF3)\n",
155-
"\n",
156160
"filtered_products = Observations.filter_products(\n",
157161
" data_products,\n",
158162
" productSubGroupDescription=[\"FLC\", \"DRC\",],\n",
@@ -194,10 +198,6 @@
194198
"metadata": {},
195199
"outputs": [],
196200
"source": [
197-
"import os\n",
198-
"import shutil\n",
199-
"from astropy.io import fits\n",
200-
"\n",
201201
"# Directory where files were downloaded\n",
202202
"download_dir = \"mastDownload\"\n",
203203
"\n",
@@ -303,7 +303,6 @@
303303
"metadata": {},
304304
"outputs": [],
305305
"source": [
306-
"\n",
307306
"# CRDS configuration for HST reference files\n",
308307
"os.environ['CRDS_PATH'] = '~/crds_cache'\n",
309308
"os.environ['CRDS_SERVER_URL'] = 'https://hst-crds.stsci.edu'\n",
@@ -758,7 +757,7 @@
758757
"\n",
759758
"\n",
760759
"\n",
761-
"We provide a worked example using our 2 example images below; see the [DrizzlePac handbook](https://drizzlepac.readthedocs.io) and the [DrizzlePac notebooks](https://spacetelescope.github.io/hst_notebooks/notebooks/DrizzlePac/) for full parameter guidance.\n"
760+
"We provide a worked example using our 2 example images below; see the [DrizzlePac handbook](https://drizzlepac.readthedocs.io) and the [DrizzlePac notebooks](https://spacetelescope.github.io/hst_notebooks/notebooks/DrizzlePac/README.html) for full parameter guidance.\n"
762761
]
763762
},
764763
{
@@ -768,8 +767,6 @@
768767
"metadata": {},
769768
"outputs": [],
770769
"source": [
771-
"from drizzlepac import tweakreg, astrodrizzle\n",
772-
"from IPython.display import Image, clear_output\n",
773770
"tweakreg.TweakReg(\n",
774771
" eq_files,\n",
775772
" imagefindcfg={\"threshold\": 200, \"conv_width\": 6},\n",
@@ -781,7 +778,7 @@
781778
" ylimit=0.4,\n",
782779
" searchrad=0.15,\n",
783780
" tolerance=1,\n",
784-
")\n"
781+
")"
785782
]
786783
},
787784
{
@@ -792,7 +789,7 @@
792789
"outputs": [],
793790
"source": [
794791
"rootname = \"ifcpc6wfq\"\n",
795-
"from astropy.io import ascii, fits\n",
792+
"\n",
796793
"plt.figure(figsize=(7, 7), dpi=140)\n",
797794
"chip1_data = fits.getdata(rootname + \"_flc_eq.fits\", \"SCI\", 2)\n",
798795
"chip2_data = fits.getdata(rootname + \"_flc_eq.fits\", \"SCI\", 1)\n",
@@ -846,7 +843,6 @@
846843
"metadata": {},
847844
"outputs": [],
848845
"source": [
849-
"from drizzlepac.processInput import getMdriztabPars\n",
850846
"def get_vals_from_mdriztab(\n",
851847
" input_files,\n",
852848
" kw_list=[\n",
@@ -877,7 +873,6 @@
877873
"metadata": {},
878874
"outputs": [],
879875
"source": [
880-
"from drizzlepac import astrodrizzle\n",
881876
"output_name = 'ifcpc6030_equalized' # prefix for output DRZ files\n",
882877
"astrodrizzle.AstroDrizzle(\n",
883878
" eq_files,\n",
@@ -950,7 +945,7 @@
950945
"## About this Notebook\n",
951946
"\n",
952947
"\n",
953-
"**Updated On:** 2026-04-09\n",
948+
"**Updated On:** 2026-04-13\n",
954949
"\n",
955950
"**Authors:** \n",
956951
"- Anne O'Connor, WFC3 Team \n",
@@ -972,16 +967,10 @@
972967
"\n",
973968
"* [Citing `drizzlepac`](https://zenodo.org/records/3743274)\n",
974969
"\n",
975-
"* [Citing `matplotlib`](https://matplotlib.org/stable/project/citing.html``)\n",
970+
"* [Citing `matplotlib`](https://matplotlib.org/stable/project/citing.html)\n",
976971
"\n",
977972
"* [Citing `numpy`](https://numpy.org/citing-numpy/)"
978973
]
979-
},
980-
{
981-
"cell_type": "markdown",
982-
"id": "b838ab7a",
983-
"metadata": {},
984-
"source": []
985974
}
986975
],
987976
"metadata": {

0 commit comments

Comments
 (0)