File: structlinprm.html

package info (click to toggle)
python-pywcs 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 11,888 kB
  • sloc: ansic: 31,441; lex: 6,170; fortran: 6,080; sh: 3,478; python: 3,122; sed: 408; makefile: 76
file content (373 lines) | stat: -rw-r--r-- 18,170 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>WCSLIB 4.8.2: linprm Struct Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>linprm Struct Reference</h1><!-- doxytag: class="linprm" -->Linear transformation parameters.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="lin_8h-source.html">lin.h</a>&gt;</code>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#5bb0b2b2ce1f160a8a70f6437a893eea">flag</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#e281f0f7ebeaf5038cc13c13946641b1">naxis</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">double *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#3691ff3f40a0ba087637d30ffc87e6d0">crpix</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">double *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#4c40bec32ec40035b8c1ef13db652270">pc</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">double *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#162762d02eaade6a53d63d70b8827caa">cdelt</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">double *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#eaaf26fd243da58fee173b075bed1de7">piximg</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">double *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#28a705f744a32cd05dd3aa86ca58998b">imgpix</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#f0a5cac7b1d2d3a0feb6905c05b122c2">unity</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#7f40c88135117b07a7767082ef24aba9">padding</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">struct <a class="el" href="structwcserr.html">wcserr</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#2975830d4214bb6b35cb1ca922875057">err</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#596f68ff17fce142f36530d72dd838c4">i_naxis</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#5ef7cce6307f640aca1080d0d5ad9ba1">m_flag</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#eefcacedf2989970f0df2c246d84bfb7">m_naxis</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#b73e780d0792b3570fcf2cf55651f22c">m_padding</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">double *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#091103ceb860eeed1a280effa0df28df">m_crpix</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">double *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#7036b8527bc8b220ad8a863442631f48">m_pc</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">double *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#5ac85757a7a46247e353a089374eb128">m_cdelt</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlinprm.html#b7a8cacb1454446f9b5a521703fcca75">padding2</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The <b>linprm</b> struct contains all of the information required to perform a linear transformation. It consists of certain members that must be set by the user (<em>given</em>) and others that are set by the WCSLIB routines (<em>returned</em>). <hr><h2>Field Documentation</h2>
<a class="anchor" name="5bb0b2b2ce1f160a8a70f6437a893eea"></a><!-- doxytag: member="linprm::flag" ref="5bb0b2b2ce1f160a8a70f6437a893eea" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structlinprm.html#5bb0b2b2ce1f160a8a70f6437a893eea">linprm::flag</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(Given and returned) This flag must be set to zero whenever any of the following members of the <b>linprm</b> struct are set or modified:<p>
<ul>
<li>
<a class="el" href="structlinprm.html#e281f0f7ebeaf5038cc13c13946641b1">linprm::naxis</a> (q.v., not normally set by the user), </li>
<li>
<a class="el" href="structlinprm.html#4c40bec32ec40035b8c1ef13db652270">linprm::pc</a>, </li>
<li>
<a class="el" href="structlinprm.html#162762d02eaade6a53d63d70b8827caa">linprm::cdelt</a>. </li>
</ul>
<p>
This signals the initialization routine, <a class="el" href="lin_8h.html#5c01c0991c8d0c4437581a7c1453b09a" title="Setup routine for the linprm struct.">linset()</a>, to recompute the returned members of the <b>linprm</b> struct. <a class="el" href="lin_8h.html#5c01c0991c8d0c4437581a7c1453b09a" title="Setup routine for the linprm struct.">linset()</a> will reset flag to indicate that this has been done.<p>
<b>PLEASE NOTE:</b> flag should be set to -1 when <a class="el" href="lin_8h.html#7ddea28768d99f01c6be1c71a4d8fe58" title="Default constructor for the linprm struct.">linini()</a> is called for the first time for a particular <b>linprm</b> struct in order to initialize memory management. It must ONLY be used on the first initialization otherwise memory leaks may result. 
</div>
</div><p>
<a class="anchor" name="e281f0f7ebeaf5038cc13c13946641b1"></a><!-- doxytag: member="linprm::naxis" ref="e281f0f7ebeaf5038cc13c13946641b1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structlinprm.html#e281f0f7ebeaf5038cc13c13946641b1">linprm::naxis</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(Given or returned) Number of pixel and world coordinate elements.<p>
If <a class="el" href="lin_8h.html#7ddea28768d99f01c6be1c71a4d8fe58" title="Default constructor for the linprm struct.">linini()</a> is used to initialize the <b>linprm</b> struct (as would normally be the case) then it will set naxis from the value passed to it as a function argument. The user should not subsequently modify it. 
</div>
</div><p>
<a class="anchor" name="3691ff3f40a0ba087637d30ffc87e6d0"></a><!-- doxytag: member="linprm::crpix" ref="3691ff3f40a0ba087637d30ffc87e6d0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double * <a class="el" href="structlinprm.html#3691ff3f40a0ba087637d30ffc87e6d0">linprm::crpix</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(<em>Given</em>) Pointer to the first element of an array of double containing the coordinate reference pixel, <code><b>CRPIX</b>ja</code>. 
</div>
</div><p>
<a class="anchor" name="4c40bec32ec40035b8c1ef13db652270"></a><!-- doxytag: member="linprm::pc" ref="4c40bec32ec40035b8c1ef13db652270" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double * <a class="el" href="structlinprm.html#4c40bec32ec40035b8c1ef13db652270">linprm::pc</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(<em>Given</em>) Pointer to the first element of the <code><b>PC</b>i<b>_</b>ja</code> (pixel coordinate) transformation matrix. The expected order is <div class="fragment"><pre class="fragment">        <span class="keyword">struct </span><a class="code" href="structlinprm.html" title="Linear transformation parameters.">linprm</a> lin;
        lin.pc = {PC1_1, PC1_2, PC2_1, PC2_2};
</pre></div><p>
This may be constructed conveniently from a 2-D array via <div class="fragment"><pre class="fragment">        <span class="keywordtype">double</span> m[2][2] = {{PC1_1, PC1_2},
                          {PC2_1, PC2_2}};
</pre></div><p>
which is equivalent to <div class="fragment"><pre class="fragment">        <span class="keywordtype">double</span> m[2][2];
        m[0][0] = PC1_1;
        m[0][1] = PC1_2;
        m[1][0] = PC2_1;
        m[1][1] = PC2_2;
</pre></div><p>
The storage order for this 2-D array is the same as for the 1-D array, whence <div class="fragment"><pre class="fragment">        lin.pc = *m;
</pre></div><p>
would be legitimate. 
</div>
</div><p>
<a class="anchor" name="162762d02eaade6a53d63d70b8827caa"></a><!-- doxytag: member="linprm::cdelt" ref="162762d02eaade6a53d63d70b8827caa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double * <a class="el" href="structlinprm.html#162762d02eaade6a53d63d70b8827caa">linprm::cdelt</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(<em>Given</em>) Pointer to the first element of an array of double containing the coordinate increments, <code><b>CDELT</b>ia</code>. 
</div>
</div><p>
<a class="anchor" name="eaaf26fd243da58fee173b075bed1de7"></a><!-- doxytag: member="linprm::piximg" ref="eaaf26fd243da58fee173b075bed1de7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double * <a class="el" href="structlinprm.html#eaaf26fd243da58fee173b075bed1de7">linprm::piximg</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(<em>Returned</em>) Pointer to the first element of the matrix containing the product of the <code><b>CDELT</b>ia</code> diagonal matrix and the <code><b>PC</b>i<b>_</b>ja</code> matrix. 
</div>
</div><p>
<a class="anchor" name="28a705f744a32cd05dd3aa86ca58998b"></a><!-- doxytag: member="linprm::imgpix" ref="28a705f744a32cd05dd3aa86ca58998b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double * <a class="el" href="structlinprm.html#28a705f744a32cd05dd3aa86ca58998b">linprm::imgpix</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(<em>Returned</em>) Pointer to the first element of the inverse of the <a class="el" href="structlinprm.html#eaaf26fd243da58fee173b075bed1de7">linprm::piximg</a> matrix. 
</div>
</div><p>
<a class="anchor" name="f0a5cac7b1d2d3a0feb6905c05b122c2"></a><!-- doxytag: member="linprm::unity" ref="f0a5cac7b1d2d3a0feb6905c05b122c2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structlinprm.html#f0a5cac7b1d2d3a0feb6905c05b122c2">linprm::unity</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(<em>Returned</em>) True if the linear transformation matrix is unity. 
</div>
</div><p>
<a class="anchor" name="7f40c88135117b07a7767082ef24aba9"></a><!-- doxytag: member="linprm::padding" ref="7f40c88135117b07a7767082ef24aba9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structlinprm.html#7f40c88135117b07a7767082ef24aba9">linprm::padding</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(An unused variable inserted for alignment purposes only.) 
</div>
</div><p>
<a class="anchor" name="2975830d4214bb6b35cb1ca922875057"></a><!-- doxytag: member="linprm::err" ref="2975830d4214bb6b35cb1ca922875057" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structwcserr.html">wcserr</a> * <a class="el" href="structlinprm.html#2975830d4214bb6b35cb1ca922875057">linprm::err</a><code> [read]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(<em>Returned</em>) If enabled, when an error status is returned this struct contains detailed information about the error, see <a class="el" href="wcserr_8h.html#1691b8bd184d40ca6fda255be078fa53" title="Enable/disable error messaging.">wcserr_enable()</a>. 
</div>
</div><p>
<a class="anchor" name="596f68ff17fce142f36530d72dd838c4"></a><!-- doxytag: member="linprm::i_naxis" ref="596f68ff17fce142f36530d72dd838c4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structlinprm.html#596f68ff17fce142f36530d72dd838c4">linprm::i_naxis</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(For internal use only.) 
</div>
</div><p>
<a class="anchor" name="5ef7cce6307f640aca1080d0d5ad9ba1"></a><!-- doxytag: member="linprm::m_flag" ref="5ef7cce6307f640aca1080d0d5ad9ba1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structlinprm.html#5ef7cce6307f640aca1080d0d5ad9ba1">linprm::m_flag</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(For internal use only.) 
</div>
</div><p>
<a class="anchor" name="eefcacedf2989970f0df2c246d84bfb7"></a><!-- doxytag: member="linprm::m_naxis" ref="eefcacedf2989970f0df2c246d84bfb7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structlinprm.html#eefcacedf2989970f0df2c246d84bfb7">linprm::m_naxis</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(For internal use only.) 
</div>
</div><p>
<a class="anchor" name="b73e780d0792b3570fcf2cf55651f22c"></a><!-- doxytag: member="linprm::m_padding" ref="b73e780d0792b3570fcf2cf55651f22c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structlinprm.html#b73e780d0792b3570fcf2cf55651f22c">linprm::m_padding</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(For internal use only.) 
</div>
</div><p>
<a class="anchor" name="091103ceb860eeed1a280effa0df28df"></a><!-- doxytag: member="linprm::m_crpix" ref="091103ceb860eeed1a280effa0df28df" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double * <a class="el" href="structlinprm.html#091103ceb860eeed1a280effa0df28df">linprm::m_crpix</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(For internal use only.) 
</div>
</div><p>
<a class="anchor" name="7036b8527bc8b220ad8a863442631f48"></a><!-- doxytag: member="linprm::m_pc" ref="7036b8527bc8b220ad8a863442631f48" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double * <a class="el" href="structlinprm.html#7036b8527bc8b220ad8a863442631f48">linprm::m_pc</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(For internal use only.) 
</div>
</div><p>
<a class="anchor" name="5ac85757a7a46247e353a089374eb128"></a><!-- doxytag: member="linprm::m_cdelt" ref="5ac85757a7a46247e353a089374eb128" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double * <a class="el" href="structlinprm.html#5ac85757a7a46247e353a089374eb128">linprm::m_cdelt</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(For internal use only.) void *padding2 (For internal use only.) 
</div>
</div><p>
<a class="anchor" name="b7a8cacb1454446f9b5a521703fcca75"></a><!-- doxytag: member="linprm::padding2" ref="b7a8cacb1454446f9b5a521703fcca75" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* <a class="el" href="structlinprm.html#b7a8cacb1454446f9b5a521703fcca75">linprm::padding2</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Oct 4 19:02:31 2011 for WCSLIB 4.8.2 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>