This file is indexed.

/usr/share/doc/munipack/man_phfotran.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
<!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 ‒ Photometric System Transformation</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>Photometric System Transformation</h1>

<p class="abstract">
An approximation of photon fluxes in
a standard set of filters by a linear combination of
an instrumental set of filters
is determined on a field with known calibration sources.
</p>

<h2>Synopsis</h2>

<code>
munipack phfotran [.. parameters ..] file(s)
</code>

<h2>Description</h2>

<p>
A common astronomical apparatus composed from a telescope, filter
and a detector has slightly different spectral sensitivity than
the standard one which had established the primary (stellar)
standards of a photometric system. Fortunately, a commonly used
equipment close fits the standard spectral sensitivity due to
effort of manufactures. Therefore, any differences
are small and can be, with suitable precision, approximated by
a linear approximation.
</p>

<p>
This action determines such transformation by application
of the linear approximation between observed sum of counts and
expected photons from calibration stars.
</p>

<p>
The transformation table can be used to convert observed counts
<i>c</i> in an instrumental system (identified by PHOTSYS1) to
counts <i>c'</i> in a standard system (identified by PHOTSYS2).
</p>
<p>
<i>
c'<sub>i</sub> = Σ<sub>j</sub> C<sub>ij</sub> c<sub>j</sub>, i = { B,V ...}
</i>
</p>

<p>
The transformed counts <i>c'</i> will generally proportional to
observed photons and can be used for calibration.
</p>

<p>
The transformation is designed to be used on a calibration field.
The sparse field with many of well calibrated stars. There are sources
of such fields (which can be supposed as the secondary standards):
</p>
<ul>
<li><a href="http://www3.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/community/STETSON/standards/">Stetson's fields</a></li>
</ul>



<h2>Algorithm</h2>

<p>
The transformation is determined by the way:
</p>
<ul>
<li>Reference catalogue and frames are merged in spherical coordinates
with nearly positions.</li>
<li>From known filter in a photometric system and catalogue magnitude,
photon fluxes are derived.</li>
<li>Observed counts are normalized to rates using of both telescope
area and exposure time.</li>
<li>The transformation matrix is determined.</li>
</ul>

<p>
A result of the transformation is a nearly tri-diagonal matrix (elements around
diagonal dominates over other ones). The limitation of the shape is forced
due to ill-conditioning of the problem.
</p>


<h2>Prerequisites</h2>
<p>
Needs both astrometry and instrumental photometry of frames.
</p>

<p>
Headers would contain all the exposure time, filter, telescope area and photometry
system keywords. 
</p>

<p>
Specify photometric system (a conventional
set of filters). Default is used value from frame header, use it when value is missing 
or needs correction. The option is important while determining of photometry calibration.
</p>

<p>
Specify filter. Default is used value from frame header, use it when value is missing or needs correction. The filter
 is important while determining of photometry calibration.
</p>

<p>
When calibrated frame contains FWHM parameter, the first aperture larger
then the radius is used. When the parameter missing, the first aperture or user
provided aperture is used.
</p>


<p><b>Important.</b>
<p>
The exposure time, filter, gain, area and an instrumental photometry system 
are absolutely necessory for calibration and none of them can not be omitted. 
At first, all values are obtained by reading of headers of FITS files. 
If at least one is not found, the calibration 
process is stopped (a wrong calibration which looks as valid is much more worse 
than any fail).
</p>
<p>
The situation can be solved by the ways:
</p>
<ul>
<li>The values can be provided by editing of input files with help
    of <samp>fits</samp> module:
<pre>
$ munipack fits --key-update AREA=1,'[m] telescope area' huge.fits
</pre>
for all missing parameters.
 </li>
<li>
Also convenience options for most frequent missing parameters are
provided: area and instrumental photosystem:
<pre>
$ munipack phcal ... --area 1 --photsys-instr 'MONTEBOO' ... frames.fits
</pre>
The convenience options doesn't supply common keywords (exptime, filter
and gain) which can be usually found in frames.
</li>
</ul>

<p>
While common values of exposure times, filters etc. are included to every
header, the keywords can differ from Munipack's defaults. In the case,
set ones via <a href="man_env.html">environment variables</a>.
</p>

<h2>Input And Output</h2>

<p>
On input, FITS frames in several filters are
required. Ones must be passed in order from short- to long-wavelengths.
Composited frames are recommended.
</p>

<p>
On output, a new FITS table representing the transformation is created.
</p>

<h2>Parameters</h2>

<h3>Reference Catalogue:</h3>
<dl>
<dt><samp>-C,--cal</samp></dt><dd>The calibration is specified by
an exterior entity. The values are saved to a PHOTOMETRY extension
header and counts are converted to photons for both image and table
values.
</dd>
<dt><samp>-c,--cat</samp></dt><dd>Reference photometric catalogue. A fits table with
coordinates and magnitudes of reference stars. One can be a selection from a "real"
catalogue or a table prepared by oneself.
See section <a href="man_phcal.html#prep">Preparation of Photometric Catalogue</a>,
how create this table by hand.
</dd>
<dt><samp>-r,--ref</samp></dt><dd>Reference frame is used. The reference frame
usually created by <samp>-c,-C</samp> options. Useful for relative photometry.</dd>
<dt><samp>-f,--filters</samp></dt><dd>Filters used for calibration. </dd>
<dt><samp>-F,--filter-ref</samp></dt><dd>Reference filter for calibration.</dd>
<dt><samp>--col-ra</samp></dt><dd>Right Ascension column. Default is RAJ2000.</dd>
<dt><samp>--col-dec</samp></dt><dd>Declination column. Default is DEJ2000.</dd>
<dt><samp>--col-mag</samp></dt><dd>Magnitude column(s). Default is the filter
    (-f option) with 'mag' suffix like <samp>-f V --col-mag Vmag</samp> (?).</dd>
<dt><samp>--col-magerr</samp></dt><dd>Magnitude std. error column(s) (no default).
    If this parameter is omited, errors are estimated
    as the square of photons derived from magnitudes.</dd>
<dt><samp>--tol</samp></dt><dd>search radius for object identification in degrees
                               (default 5*FWHM) </dd>
</dl>

<h3>Calibration specific:</h3>
<dl>
<dt><samp>--photsys-ref</samp></dt><dd>reference (standard) photometric system
          (catalogue)</dd>
<dt><samp>--photsys-instr</samp></dt><dd>instrumental photometric system (frames)</dd>
<dt><samp>-q, --quantity</samp></dt><dd>
     calibrated quantities by default: PHRATE, FLUX, FNU, FLAM, MAG, ABMAG, STMAG
                 (<a href="dataform_photometry.html#phquantities">see description</a>),
            multiple quantities can be used, separated by colon</dd>
</dl>

<h3>Photometric system:</h3>
<dl>
<dt><samp>--tratab</samp></dt><dd>Table describing conversion from instrumental
  to reference photo-system. Usually product of <a href="man_phfotran.html">
phfotran</a>.</dd>
<dt><samp>--phsystab</samp></dt><dd>A table with photometric system definitions
(<a href="dataform_photosys.html">specification</a>)</dd>
<dt><samp>--list</samp></dt><dd>Lists available photometric systems. Their identifiers
                                are names of extensions in
(<a href="dataform_photosys.html">photometric system definitions</a>) file.</dd>
</dl>

<h3>Common:</h3>

<dl>
  <dt><samp>-th, --threshold</samp></dt><dd>Select stars on both reference
    and calibrated frames (not applied on catalogues) with its stellar
    flux to a sky noise (signal to noise) ratio greater then
    the threshold value. Both the values are determined in the same aperture.
    The proper
    choice is crucial for photometry precision because it helps to select
    only bright stars with minimal pollution by the sky noise. The default
    value 5 is very conservative setup. It is suitable for bad conditions
    (like urban or a full moon light observations). Standard and good
    conditions will allow lower ratios. In an ideal case, it can be
    under one for best results.
     </dd>
  <dt><samp>-e, --maxerr</samp></dt><dd>Select stars on both reference
    and calibrated frame (not applied on catalogues) with its relative
    flux error smaller than the error limit. The value does not limits
    the final precision, but limits fluency of noisy data.
    The default value 0.1 (ten percents, about tenth of magnitude)
    will also include relative imprecise stars into both calibration and
    calibrated set. The values under 0.01 and lower will select
    only precise and suitable calibration stars.
     </dd>
<dt><samp>--area</samp></dt><dd>Area of telescope aperture in square meters [m2].</dd>
<dt><samp>--saper</samp></dt><dd>selects appropriate aperture from PHOTOMETRY
    extension. By default, flux in infinite aperture is used.</dd>
  <dt><samp>--apcorr</samp></dt><dd>sets the aperture correction.
    This correction converts fluxes in an aperture to the total flux
    (infinite aperture). The value of correction should be obtained
  by <a href="man_gphot.html">gphot</a>.</dd>
<dt><samp>--advanced</samp></dt><dd>Advanced format. Additional extensions
                    (results of star find, photometry and residuals) are included.
                    This format is not used by default because result FITS
                    is twice or more bigger.
                  </dd>
</dl>


<p>See <a href="man_com.html">Common options</a> for input/output filenames.</p>

  <p>
    When options for the area and the reference and instrumental systems are used,
    FITS header is updated according to provided values.
  </p>

<p>
Default values for coordinates will be usually unsatisfactory.
</p>

Add -E,--extin option description.

<h2>Caveats</h2>

<p>
Just equal number of instrumental and standard filters is implemented.
</p>



<h2>Examples</h2>

<p>
Calibrate against to UCAC5 catalogue:
</p>
<pre>
$ munipack cone -c UCAC5 -o 0716cat.fits  -r 0.1 110.47 71.34
$ munipack phfotran --area 1.86 --photsys-instr DK154 -c T_Phe.fits --col-ra RA --col-dec DEC --col-mag B,V,R,I T_Phe_000001.fits T_Phe_000003.fits T_Phe_000005.fits T_Phe_000007.fits
</pre>


<h2>See Also</h2>
<p>
<a href="man_com.html">Common options</a>,
<a href="man_phcal.html">Photometry Calibration</a>.
</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>