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

DrizzlePac notebook dependency updates #301

Merged
merged 12 commits into from
Aug 27, 2024
8 changes: 4 additions & 4 deletions notebooks/DrizzlePac/align_mosaics/align_mosaics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@
" col_dict[f'{kw}pix'].append(val)\n",
" \n",
"mast_ir_wcs = Table(col_dict)\n",
"mast_ir_wcs.show_in_notebook()"
"mast_ir_wcs"
]
},
{
Expand Down Expand Up @@ -465,7 +465,7 @@
" col_dict_uvis[f'{kw}pix'].append(val)\n",
" \n",
"mast_uvis_wcs = Table(col_dict_uvis)\n",
"mast_uvis_wcs.show_in_notebook()"
"mast_uvis_wcs"
]
},
{
Expand Down Expand Up @@ -1200,7 +1200,7 @@
"## About this Notebook <a id=\"about\"></a>\n",
"\n",
" Created: 14 Dec 2018; J. Mack\n",
" Updated: 31 May 2024; J. Mack & B. Kuhn\n",
" Updated: 02 Aug 2024; J. Mack & B. Kuhn\n",
"\n",
"**Source:** GitHub [spacetelescope/hst_notebooks](https://github.com/spacetelescope/hst_notebooks)\n",
"\n",
Expand Down Expand Up @@ -1244,7 +1244,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
14 changes: 7 additions & 7 deletions notebooks/DrizzlePac/align_mosaics/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
astropy==5.3.3
astroquery==0.4.6
drizzlepac==3.5.1
ipython==8.11.0
matplotlib==3.7.0
numpy==1.23.4
photutils==1.12.0
astropy>=5.3.3
astroquery>=0.4.6
drizzlepac>=3.5.1
ipython>=8.11.0
matplotlib>=3.7.0
numpy>=1.23.4
photutils==1.12.0 # The drizzlepac needs deprecated methods such as DAOGroup.
haticekaratay marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"The following Python packages are required to run the Jupyter Notebook:\n",
" - [**collections**](https://docs.python.org/3/library/collections.html) - include specialized datatypes\n",
" - [**glob**](https://docs.python.org/3/library/glob.html) - gather lists of filenames\n",
" - [**os**](https://docs.python.org/3/library/os.html) - change and make directories\n",
" - [**os**](https://docs.python.org/3/library/os.html) - change and make directories \n",
" - [**shutil**](https://docs.python.org/3/library/shutil.html) - perform high-level file operations\n",
" - [**iPython**](https://ipython.readthedocs.io/en/stable/) - interactive handling\n",
" - [**matplotlib**](https://matplotlib.org) - create graphics\n",
Expand Down Expand Up @@ -1013,7 +1013,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
18 changes: 9 additions & 9 deletions notebooks/DrizzlePac/align_sparse_fields/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
astropy==6.0.0
astroquery==0.4.6
crds==11.17.15
drizzlepac==3.6.2
ipython==8.21.0
matplotlib==3.8.2
numpy==1.26.3
photutils==1.12.0
jupyter==1.0.0
astropy>=6.0.0
astroquery>=0.4.6
crds>=11.17.15
drizzlepac>=3.6.2
ipython>=8.21.0
matplotlib>=3.8.2
numpy>=1.26.3
photutils==1.12.0 # The drizzlepac needs deprecated methods such as DAOGroup.
jupyter>=1.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"source": [
"<a id=\"intro\"></a>\n",
"## Introduction\n",
"The alignment of HST exposures is a critical step in image stacking or combination performed with software such as `AstroDrizzle`. Generally, a *relative* alignment is performed to align one or multiple images to another image that is designated as the reference image. The reference image is generally the deepest exposure and/or that covering the largest area of all the exposures. This process aligns the images to each other, but the pointing error of the observatory can still cause the images to have incorrect *absolute* astrometry. When absolute astrometry is desired, the images can be aligned to an external catalog with an absolute world coordinate system (WCS). In this example, we will provide a workflow to query catalogs such as SDSS and Gaia using the astroquery package, and then align the images to that catalog using TweakReg.\n",
"The alignment of HST exposures is a critical step in image stacking or combination performed with software such as `AstroDrizzle`. Generally, a *relative* alignment is performed to align one or multiple images to another image that is designated as the reference image. The reference image is generally the deepest exposure and/or that covering the largest area of all the exposures. This process aligns the images to each other, but the pointing error of the observatory can still cause the images to have incorrect *absolute* astrometry. When absolute astrometry is desired, the images can be aligned to an external catalog with an absolute world coordinate system (WCS). In this example, we will provide a workflow to query catalogs such as SDSS and Gaia using the astroquery package, and then align the images to that catalog using TweakReg. \n",
"\n",
"The workflow in this notebook for aligning images to [Gaia](https://www.cosmos.esa.int/web/gaia/home) is based on [WFC3 ISR 2017-19: Aligning HST Images to Gaia: a Faster Mosaicking Workflow](https://www.stsci.edu/files/live/sites/www/files/home/hst/instrumentation/wfc3/documentation/instrument-science-reports-isrs/_documents/2017/WFC3-2017-19.pdf) and contains a subset of the information and code found in [this repository](https://github.com/spacetelescope/gaia_alignment). For more information, see the notebook in that repository titled [Gaia_alignment.ipynb](https://github.com/spacetelescope/gaia_alignment/blob/master/Gaia_alignment.ipynb).\n",
"\n",
Expand Down Expand Up @@ -318,7 +318,7 @@
"outputs": [],
"source": [
"coord = SkyCoord(ra=RA, dec=Dec, unit=(u.deg, u.deg))\n",
"radius = Quantity(5., u.arcmin)"
"radius = Quantity(3., u.arcmin)"
]
},
{
Expand Down Expand Up @@ -965,7 +965,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
18 changes: 9 additions & 9 deletions notebooks/DrizzlePac/align_to_catalogs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
astropy==6.0.0
astroquery==0.4.6
crds==11.17.15
drizzlepac==3.6.2
ipython==8.21.0
matplotlib==3.8.2
numpy==1.26.3
photutils==1.12.0
jupyter==1.0.0
astropy>=6.0.0
astroquery==0.4.6 # SDSS.query_region() method methods changed, causing errors with later releases. The notebook needs to be updated.
crds>=11.17.15
drizzlepac>=3.6.2
ipython>=8.21.0
matplotlib>=3.8.2
numpy>=1.26.3
photutils==1.12.0 # The drizzlepac needs deprecated methods such as DAOGroup.
jupyter>=1.0.0
11 changes: 2 additions & 9 deletions notebooks/DrizzlePac/drizzle_wfpc2/drizzle_wfpc2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"source": [
"## 1. Download the Data <a id=\"Data\"></a>\n",
"\n",
"This example uses WFPC2 observations of Messier 2 in the F814W filter. The data come from GO proposal [11100](http://www.stsci.edu/cgi-bin/get-proposal-info?id=11100&observatory=HST) _\"Two new 'bullets' for MOND: revealing the properties of dark matter in massive merging clusters\"_. Four images were acquired using a 4-pt dither box pattern, followed by two images offset with a dither-line pattern. \n",
"This example uses WFPC2 observations of Messier 2 in the F814W filter. The data come from GO proposal [11100](http://www.stsci.edu/cgi-bin/get-proposal-info?id=11100&observatory=HST) _\"Two new 'bullets' for MOND: revealing the properties of dark matter in massive merging clusters\"_. Four images were acquired using a 4-pt dither box pattern, followed by two images offset with a dither-line pattern. \n",
"\n",
"The data are downloaded using the `astroquery` API to access the [MAST](http://archive.stsci.edu) archive. The `astroquery.mast` [documentation](http://astroquery.readthedocs.io/en/latest/mast/mast.html) has more examples for how to find and download data from MAST."
]
Expand Down Expand Up @@ -129,13 +129,6 @@
"First we download the reference files from the CRDS website. See the initialization notebook in this repository for more information. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -537,7 +530,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.12.4"
},
"varInspector": {
"cols": {
Expand Down
24 changes: 12 additions & 12 deletions notebooks/DrizzlePac/drizzle_wfpc2/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
astropy==5.3.3
astroquery==0.4.6
drizzlepac==3.5.1
matplotlib==3.7.0
numpy==1.23.4
photutils==1.12.0
stsci.image==2.3.5
stsci.imagestats==1.6.3
stsci.skypac==1.0.9
stsci.stimage==0.2.6
stsci.tools==4.0.1
stwcs==1.7.2
astropy>=5.3.3
astroquery>=0.4.6
drizzlepac>=3.5.1
matplotlib>=3.7.0
numpy>=1.23.4
photutils==1.12.0 # The drizzlepac needs deprecated methods such as DAOGroup.
stsci.image>=2.3.5
stsci.imagestats>=1.6.3
stsci.skypac>=1.0.9
stsci.stimage>=0.2.6
stsci.tools>=4.0.1
stwcs>=1.7.2
crds
4 changes: 2 additions & 2 deletions notebooks/DrizzlePac/mask_satellite/mask_satellite.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"## Introduction <a id=\"intro_ID\"></a>\n",
"[Table of Contents](#toc)\n",
"\n",
"Even though Hubble has a small field of view, satellites are commonly captured in images. The cosmic ray rejection algorithm in Astrodrizzle is not well suited to eliminate satellite trails, and the affected adjacent pixels that make up their wings leave ugly blemishes in stacked images. \n",
"Even though Hubble has a small field of view, satellites are commonly captured in images. The cosmic ray rejection algorithm in Astrodrizzle is not well suited to eliminate satellite trails, and the affected adjacent pixels that make up their wings leave ugly blemishes in stacked images. \n",
"\n",
"To fix this problem, the pixels around satellite trails need to be marked as bad in the affected images. There are several ways to accomplish this goal. The ACS Team developed multiple algorithms to automatically detect and mask satellite trails. The newest is a module called `findsat_mrt` and is decribed in [ISR ACS 2022-08](https://www.stsci.edu/files/live/sites/www/files/home/hst/instrumentation/acs/documentation/instrument-science-reports-isrs/_documents/isr2208.pdf). The 'readthedocs' page can be found here: [MRT-based Satellite Trail Detection](https://acstools.readthedocs.io/en/latest/findsat_mrt.html). The second module is called `satdet` and is described in [ISR ACS 2016-01](http://www.stsci.edu/hst/acs/documents/isrs/isr1601.pdf). The 'readthedocs' page for the software can be found here: [Satellite Trails Detection](https://acstools.readthedocs.io/en/stable/satdet.html). `findsat_mrt` has the benefit of significantly improved sensitivity over `satdet` but it is more computationally demanding. \n",
"\n",
Expand Down Expand Up @@ -1162,7 +1162,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
22 changes: 11 additions & 11 deletions notebooks/DrizzlePac/mask_satellite/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
regions==0.7
astropy==6.0.0
astroquery==0.4.6
crds==11.17.15
drizzlepac==3.6.2
ipython==8.21.0
matplotlib==3.8.2
photutils==1.12.0
jupyter==1.0.0
acstools==3.7.1
scikit-image==0.20.0
regions>=0.7
astropy>=6.0.0
astroquery>=0.4.6
crds>=11.17.15
drizzlepac>=3.6.2
ipython>=8.21.0
matplotlib>=3.8.2
photutils==1.12.0 # The drizzlepac needs deprecated methods such as DAOGroup.
jupyter>=1.0.0
acstools>=3.7.1
scikit-image>=0.20.0
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"\n",
"This example was written to help users better understand the subtleties in improving image sampling for dithered data. One of the powers of the *drizzling* algorithm is that, given properly dithered images, it can restore much of the information lost due to undersampled images ([Fruchter and Hook, 2002](http://iopscience.iop.org/article/10.1086/338393/pdf)). \n",
"\n",
"This work is based on [ISR ACS 2015-01](https://www.stsci.edu/files/live/sites/www/files/home/hst/instrumentation/acs/documentation/instrument-science-reports-isrs/_documents/isr1501.pdf), which contains a more detailed discussion than presented here.\n",
"This work is based on [ISR ACS 2015-01](https://www.stsci.edu/files/live/sites/www/files/home/hst/instrumentation/acs/documentation/instrument-science-reports-isrs/_documents/isr1501.pdf), which contains a more detailed discussion than presented here. \n",
"\n",
"In practice, this requires the use of `Astrodrizzle` task within the `Drizzlepac` package. This example will:\n",
"\n",
Expand Down Expand Up @@ -735,7 +735,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
18 changes: 9 additions & 9 deletions notebooks/DrizzlePac/optimize_image_sampling/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
astropy==6.0.1
astroquery==0.4.7
crds==11.17.20
drizzlepac==3.6.2
ipython==8.22.2
jupyter==1.0.0
matplotlib==3.8.4
numpy==1.26.4
photutils==1.12.0
astropy>=6.0.1
astroquery>=0.4.7
crds>=11.17.20
drizzlepac>=3.6.2
ipython>=8.22.2
jupyter>=1.0.0
matplotlib>=3.8.4
numpy>=1.26.4
photutils==1.12.0 # The drizzlepac needs deprecated methods such as DAOGroup.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
astropy==6.0.1
astroquery==0.4.7
drizzlepac==3.6.2
matplotlib==3.8.4
numpy==1.26.4
photutils==1.12.0
regions==0.9
astropy>=6.0.1
astroquery>=0.4.7
drizzlepac>=3.6.2
matplotlib>=3.8.4
numpy>=1.26.4
photutils==1.12.0 # The drizzlepac needs deprecated methods such as DAOGroup.
regions>=0.9
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Once you are happy with the sources being used for alignment, `TweakReg` may be used to align the two HST images `jcdua3f4q_flc.fits` and `jcdua3f8q_flc.fits` to one another or to an external reference catalog. For more information, see the alignment notebooks in this repository. "
"Once you are happy with the sources being used for alignment, `TweakReg` may be used to align the two HST images `jcdua3f4q_flc.fits` and `jcdua3f8q_flc.fits` to one another or to an external reference catalog. For more information, see the alignment notebooks in this repository. "
]
},
{
Expand Down Expand Up @@ -738,7 +738,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
astropy==6.0.0
astroquery==0.4.6
crds==11.17.15
drizzlepac==3.6.2
ipython==8.21.0
matplotlib==3.8.2
numpy==1.26.3
photutils==1.12.0
jupyter==1.0.0
astropy>=6.0.0
astroquery>=0.4.6
crds>=11.17.15
drizzlepac>=3.6.2
ipython>=8.21.0
matplotlib>=3.8.2
numpy>=1.26.3
photutils==1.12.0 # The drizzlepac needs deprecated methods such as DAOGroup.
jupyter>=1.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"## Introduction\n",
"<a id=\"intro\"></a>\n",
"\n",
"Starting in December 2019, improved astrometric solutions for ACS and WFC3 images are available in the World Coordinate System (WCS) of the exposure file (`flt.fits` and `flc.fits`) FITS headers, with alternate WCS solutions appended as additional headerlet extensions. These solutions are also available as separate [headerlet](https://stwcs.readthedocs.io/en/latest/headerlet.html) FITS files which may be downloaded and applied to the FITS images. <br> \n",
"Starting in December 2019, improved astrometric solutions for ACS and WFC3 images are available in the World Coordinate System (WCS) of the exposure file (`flt.fits` and `flc.fits`) FITS headers, with alternate WCS solutions appended as additional headerlet extensions. These solutions are also available as separate [headerlet](https://stwcs.readthedocs.io/en/latest/headerlet.html) FITS files which may be downloaded and applied to the FITS images. <br> \n",
"<br>\n",
"<b>This notebook shows how to examine different WCS solutions contained in the FITS images and how to improve the relative alignment of exposures in the F225W and F336W filters which were taken in the same visit but which have different active WCS solutions.</b>\n",
"\n",
Expand Down Expand Up @@ -981,7 +981,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
Loading