This file is indexed.

/usr/share/doc/cpl-plugin-xsh-doc/html/_sources/xsh_lingain.txt is in cpl-plugin-xsh-doc 2.3.0+dfsg-3.

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
The xsh_lingain recipe
===============================================================

.. data:: xsh_lingain

Synopsis
--------

Computes detector's gain/linearity-map

Description
-----------

This recipe computes detector linearity coefficients and gain
Input Frames : 
  arm = UVB-VIS: 
  - A set of n RAW linearity frames (Format=RAW, n >=8, Tag = LINEARITY_arm_ON)
  - A set of n RAW bias frames (Format=RAW, n >=1, Tag = LINEARITY_arm_OFF)
  arm = NIR:
  - A set of n RAW linearity on frames (Format=RAW, n >=8, Tag = LINEARITY_arm_ON)
  - A set of n RAW linearity off frames (Format=RAW, n >=8, Tag = LINEARITY_arm_OFF)
  - [OPTIONAL] a static bad pixel map (PRO.CATG=BP_MAP_RP_arm) 
  Note: on and off frames are taken in pairs sequence: OFF-ON-ON-OFF, 
  at least 16 frames.

Products : 
  - A linearity map table, PRO.CATG = BP_MAP_LIN_NIR
  - A gain table, PRO.CATG = GAIN_INFO
  - A cube cointaining the linearity coefficients, PRO.CATG = COEFFS_CUBE_arm
  - A linearity map image (RAW format), PRO.CATG = RAW_BP_MAP_NL_arm
  - A linearity map image (PRE format), PRO.CATG = BP_MAP_NL_arm

Constructor
-----------

.. method:: cpl.Recipe("xsh_lingain")
   :noindex:

   Create an object for the recipe xsh_lingain.

::

   import cpl
   xsh_lingain = cpl.Recipe("xsh_lingain")

Parameters
----------

.. py:attribute:: xsh_lingain.param.keep_temp

    If 'no', temporary files are deleted. (str; default: 'no') [default="no"].
.. py:attribute:: xsh_lingain.param.debug_level

    Additional xshooter debug level. One of 'none', 'low', 'medium',  'high' (str; default: 'none') [default="none"].
.. py:attribute:: xsh_lingain.param.time_stamp

    Add timestamp to product file name. (bool; default: False) [default=False].
.. py:attribute:: xsh_lingain.param.decode_bp

    Integer representation of the bits to be considered bad when decoding  the bad pixel mask pixel values. (long; default: 2144337919) [default=2144337919].
.. py:attribute:: xsh_lingain.param.method

    Method to be used when computing GAIN. Methods appliable: <PTC | MED>.  By default PTC method will be applied. (str; default: 'PTC') [default="PTC"].
.. py:attribute:: xsh_lingain.param.order

    Polynomial order for the fit (Linearity) (long; default: 3) [default=3].
.. py:attribute:: xsh_lingain.param.kappa

    Kappa value for the kappa-sigma clipping (Gain) (float; default: 3.0) [default=3.0].
.. py:attribute:: xsh_lingain.param.niter

    Number of iterations to compute rms (Gain) (long; default: 5) [default=5].
.. py:attribute:: xsh_lingain.param.llx

    x coordinate of the lower-left point of the region of interest. If not  modified, default value will be 1. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.lly

    y coordinate of the lower-left point of the region of interest. If not  modified, default value will be 1. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.urx

    x coordinate of the upper-right point of the region of interest. If  not modified, default value will be X dimension of the input image.  (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.ury

    y coordinate of the upper-right point of the region of interest. If  not modified, default value will be Y dimension of the input image.  (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.ref_level

    User reference level (long; default: 10000) [default=10000].
.. py:attribute:: xsh_lingain.param.intermediate

    De-/Activate intermediate products (bool; default: False) [default=False].
.. py:attribute:: xsh_lingain.param.autocorr

    De-/Activate the autocorr option (bool; default: False) [default=False].
.. py:attribute:: xsh_lingain.param.collapse

    De-/Activate the collapse option (bool; default: True) [default=True].
.. py:attribute:: xsh_lingain.param.rescale

    De-/Activate the image rescale option (bool; default: True) [default=True].
.. py:attribute:: xsh_lingain.param.pix2pix

    De-/Activate the computation with pixel to pixel accuracy (bool;  default: True) [default=True].
.. py:attribute:: xsh_lingain.param.bpmbin

    De-/Activate the binary bpm option (bool; default: False) [default=False].
.. py:attribute:: xsh_lingain.param.m

    Maximum x-shift for the autocorr (long; default: 26) [default=26].
.. py:attribute:: xsh_lingain.param.filter

    Upper limit of Median flux to be filtered (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.n

    Maximum y-shift for the autocorr (long; default: 26) [default=26].
.. py:attribute:: xsh_lingain.param.tolerance

    Tolerance for pair discrimination (float; default: 0.1) [default=0.1].
.. py:attribute:: xsh_lingain.param.pafgen

    Generate PAF file (bool; default: False) [default=False].
.. py:attribute:: xsh_lingain.param.pafname

    Specific name for PAF file (str; default: 'xsh_lingain') [default="xsh_lingain"].
.. py:attribute:: xsh_lingain.param.exts

    Activate the multi-exts option. Choose -1 to process all extensions.  Choose an extension number to process the appropriate extension.  (long; default: 0) [default=0].
.. py:attribute:: xsh_lingain.param.fpn_method

    Method for computing Fixed Pattern Noise (SMOOTH or HISTOGRAM) (str;  default: 'HISTOGRAM') [default="HISTOGRAM"].
.. py:attribute:: xsh_lingain.param.fpn_smooth

    template size in pixels for smoothing during FPN computation (only for  SMOOTH method) (long; default: 13) [default=13].
.. py:attribute:: xsh_lingain.param.saturation_limit

    all frames with mean saturation above the limit would not be used in  calculation (float; default: 65535.0) [default=65535.0].
.. py:attribute:: xsh_lingain.param.coeffs_cube_split

    if TRUE, the recipe writes as many COEFFS_CUBE_Pi (i=0..order) as the  value of the order parameter in a separate file (bool; default: False) [default=False].
.. py:attribute:: xsh_lingain.param.llx1

    x coord of the lower-left point of the first field used for  contamination measurement. If not modified, default value will be 1.  (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.lly1

    y coord of the lower-left point of the first field used for  contamination measurement. If not modified, default value will be 1.  (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.urx1

    x coord of the upper-right point of the first field used for  contamination measurement. If not modified, default value will be X  dimension of the input image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.ury1

    y coord of the upper-right point of the first field used for  contamination measurement. If not modified, default value will be Y  dimension of the input image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.llx2

    x coord of the lower-left point of the second field used for  contamination measurement. If not modified, default value will be 1.  (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.lly2

    y coord of the lower-left point of the second field used for  contamination measurement. If not modified, default value will be 1.  (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.urx2

    x coord of the upper-right point of the second field used for  contamination measurement. If not modified, default value will be half  of the X dimension of the input image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.ury2

    y coord of the upper-right point of the second field used for  contamination measurement. If not modified, default value will be half  of the Y dimension of the input image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.llx3

    x coord of the lower-left point of the third field used for  contamination measurement. If not modified, default value will be 1.  (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.lly3

    y coord of the lower-left point of the third field used for  contamination measurement. If not modified, default value will be half  of the Y dimension of the input image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.urx3

    x coord of the upper-right point of the third field used for  contamination measurement. If not modified, default value will be half  of X dimension of the image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.ury3

    y coord of the upper-right point of the third field used for  contamination measurement. If not modified, default value will be Y  dimension of the image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.llx4

    x coord of the lower-left point of the fourth field used for  contamination measurement. If not modified, default value will be half  of X dimension of the image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.lly4

    y coord of the lower-left point of the fourth field used for  contamination measurement. If not modified, default value will be half  of the Y dimension of the input image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.urx4

    x coord of the upper-right point of the fourth field used for  contamination measurement. If not modified, default value will be X  dimension of the image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.ury4

    y coord of the upper-right point of the fourth field used for  contamination measurement. If not modified, default value will be Y  dimension of the input image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.llx5

    x coord of the lower-left point of the fifth field used for  contamination measurement. If not modified, default value will be half  of the X dimension of the input image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.lly5

    y coord of the lower-left point of the fifth field used for  contamination measurement. If not modified, default value will be 1.  (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.urx5

    x coord of the upper-right point of the fifth field used for  contamination measurement. If not modified, default value will be X  dimension of the image. (long; default: -1) [default=-1].
.. py:attribute:: xsh_lingain.param.ury5

    y coord of the upper-right point of the fifth field used for  contamination measurement. If not modified, default value will be half  of Y dimension of the input image. (long; default: -1) [default=-1].


The following code snippet shows the default settings for the available 
parameters.

::

   import cpl
   xsh_lingain = cpl.Recipe("xsh_lingain")

   xsh_lingain.param.keep_temp = "no"
   xsh_lingain.param.debug_level = "none"
   xsh_lingain.param.time_stamp = False
   xsh_lingain.param.decode_bp = 2144337919
   xsh_lingain.param.method = "PTC"
   xsh_lingain.param.order = 3
   xsh_lingain.param.kappa = 3.0
   xsh_lingain.param.niter = 5
   xsh_lingain.param.llx = -1
   xsh_lingain.param.lly = -1
   xsh_lingain.param.urx = -1
   xsh_lingain.param.ury = -1
   xsh_lingain.param.ref_level = 10000
   xsh_lingain.param.intermediate = False
   xsh_lingain.param.autocorr = False
   xsh_lingain.param.collapse = True
   xsh_lingain.param.rescale = True
   xsh_lingain.param.pix2pix = True
   xsh_lingain.param.bpmbin = False
   xsh_lingain.param.m = 26
   xsh_lingain.param.filter = -1
   xsh_lingain.param.n = 26
   xsh_lingain.param.tolerance = 0.1
   xsh_lingain.param.pafgen = False
   xsh_lingain.param.pafname = "xsh_lingain"
   xsh_lingain.param.exts = 0
   xsh_lingain.param.fpn_method = "HISTOGRAM"
   xsh_lingain.param.fpn_smooth = 13
   xsh_lingain.param.saturation_limit = 65535.0
   xsh_lingain.param.coeffs_cube_split = False
   xsh_lingain.param.llx1 = -1
   xsh_lingain.param.lly1 = -1
   xsh_lingain.param.urx1 = -1
   xsh_lingain.param.ury1 = -1
   xsh_lingain.param.llx2 = -1
   xsh_lingain.param.lly2 = -1
   xsh_lingain.param.urx2 = -1
   xsh_lingain.param.ury2 = -1
   xsh_lingain.param.llx3 = -1
   xsh_lingain.param.lly3 = -1
   xsh_lingain.param.urx3 = -1
   xsh_lingain.param.ury3 = -1
   xsh_lingain.param.llx4 = -1
   xsh_lingain.param.lly4 = -1
   xsh_lingain.param.urx4 = -1
   xsh_lingain.param.ury4 = -1
   xsh_lingain.param.llx5 = -1
   xsh_lingain.param.lly5 = -1
   xsh_lingain.param.urx5 = -1
   xsh_lingain.param.ury5 = -1


You may also set or overwrite some or all parameters by the recipe 
parameter `param`, as shown in the following example:

::

   import cpl
   xsh_lingain = cpl.Recipe("xsh_lingain")
   [...]
   res = xsh_lingain( ..., param = {"keep_temp":"no", "debug_level":"none"})


.. seealso:: `cpl.Recipe <http://packages.python.org/python-cpl/recipe.html>`_
   for more information about the recipe object.

Bug reports
-----------

Please report any problems to `Lander de Bilbao,A.Modigliani <amodigli@eso.org>`_. Alternatively, you may 
send a report to the `ESO User Support Department <usd-help@eso.org>`_.

Copyright
---------

This file is part of the X-shooter Instrument Pipeline
Copyright (C) 2006 European Southern Observatory

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
MA  02111-1307  USA

.. codeauthor:: Lander de Bilbao,A.Modigliani <amodigli@eso.org>