diff --git a/Mosaic.ipynb b/Mosaic.ipynb index ae3b834..3c9dc99 100644 --- a/Mosaic.ipynb +++ b/Mosaic.ipynb @@ -10,7 +10,7 @@ "\n", "Montage is a general toolkit for reprojecting and mosaicking astronomical images and generally you have to marshall the specific data you want to use carefully. But there are a few large-scale uniform surveys that cover a large enough portion of the sky to allow a simple location-based approach.\n", "\n", - "
In this notebook we will choose a region of the sky and dataset to mosaic, retrieve the archive data, reproject and background-correct the images, and finally build an output mosaic. You are free to modify any of the mosaic parameters but beware that as you go larger all of the steps will take longer (possibly much longer). If you do this for three different wavelenths, you can put them together in a full-color composite using our Sky Visualization notebook, which produced the image on the right.
\n", + "In this notebook we will choose a region of the sky and dataset to mosaic, retrieve the archive data, reproject and background-correct the images, and finally build an output mosaic. You are free to modify any of the mosaic parameters but beware that as you go larger all of the steps will take longer (possibly much longer). If you do this for three different wavelenths, you can put them together in a full-color composite using our Sky Visualization notebook, which produced the image on the right.
\n", "\n", "As with many notebooks, this was derived from a longer script by breaking the processing up into sequential steps.\n", "These steps (cells) have to be run one in sequence. Wait for each cell to finish (watch for the step number in the brackets on the left to stop showing an asterisk) before starting the execution of next cell or run them all as a set.\n", @@ -28,7 +28,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -66,14 +66,14 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Startup folder: /Users/jcg/MontageDocs\n", + "Startup folder: /Users/jcg/FormalTest/MontageNotebooks\n", " Can't delete work tree; probably doesn't exist yet\n", "Work directory: Messier017\n" ] @@ -129,7 +129,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -181,7 +181,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -217,14 +217,14 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "mAdd: {'status': '0', 'time': 2.0}\n" + "mAdd: {'status': '0', 'time': 1.0}\n" ] } ], @@ -253,7 +253,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -270,7 +270,7 @@ "Montage is a general toolkit for reprojecting and mosaicking astronomical images and generally you have to marshall the specific data you want to use carefully. But there are a few large-scale uniform surveys that cover a large enough portion of the sky to allow a simple location-based approach.
-In this notebook we will choose a region of the sky and dataset to mosaic, retrieve the archive data, reproject and background-correct the images, and finally build an output mosaic. You are free to modify any of the mosaic parameters but beware that as you go larger all of the steps will take longer (possibly much longer). If you do this for three different wavelenths, you can put them together in a full-color composite using our Sky Visualization notebook, which produced the image on the right.
As with many notebooks, this was derived from a longer script by breaking the processing up into sequential steps. +
In this notebook we will choose a region of the sky and dataset to mosaic, retrieve the archive data, reproject and background-correct the images, and finally build an output mosaic. You are free to modify any of the mosaic parameters but beware that as you go larger all of the steps will take longer (possibly much longer). If you do this for three different wavelenths, you can put them together in a full-color composite using our Sky Visualization notebook, which produced the image on the right.
As with many notebooks, this was derived from a longer script by breaking the processing up into sequential steps. These steps (cells) have to be run one in sequence. Wait for each cell to finish (watch for the step number in the brackets on the left to stop showing an asterisk) before starting the execution of next cell or run them all as a set.
If you want to just see the code without all the explanation, check out this example.
The Montage Python package is a mixture of pure Python and Python binary extension code. It can be downloaded using pip install MontagePy
@@ -11788,7 +11788,7 @@The M
# Startup. The Montage modules are pretty much self-contained
@@ -11829,7 +11829,7 @@ Working Environment
-In [4]:
+In [2]:
# We create and move into subdirectories in this notebook
@@ -11880,7 +11880,7 @@ Working Environment
-Startup folder: /Users/jcg/MontageDocs
+Startup folder: /Users/jcg/FormalTest/MontageNotebooks
Can't delete work tree; probably doesn't exist yet
Work directory: Messier017
@@ -11904,7 +11904,7 @@ Retrieving Data from an Archive
-In [5]:
+In [3]:
# Create the FITS header for the mosaic.
@@ -11966,7 +11966,7 @@ Reprojecting the Images
-In [6]:
+In [4]:
# Reproject the original images to the frame of the
@@ -12016,7 +12016,7 @@ Coadding for a Mosaic
-In [7]:
+In [5]:
# Coadd the projected images without backgound correction.
@@ -12042,7 +12042,7 @@ Coadding for a Mosaic
-mAdd: {'status': '0', 'time': 2.0}
+mAdd: {'status': '0', 'time': 1.0}
@@ -12064,7 +12064,7 @@ View the Image
-In [8]:
+In [6]:
# Make a PNG rendering of the data and display it.
@@ -12097,7 +12097,7 @@ View the Image
-Out[8]:
+Out[6]:
@@ -12129,7 +12129,7 @@ Background Matching
-In [9]:
+In [7]:
# Determine the overlaps between images (for background modeling).
@@ -12190,7 +12190,7 @@ Background Correcting and Re-Mo
-In [10]:
+In [8]:
# Background correct the projected images.
@@ -12247,7 +12247,7 @@ Final Image¶
-In [11]:
+In [9]:
# Make a PNG rendering of the data and display it.
@@ -12282,7 +12282,7 @@ Final Image¶
-In [12]:
+In [10]:
Image(filename='mosaic.png')
@@ -12298,7 +12298,7 @@ Final Image¶
-Full Color and Interactive Display¶
The above can be packaged up in a Python script with whatever minimum input and defaults you desired. Repeat the processing for three different wavelengths and you can combine them (and optionally overlays of various sorts) into a full-color image. Again, see our mViewer sky visualization notebook for details.
+Full Color and Overlays¶
The above can be packaged up in a Python script with whatever minimum input and defaults you desired. Repeat the processing for three different wavelengths and you can combine them (and optionally overlays of various sorts) into a full-color image. See our mViewer sky visualization notebook for details.