Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling Corrections #295

Merged
merged 4 commits into from
Jul 3, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions notebooks/DrizzlePac/align_to_catalogs/align_to_catalogs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"\n",
"For this notebook, we will download WFC3/UVIS images of NGC 6791 from \n",
"program [12692](http://www.stsci.edu/cgi-bin/get-proposal-info?id=12692&observatory=HST) \n",
"in the F606W filter acquired in Visit 01. The three FLC images have been processed by the HST WFC3 pipeline (calwf3), which includes bias subtraction, dark current and CTE correction, cosmic-ray rejection, and flatfielding:\n",
"in the F606W filter acquired in Visit 01. The three FLC images have been processed by the HST WFC3 pipeline (calwf3), which includes bias subtraction, dark current and CTE correction, cosmic-ray rejection, and flat-fielding:\n",
"\n",
" ibwb01xqq_flc.fits\n",
" ibwb01xrq_flc.fits\n",
Expand Down Expand Up @@ -555,7 +555,7 @@
" outshifts='Gaia_shifts.txt', # Name of the shift file that will be saved.\n",
" wcsname=wcsname, # Give our WCS a new name defined above.\n",
" reusename=True, # Overwrite the WCS if it exists.\n",
" ylimit=0.3,\n",
" ylimit=0.3, # The ylimit for the residuals plot.\n",
" fitgeometry='rscale', # Allow for translation, rotation, and plate scaling.\n",
" searchrad=0.1, # With many sources use a smaller search radius for convergence.\n",
" updatehdr=False) # Don't update the header with new WCS until later.\n",
Expand Down Expand Up @@ -689,7 +689,7 @@
"<a id=\"overplot\"></a>\n",
"### 3.5 Overplot Matched Sources on the Image\n",
"\n",
"Now, let's plot the sources that were matched between all images on the \"bottom\" UVIS chip. This is referred to as chip 2 or SCI, 1 or extension 1. The cell below reads in the `*_fit.match` file as an `astropy` table. Unfortunatley, it doesn't automatically name columns so we look at the header to grab the columns.\n",
"Now, let's plot the sources that were matched between all images on the \"bottom\" UVIS chip. This is referred to as chip 2 or SCI, 1 or extension 1. The cell below reads in the `*_fit.match` file as an `astropy` table. Unfortunately, it doesn't automatically name columns so we look at the header to grab the columns.\n",
"\n",
"To verify that TweakReg obtained an acceptable fit between matched source catalogs, it is useful to inspect the results before updating the image header WCS. In the figure below, sources that are matched with Gaia are overplotted on one of the input FLC frames with the two chips merged together. \n",
"\n",
Expand All @@ -715,8 +715,8 @@
"plt.imshow(fullsci, cmap='Greys', origin='lower', vmin=z1, vmax=z2)\n",
"\n",
"match_tab = ascii.read(rootname+'_flc_catalog_fit.match') # Load the match file in astropy table.\n",
"match_tab_chip1 = match_tab[match_tab['col15'] == 2] # Filter the table for sources on chip 1 (on ext 4).\n",
"match_tab_chip2 = match_tab[match_tab['col15'] == 1] # Filter he table for sources on chip 1 (on ext 4).\n",
"match_tab_chip1 = match_tab[match_tab['col15'] == 2] # Filter the table for sources on chip 1.\n",
"match_tab_chip2 = match_tab[match_tab['col15'] == 1] # Filter the table for sources on chip 2.\n",
"x_cord1, y_cord1 = match_tab_chip1['col11'], match_tab_chip1['col12']\n",
"x_cord2, y_cord2 = match_tab_chip2['col11'], match_tab_chip2['col12']\n",
"\n",
Expand Down Expand Up @@ -755,7 +755,7 @@
" outshifts='Gaia_shifts.txt', # Name of the shift file that will be saved.\n",
" wcsname=wcsname, # Give our WCS a new name defined above.\n",
" reusename=True, # Overwrite the WCS if it exists.\n",
" ylimit=0.3,\n",
" ylimit=0.3, # The ylimit for the residuals plot.\n",
" fitgeometry='rscale', # Allow for translation, rotation, and plate scaling.\n",
" searchrad=0.1, # With many sources use a smaller search radius for convergence.\n",
" updatehdr=True) # Update the header with new WCS solution.\n",
Expand All @@ -774,7 +774,7 @@
"\n",
"While the three sets of FLC files are now aligned, in this example we drizzle together only the two long exposures. When exposures are very different lengths, drizzling them together doesn't work well when 'EXP' weighting is used. For objects that saturate in the long exposures, the problem occurs at the boundary where the signal transitions from only being present in short exposures near the core to being present at larger radii in the longer exposures. The result is a discontinuity in the PSF radial profile and a resulting flux that is too low in some regions. <b>For photometry of saturated objects, the short exposures should be drizzled separately from the long exposures.<b> \n",
" \n",
"Next, we combine the images throught drizzling, and retrieve some recommended values for this process from the MDRIZTAB reference file. The parameters in this file are different for each detector and are based on the number of input frames. These are a good starting point for drizzling and may be adjusted based on your science goals."
"Next, we combine the images through drizzling, and retrieve some recommended values for this process from the MDRIZTAB reference file. The parameters in this file are different for each detector and are based on the number of input frames. These are a good starting point for drizzling and may be adjusted based on your science goals."
]
},
{
Expand Down Expand Up @@ -907,7 +907,7 @@
"\n",
"[Table of Contents](#toc)\n",
"\n",
"Many other services have interfaces for querying catalogs that can also be used to align HST images. In general, Gaia works very well for HST due to it's high precision, but can have a low number of sources in some regions, especially at high galactic latitudes. Aligning images to an absolute frame provides a way to make data comparable across many epochs/detectors/observatories, and in many cases, makes the alignment easier to complete."
"Many other services have interfaces for querying catalogs that can also be used to align HST images. In general, Gaia works very well for HST due to its high precision, but can have a low number of sources in some regions, especially at high galactic latitudes. Aligning images to an absolute frame provides a way to make data comparable across many epochs/detectors/observatories, and in many cases, makes the alignment easier to complete."
]
},
{
Expand All @@ -918,7 +918,7 @@
"## About this Notebook\n",
" \n",
" Created: 14 Dec 2018; V. Bajaj\n",
" Updated: 16 May 2024; M. Revalski, V. Bajaj, & J. Mack\n",
" Updated: 03 Jul 2024; M. Revalski, V. Bajaj, & J. Mack\n",
"\n",
"**Source:** GitHub [spacetelescope/hst_notebooks](https://github.com/spacetelescope/hst_notebooks)\n",
"\n",
Expand Down Expand Up @@ -965,7 +965,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
Loading