This file is indexed.

/usr/share/doc/munipack/mosaics.html is in munipack-doc 0.5.10-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- meta -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="description" content="A general astronomical image processing software">
<meta name="author" content="Filip Hroch">
<link href="news_feed.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed" />
<link type="text/css" rel="stylesheet" href="munipack.css">
<link rel="shortcut icon" href="favicon.ico">
<title>Munipack ‒ Mosaics</title>
</head>
<body>
<header>
<a href="munipack.html"><img src="title_logo.png" alt="Munipack's logo" class="head"></a>
<div class="headhead">
<div class="headtitle">
<a class="headtitle" href="munipack.html">Munipack</a>
<a class="headsubtitle" href="munipack.html">A general astronomical image processing software</a>
</div>
<ul class="menu">
  <li class="menu"><a href="docs.html" class="menu">Documents</a></li>
  <li class="menu"><a href="guide.html" class="menu">User guide</a></li>
</ul>
</div>
</header>

<h1>Mosaics</h1>

<p class="abstract">
How to montage multiple exposure to a single frame covering
large area of heavens.
</p>

<h2>Whirlpool Galaxy</h2>
<p>
<a href="http://en.wikipedia.org/wiki/Whirlpool_Galaxy">Whirlpool galaxy (M51)</a>
is a pretty photogenic object showing nice example of interacting (merging) of galaxies.
The primary, grand design galaxy, has a spiral arm deformed by interaction
with the small second one with a bar and without any arms.
Whirlpool galaxy is so large that fills full field of view of many
telescopes. Therefore we must apply mosaics technique to acquire
peripheral parts of Whirlpool.
</p>

<p>
A scene of the galaxy interaction covers unusually large part
of the sky. Night photographers are in doubt on which point
theirs equipment must be centred.
A large telescope can capture fainter objects (details)
but a small field of view permits portraying just only part of an
object. A small telescope has larger field of view, but detect
only brighter parts. Mosaics offers amazing possibility
to use of large telescope and also cover of larger part of sky.
On the contrary, the way is more time consuming and requires
advanced processing methods.
</p>

<p>
There, images of large part of neighbourhood of Whirlpool
galaxy taken on Vyškov's Observatory (17°01'20.6" E, 49°17'01.4" N)
by 0.4 m Newtonian telescope and Moravian Instrument's G2 camera via
a filter of RGB by Jaroslava Kocková and Filip Hroch
are served as an example. The data has poor quality, the observation
was having interrupted by rapidly changing clouds and some technical
problems with both CCD camera and telescope was solved. Please,
consider the images as an example for mosaic construction
(not a perfect imaging).
</p>

<p>
<a href="ftp://integral.physics.muni.cz/pub/munipack/munipack-data-m51.tar.gz">Download</a> data for mosaics of Whirlpool galaxy and unpack it:
</p>
<pre>
  $ wget ftp://integral.physics.muni.cz/pub/munipack/munipack-data-m51.tar.gz
  $ tar zxf munipack-data-m51.tar.gz
  $ cd munipack-data-m51/
</pre>


<p>
To construct a mosaics, please follow commands in this tutorial.
</p>

<h2>Photometric Precorrections</h2>

<p>
The first step is photometric precorrections of images.
</p>

<p>Construct of mean dark frame for Whirlpool (for darks
with 120s exposure time):
</p>
<pre>
$ munipack dark -o dark120.fits dark_005?.fits dark_008?.fits
</pre>

<p>
Tip. Inspect FITS header of dark120.fits. One will have zero temperatures
because input images has its chip temperatures pointed by CCD-TEMP keyword.
Munipack expects the keyword as TEMPERATURE. To get correct values,
set an appropriate  <a href="man_env.html">environment variable</a>:
</p>
<pre>
$ export FITS_KEY_TEMPERATURE="CCD-TEMP"
</pre>

<figure>
<img src="m51_dark.png" alt="m51_dark.png" title="Averadge of dark frames">
<figcaption>
Average of dark frames for object
</figcaption>
</figure>

<p>
Analogically, the mean dark frame for flat-field frames will be
constructed as
</p>
<pre>
$ munipack dark -o dark10.fits dark_003?.fits dark_004?.fits
</pre>

<p>
Flat-field frames can be corrected for dark as
</p>
<pre>
$ munipack phcorr -dark dark10.fits flat_Green_*.fits
</pre>
<p>
And the mean flat-field can be prepared as
</p>
<pre>
$ munipack flat -o flat_Green.fits flat_Green_*.fits
</pre>

<figure>
<img src="m51_flat.png" alt="m51_flat.png" title="Averadge of flat-field frames">
<figcaption>
Average of flat-field frames for object
</figcaption>
</figure>

<p>
All frames of Whirlpool can be corrected for both dark and flat-field frames
by the single command:
</p>
<pre>
$ munipack phcorr -dark dark120.fits -flat flat_Green.fits m51_Green_*.fits
</pre>

<figure>
<img src="m51_Green_0053.png" alt="m51_Green_0053.png" title="A corrected image">
<figcaption>
An image with all photometric precorrections applied.
</figcaption>
</figure>


<p>
The corrected images has the same name as the original which has been
backup-ed to ones endings with ~. It is highly recommended
visually compare images before and after precorrections.
</p>

<h2>Astrometry and Photometry Calibration</h2>

<p>
The first delicate point of our analysis is detection of stars
on images. The detection is mostly on base of presumption that
all stars are Gaussian-like peaks with an identical profile. The profile
has the same width at half of maximum (FWHM) which an image
of a point source imagined via our (optical) telescope (apparatus).
The FWHM is in pixels and is in range 2-10 for optical non-space
telescopes. The value can be easy estimated and checked with
Photometry tool in xmunipack:
</p>

<figure>
<img src="m51_photometry_tool.png" alt="m51_photometry_tool.png" title="Photometry Tool">
<figcaption>
Photometry Tool in action
</figcaption>
</figure>

<p>
With help of the tool, we can found that right parameters for
out images are: FWHM=6 and threshold is 10 sigma above background level.
With the information, all stars on all frames will be found and
aperture photometry will be easy:
</p>
<pre>
$ munipack find -f 6 -th 10  m51_Green_*.fits
$ munipack aphot m51_Green_*.fits
</pre>

<p>
An arbitrary image can show detected stars (see pic)
</p>

<figure>
<img src="m51_aphot.png" alt="m51_aphot.png" title="Detected Objects">
<figcaption>
Detected objects
</figcaption>
</figure>


<p>
The perfect arrange of images is prepared with help of precise astrometry.
To prepare astrometry, we should list a part an astrometry catalogue. The
UCAC5 is an ideal for our purposes. We are selected cone
about centre of Whirlpool galaxy in radius 0.2° because our
fields are spread over the area.
</p>
<pre>
$ munipack cone -c UCAC5 -r 0.2 202.47 +47.2
</pre>
<p>
and run the astrometry calibration
</p>
<pre>
$ munipack astrometry m51_Green_00*.fits
</pre>
<p>
Note use of --maxmatch option. In this case, when we need large
part of sky, we also need more than default count of stars.
</p>

<p>
The astrometry will take a while. The warnings like
</p>
<pre>
 Mutual match for files `m51_Green_0062.fits' and `cone.fits' failed.
</pre>
<p>
can be safety ignored. The visual inspection give our understand why
the match failed.
</p>



<h2>Final Mosaic</h2>

<p>
The last step is composition of images to a mosaic. Try
</p>
<pre>
$ munipack kombine --rcen 202.47 --dcen +47.2 --width 1000 --height 1000 \
>                  --adjust --expomask  m51_Green_00??.fits
</pre>
<p>
You can play with the values of centre of projection (--rcen, --dcen)
and also with size of output image.
</p>

<p>
Kombine trying to fine adjust of background level of individual
exposures with --adjust option.
</p>

<p>
Photon (count) rates are normalises on the same exposure time for parts
of images with different exposure time using of --expomask when an exposure
mask is created during merging.
</p>

<figure>
<img src="m51_mosaic.png" alt="m51_mosaic.png" title="Mosaic of Whirlpool galaxy">
<figcaption>
Mosaic of Whirlpool galaxy (non-calibrated frames). The logistic function
and some fine tuning of parameters has been applied.
</figcaption>
</figure>


<p>
The image is not perfect, specially due to clouds. On other side, we can
observe how the image was merged from single exposures (omitting --expomask).
</p>

<p>
Some CCD device problem are appeared: the residuals for hot column at
left part on coordinates (93,221-3) copied from flat-fields and the
dark rows at centre of the image. There is no way hot to correct it
by a standard way (the image must be patched).
</p>

<h2>Perfecting Mosaics by Photometric Calibration</h2>

<p>
The final image is affected by clouds which visible obscured our
object and reduces amount of collected light.
We should perfect of final image by using
of photometrically calibrated images.
</p>

<p>
The photometry calibration can be used to derive
different attenuation of light on different frames due to observing
conditions (clouds).
The calibration is not absolute and we not need know photometry
system and filter (moreover our identification of the filter as 'Green'
is probably incorrect).
</p>


<pre>
$ for A in m51_Green_00??.fits; do
    munipack fits --update-key FILTER="'V',Replacement of Green" $A;
    munipack phcal --photsys-ref Johnson --area 0.3 -c cone.fits \
           --col-ra RAJ2000 --col-dec DEJ2000 -f V --col-mag Gmag $A
  done
$ munipack kombine --rcen 202.47 --dcen +47.2 --width 1000 --height 1000 \
                   --adjust --expomask m51_Green_00??_cal.fits
</pre>

<figure>
<img src="m51_cal_mosaic.png" alt="m51_cal_mosaic.png" title="Mosaic of Whirlpool galaxy">
<figcaption>
Mosaic of Whirlpool galaxy (calibrated frames)
</figcaption>
</figure>


<h2>Tips</h2>

<p>
  Some recommendations for creating of photogenic frames:
</p>
<ul>
<li>Take images under excellent atmospheric conditions: suppress fluency
    of clouds, urban lights and similar polluting factors.
    Avoid observations near horizon and where changes of background
    can by expected.</li>
<li>Use stable equipment (temperature regulated camera) and the best
    flat-fields.</li>
<li>Cover all the area by similar exposures.</li>
<li>Try large overlaps (ideally per half of field of view)</li>
<li>Select the best exposures only.</li>
</ul>



<h2>See Also</h2>

<p>
Manuals:
<a href="man_kombine.html">Kombine</a>,
<a href="man_astrometry.html">Astrometry</a>,
<a href="man_aphot.html">Aperture Photometry</a>,
<a href="man_phcorr.html">Photometric corrections</a>.<br>
A bash script summarising of this tutorial: <a href="mosaic.sh">mosaic.sh</a>.
</p>

<p>
<a href="http://montage.ipac.caltech.edu/">Montage</a>
is much more advanced tool.
</p>


<footer>
<div style="float:left; margin-left:2em;">
Copyright &copy; 1997 – 2018
Filip Hroch (<a style="text-decoration: none" href="mailto:hroch@physics.muni.cz?Subject=Munipack" title="Author's Email"></a>), license <a href="http://www.gnu.org/licenses/gpl.html">GPLv3</a>.
</div>
<div style="float:right; margin-right:2em; margin-top:-0.2em;">
<a href="http://monteboo.blogspot.com/search/label/Munipack" title="Munipack on MonteBoo Blog"><img src="favicon-blogger.png" alt="Blogger"></a>
<a href="http://www.muni.cz/?lang=en" title="Masaryk University in Brno, Czech Republic"><img src="mu-logo.png" alt="Masaryk University"></a>
<a href="news_feed.xml" title="Munipack's Releases in Atom Syndication Format"><img src="Feed-icon.png" alt="Atom Feed"></a>
</div>
</footer>

</body>
</html>