forked from dials/cbflib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpycbf.html
3036 lines (2849 loc) · 223 KB
/
pycbf.html
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
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module pycbf</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>pycbf</strong></big></big> (version still_being_written, 14 Dec 2005)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///D|/wright/cbflib/cbflib_0.7.7/pycbf/pycbf.py">d:\wright\cbflib\cbflib_0.7.7\pycbf\pycbf.py</a></font></td></tr></table>
<p><tt>pycbf - python bindings to the CBFlib library<br>
<br>
A library for reading and writing ImageCIF and CBF files <br>
which store area detector images for crystallography.<br>
<br>
This work is a derivative of the CBFlib version 0.7.7 library<br>
by Paul J. Ellis of Stanford Synchrotron Radiation Laboratory<br>
and Herbert J. Bernstein of Bernstein + Sons<br>
See:<br>
<a href="http://www.bernstein-plus-sons.com/software/CBF/">http://www.bernstein-plus-sons.com/software/CBF/</a><br>
<br>
Licensing is GPL based, see:<br>
<a href="http://www.bernstein-plus-sons.com/software/CBF/doc/CBFlib_NOTICES.html">http://www.bernstein-plus-sons.com/software/CBF/doc/CBFlib_NOTICES.html</a><br>
<br>
These bindings were automatically generated by SWIG, and the<br>
input to SWIG was automatically generated by a python script.<br>
We very strongly recommend you do not attempt to edit them <br>
by hand!<br>
<br>
<br>
<br>
Copyright (C) 2007 Jonathan Wright<br>
ESRF, Grenoble, France<br>
email: wright@esrf.fr</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="_pycbf.html">_pycbf</a><br>
</td><td width="25%" valign=top><a href="new.html">new</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="pycbf.html#cbf_detector_struct">cbf_detector_struct</a>
</font></dt><dt><font face="helvetica, arial"><a href="pycbf.html#cbf_handle_struct">cbf_handle_struct</a>
</font></dt><dt><font face="helvetica, arial"><a href="pycbf.html#cbf_positioner_struct">cbf_positioner_struct</a>
</font></dt></dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="cbf_detector_struct">class <strong>cbf_detector_struct</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Proxy of C <a href="#cbf_detector_struct">cbf_detector_struct</a> struct<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><strong>__del__</strong> <em>lambda</em> self</dt></dl>
<dl><dt><strong>__getattr__</strong> <em>lambda</em> self, name</dt></dl>
<dl><dt><a name="cbf_detector_struct-__init__"><strong>__init__</strong></a>(self, *args)</dt><dd><tt><a href="#cbf_detector_struct-__init__">__init__</a>(self) -> <a href="#cbf_detector_struct">cbf_detector_struct</a></tt></dd></dl>
<dl><dt><a name="cbf_detector_struct-__repr__"><strong>__repr__</strong></a> = _swig_repr(self)</dt></dl>
<dl><dt><strong>__setattr__</strong> <em>lambda</em> self, name, value</dt></dl>
<dl><dt><a name="cbf_detector_struct-get_beam_center"><strong>get_beam_center</strong></a>(*args)</dt><dd><tt>Returns : double index1,double index2,double center1,double center2<br>
*args : <br>
<br>
C prototype: int cbf_get_beam_center (cbf_detector detector, double *index1,<br>
double *index2, double *center1, double *center2);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_beam_center sets *center1 and *center2 to the displacements <br>
in mm along the detector axes from pixel (0, 0) to the point at which <br>
the beam intersects the detector and *index1 and *index2 to the <br>
corresponding indices. cbf_set_beam_center sets the offsets in the <br>
axis category for the detector element axis with precedence 1 to <br>
place the beam center at the position given in mm by *center1 and <br>
*center2 as the displacements in mm along the detector axes from <br>
pixel (0, 0) to the point at which the beam intersects the detector <br>
at the indices given *index1 and *index2.<br>
Any of the destination pointers may be NULL for getting the beam <br>
center. For setting the beam axis, either the indices of the center <br>
must not be NULL.<br>
The indices are non-negative for beam centers within the detector <br>
surface, but the center for an axis with a negative increment will be <br>
negative for a beam center within the detector surface.<br>
ARGUMENTS<br>
detector Detector handle. index1 Pointer to the destination slow <br>
index. index2 Pointer to the destination fast index. center1 <br>
Pointer to the destination displacement along the slow axis. center2 <br>
Pointer to the destination displacement along the fast axis.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_detector_struct-get_detector_distance"><strong>get_detector_distance</strong></a>(*args)</dt><dd><tt>Returns : double distance<br>
*args : <br>
<br>
C prototype: int cbf_get_detector_distance (cbf_detector detector,<br>
double *distance);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_detector_distance sets *distance to the nearest distance from <br>
the sample position to the detector plane.<br>
ARGUMENTS<br>
detector Detector handle. distance Pointer to the destination <br>
distance.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_detector_struct-get_detector_normal"><strong>get_detector_normal</strong></a>(*args)</dt><dd><tt>Returns : double normal1,double normal2,double normal3<br>
*args : <br>
<br>
C prototype: int cbf_get_detector_normal (cbf_detector detector,<br>
double *normal1, double *normal2, double *normal3);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_detector_normal sets *normal1, *normal2, and *normal3 to the <br>
3 components of the of the normal vector to the detector plane. The <br>
vector is normalized.<br>
Any of the destination pointers may be NULL.<br>
ARGUMENTS<br>
detector Detector handle. normal1 Pointer to the destination x <br>
component of the normal vector. normal2 Pointer to the destination <br>
y component of the normal vector. normal3 Pointer to the <br>
destination z component of the normal vector.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_detector_struct-get_inferred_pixel_size"><strong>get_inferred_pixel_size</strong></a>(*args)</dt><dd><tt>Returns : Float pixel size<br>
*args : Int axis_number<br>
<br>
C prototype: int cbf_get_inferred_pixel_size (cbf_detector detector,<br>
unsigned int axis_number, double *psize);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_inferred_pixel_size sets *psize to point to the double value <br>
in millimeters of the pixel size for the axis axis_number value for <br>
pixel at (index1, index2) on the detector surface. The slow index is <br>
treated as axis 1 and the fast index is treated as axis 2.<br>
ARGUMENTS<br>
detector Detector handle. axis_number The number of the axis. <br>
area Pointer to the destination pizel size in mm.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_detector_struct-get_pixel_area"><strong>get_pixel_area</strong></a>(*args)</dt><dd><tt>Returns : double area,double projected_area<br>
*args : double index1,double index2<br>
<br>
C prototype: int cbf_get_pixel_area (cbf_detector detector, double index1,<br>
double index2, double *area, double *projected_area);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_pixel_area sets *area to the area of the pixel at (index1, <br>
index2) on the detector surface and *projected_area to the apparent <br>
area of the pixel as viewed from the sample position.<br>
Either of the destination pointers may be NULL.<br>
ARGUMENTS<br>
detector Detector handle. index1 Slow index. index2 <br>
Fast index. area Pointer to the destination <br>
area in mm2. projected_area Pointer to the destination apparent <br>
area in mm2.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_detector_struct-get_pixel_coordinates"><strong>get_pixel_coordinates</strong></a>(*args)</dt><dd><tt>Returns : double coordinate1,double coordinate2,double coordinate3<br>
*args : double index1,double index2<br>
<br>
C prototype: int cbf_get_pixel_coordinates (cbf_detector detector,<br>
double index1, double index2, double *coordinate1,<br>
double *coordinate2, double *coordinate3);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_pixel_coordinates sets *coordinate1, *coordinate2, and <br>
*coordinate3 to the vector position of pixel (index1, index2) on the <br>
detector surface. If index1 and index2 are integers then the <br>
coordinates correspond to the center of a pixel.<br>
Any of the destination pointers may be NULL.<br>
ARGUMENTS<br>
detector Detector handle. index1 Slow index. index2 <br>
Fast index. coordinate1 Pointer to the destination x component. <br>
coordinate2 Pointer to the destination y component. coordinate3 <br>
Pointer to the destination z component.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_detector_struct-get_pixel_normal"><strong>get_pixel_normal</strong></a>(*args)</dt><dd><tt>Returns : double normal1,double normal2,double normal3<br>
*args : double index1,double index2<br>
<br>
C prototype: int cbf_get_pixel_normal (cbf_detector detector, double index1,<br>
double index2, double *normal1, double *normal2,<br>
double *normal3);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_detector_normal sets *normal1, *normal2, and *normal3 to the <br>
3 components of the of the normal vector to the pixel at (index1, <br>
index2). The vector is normalized.<br>
Any of the destination pointers may be NULL.<br>
ARGUMENTS<br>
detector Detector handle. index1 Slow index. index2 Fast index. <br>
normal1 Pointer to the destination x component of the normal <br>
vector. normal2 Pointer to the destination y component of the <br>
normal vector. normal3 Pointer to the destination z component of <br>
the normal vector.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<hr>
Properties defined here:<br>
<dl><dt><strong>axes</strong></dt>
<dd><dl><dt><a name="-<em>get</em>"><strong><em>get</em></strong></a> = cbf_detector_struct_axes_get(...)</dt></dl>
</dd>
<dd><dl><dt><a name="-<em>set</em>"><strong><em>set</em></strong></a> = cbf_detector_struct_axes_set(...)</dt></dl>
</dd>
</dl>
<dl><dt><strong>displacement</strong></dt>
<dd><dl><dt><a name="-<em>get</em>"><strong><em>get</em></strong></a> = cbf_detector_struct_displacement_get(...)</dt></dl>
</dd>
<dd><dl><dt><a name="-<em>set</em>"><strong><em>set</em></strong></a> = cbf_detector_struct_displacement_set(...)</dt></dl>
</dd>
</dl>
<dl><dt><strong>increment</strong></dt>
<dd><dl><dt><a name="-<em>get</em>"><strong><em>get</em></strong></a> = cbf_detector_struct_increment_get(...)</dt></dl>
</dd>
<dd><dl><dt><a name="-<em>set</em>"><strong><em>set</em></strong></a> = cbf_detector_struct_increment_set(...)</dt></dl>
</dd>
</dl>
<dl><dt><strong>index</strong></dt>
<dd><dl><dt><a name="-<em>get</em>"><strong><em>get</em></strong></a> = cbf_detector_struct_index_get(...)</dt></dl>
</dd>
<dd><dl><dt><a name="-<em>set</em>"><strong><em>set</em></strong></a> = cbf_detector_struct_index_set(...)</dt></dl>
</dd>
</dl>
<dl><dt><strong>positioner</strong></dt>
<dd><dl><dt><a name="-<em>get</em>"><strong><em>get</em></strong></a> = cbf_detector_struct_positioner_get(...)</dt></dl>
</dd>
<dd><dl><dt><a name="-<em>set</em>"><strong><em>set</em></strong></a> = cbf_detector_struct_positioner_set(...)</dt></dl>
</dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__dict__</strong> = <dictproxy object><dd><tt>dictionary for instance variables (if defined)</tt></dl>
<dl><dt><strong>__swig_destroy__</strong> = <built-in function delete_cbf_detector_struct></dl>
<dl><dt><strong>__swig_getmethods__</strong> = {'axes': <built-in function cbf_detector_struct_axes_get>, 'displacement': <built-in function cbf_detector_struct_displacement_get>, 'increment': <built-in function cbf_detector_struct_increment_get>, 'index': <built-in function cbf_detector_struct_index_get>, 'positioner': <built-in function cbf_detector_struct_positioner_get>}</dl>
<dl><dt><strong>__swig_setmethods__</strong> = {'axes': <built-in function cbf_detector_struct_axes_set>, 'displacement': <built-in function cbf_detector_struct_displacement_set>, 'increment': <built-in function cbf_detector_struct_increment_set>, 'index': <built-in function cbf_detector_struct_index_set>, 'positioner': <built-in function cbf_detector_struct_positioner_set>}</dl>
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'cbf_detector_struct' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="cbf_handle_struct">class <strong>cbf_handle_struct</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Proxy of C <a href="#cbf_handle_struct">cbf_handle_struct</a> struct<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><strong>__del__</strong> <em>lambda</em> self</dt></dl>
<dl><dt><strong>__getattr__</strong> <em>lambda</em> self, name</dt></dl>
<dl><dt><a name="cbf_handle_struct-__init__"><strong>__init__</strong></a>(self, *args)</dt><dd><tt><a href="#cbf_handle_struct-__init__">__init__</a>(self) -> <a href="#cbf_handle_struct">cbf_handle_struct</a></tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-__repr__"><strong>__repr__</strong></a> = _swig_repr(self)</dt></dl>
<dl><dt><strong>__setattr__</strong> <em>lambda</em> self, name, value</dt></dl>
<dl><dt><a name="cbf_handle_struct-category_name"><strong>category_name</strong></a>(*args)</dt><dd><tt>Returns : <br>
*args : string<br>
<br>
C prototype: int cbf_category_name (cbf_handle handle,<br>
const char **categoryname);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_category_name sets *categoryname to point to the name of the <br>
current category of the current data block.<br>
The category name will be valid as long as the category exists.<br>
The name must not be modified by the program in any way.<br>
ARGUMENTS<br>
handle CBF handle. categoryname Pointer to the destination <br>
category name pointer.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-column_name"><strong>column_name</strong></a>(*args)</dt><dd><tt>Returns : <br>
*args : string<br>
<br>
C prototype: int cbf_column_name (cbf_handle handle, const char **columnname);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_column_name sets *columnname to point to the name of the current <br>
column of the current category.<br>
The column name will be valid as long as the column exists.<br>
The name must not be modified by the program in any way.<br>
ARGUMENTS<br>
handle CBF handle. columnname Pointer to the destination <br>
column name pointer.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-construct_detector"><strong>construct_detector</strong></a>(*args)</dt><dd><tt>Returns : pycbf detector <a href="__builtin__.html#object">object</a><br>
*args : Integer element_number<br>
<br>
C prototype: int cbf_construct_detector (cbf_handle handle,<br>
cbf_detector *detector, unsigned int element_number);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_construct_detector constructs a detector <a href="__builtin__.html#object">object</a> for detector <br>
element number element_number using the description in the CBF <a href="__builtin__.html#object">object</a> <br>
handle and initialises the detector handle *detector.<br>
ARGUMENTS<br>
handle CBF handle. detector Pointer to the destination detector <br>
handle. element_number The number of the detector element counting <br>
from 0 by order of appearance in the "diffrn_data_frame" category.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-construct_goniometer"><strong>construct_goniometer</strong></a>(*args)</dt><dd><tt>Returns : pycbf goniometer <a href="__builtin__.html#object">object</a><br>
*args : <br>
<br>
C prototype: int cbf_construct_goniometer (cbf_handle handle,<br>
cbf_goniometer *goniometer);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_construct_goniometer constructs a goniometer <a href="__builtin__.html#object">object</a> using the <br>
description in the CBF <a href="__builtin__.html#object">object</a> handle and initialises the goniometer <br>
handle *goniometer.<br>
ARGUMENTS<br>
handle CBF handle. goniometer Pointer to the destination <br>
goniometer handle.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-count_categories"><strong>count_categories</strong></a>(*args)</dt><dd><tt>Returns : unsigned<br>
*args : <br>
<br>
C prototype: int cbf_count_categories (cbf_handle handle,<br>
unsigned int *categories);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_count_categories puts the number of categories in the current <br>
data block in *categories.<br>
ARGUMENTS<br>
handle CBF handle. categories Pointer to the destination <br>
category count.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-count_columns"><strong>count_columns</strong></a>(*args)</dt><dd><tt>Returns : Integer<br>
*args : <br>
<br>
C prototype: int cbf_count_columns (cbf_handle handle, unsigned int *columns);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_count_columns puts the number of columns in the current category <br>
in *columns.<br>
ARGUMENTS<br>
handle CBF handle. columns Pointer to the destination column <br>
count.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-count_datablocks"><strong>count_datablocks</strong></a>(*args)</dt><dd><tt>Returns : unsigned<br>
*args : <br>
<br>
C prototype: int cbf_count_datablocks (cbf_handle handle,<br>
unsigned int *datablocks);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_count_datablocks puts the number of data blocks in *datablocks .<br>
ARGUMENTS<br>
handle CBF handle. datablocks Pointer to the destination data <br>
block count.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-count_elements"><strong>count_elements</strong></a>(*args)</dt><dd><tt>Returns : Integer<br>
*args : <br>
<br>
C prototype: int cbf_count_elements (cbf_handle handle,<br>
unsigned int *elements);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_count_elements sets *elements to the number of detector elements.<br>
ARGUMENTS<br>
handle CBF handle. elements Pointer to the destination count.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-count_rows"><strong>count_rows</strong></a>(*args)</dt><dd><tt>Returns : Integer<br>
*args : <br>
<br>
C prototype: int cbf_count_rows (cbf_handle handle, unsigned int *rows);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_count_rows puts the number of rows in the current category in <br>
*rows .<br>
ARGUMENTS<br>
handle CBF handle. rows Pointer to the destination row count.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-datablock_name"><strong>datablock_name</strong></a>(*args)</dt><dd><tt>Returns : <br>
*args : string<br>
<br>
C prototype: int cbf_datablock_name (cbf_handle handle,<br>
const char **datablockname);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_datablock_name sets *datablockname to point to the name of the <br>
current data block.<br>
The data block name will be valid as long as the data block exists <br>
and has not been renamed.<br>
The name must not be modified by the program in any way.<br>
ARGUMENTS<br>
handle CBF handle. datablockname Pointer to the <br>
destination data block name pointer.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-delete_row"><strong>delete_row</strong></a>(*args)</dt><dd><tt>Returns : <br>
*args : Integer<br>
<br>
C prototype: int cbf_delete_row (cbf_handle handle, unsigned int rownumber);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_delete_row deletes a row from the current category. Rows starting <br>
from rownumber +1 are moved down by 1. If the current row was higher <br>
than rownumber, or if the current row is the last row, it will also <br>
move down by 1.<br>
The row numbers start from 0.<br>
ARGUMENTS<br>
handle CBF handle. rownumber The number of the row to delete.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-find_category"><strong>find_category</strong></a>(*args)</dt><dd><tt>Returns : string<br>
*args : <br>
<br>
C prototype: int cbf_find_category (cbf_handle handle,<br>
const char *categoryname);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_find_category makes the category in the current data block with <br>
name categoryname the current category.<br>
The comparison is case-insensitive.<br>
If the category does not exist, the function returns CBF_NOTFOUND.<br>
The current column and row become undefined.<br>
ARGUMENTS<br>
handle CBF handle. categoryname The name of the category to <br>
find.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-find_category_root"><strong>find_category_root</strong></a>(*args)</dt><dd><tt>Returns : String categoryroot<br>
*args : String categoryname<br>
<br>
C prototype: int cbf_find_category_root (cbf_handle handle,<br>
const char* categoryname, const char** categoryroot);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_find_category_root sets *categoryroot to the root category of <br>
which categoryname is an alias. cbf_set_category_root sets <br>
categoryname_in as an alias of categoryroot in the dictionary <br>
associated with handle, creating the dictionary if necessary. <br>
cbf_require_category_root sets *categoryroot to the root category of <br>
which categoryname is an alias, if there is one, or to the value of <br>
categoryname, if categoryname is not an alias.<br>
A returned categoryroot string must not be modified in any way.<br>
ARGUMENTS<br>
handle CBF handle. categoryname category name which <br>
may be an alias. categoryroot pointer to a returned category <br>
root name. categoryroot_in input category root name.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-find_column"><strong>find_column</strong></a>(*args)</dt><dd><tt>Returns : string<br>
*args : <br>
<br>
C prototype: int cbf_find_column (cbf_handle handle, const char *columnname);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_find_column makes the columns in the current category with name <br>
columnname the current column.<br>
The comparison is case-insensitive.<br>
If the column does not exist, the function returns CBF_NOTFOUND.<br>
The current row is not affected.<br>
ARGUMENTS<br>
handle CBF handle. columnname The name of column to find.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-find_datablock"><strong>find_datablock</strong></a>(*args)</dt><dd><tt>Returns : string<br>
*args : <br>
<br>
C prototype: int cbf_find_datablock (cbf_handle handle,<br>
const char *datablockname);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_find_datablock makes the data block with name datablockname the <br>
current data block.<br>
The comparison is case-insensitive.<br>
If the data block does not exist, the function returns CBF_NOTFOUND.<br>
The current category becomes undefined.<br>
ARGUMENTS<br>
handle CBF handle. datablockname The name of the data <br>
block to find.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-find_nextrow"><strong>find_nextrow</strong></a>(*args)</dt><dd><tt>Returns : string<br>
*args : <br>
<br>
C prototype: int cbf_find_nextrow (cbf_handle handle, const char *value);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_find_nextrow makes the makes the next row in the current column <br>
with value value the current row. The search starts from the row <br>
following the last row found with cbf_find_row or cbf_find_nextrow, <br>
or from the current row if the current row was defined using any <br>
other function.<br>
The comparison is case-sensitive.<br>
If no more matching rows exist, the function returns CBF_NOTFOUND.<br>
The current column is not affected.<br>
ARGUMENTS<br>
handle CBF handle. value the value to search for.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-find_row"><strong>find_row</strong></a>(*args)</dt><dd><tt>Returns : string<br>
*args : <br>
<br>
C prototype: int cbf_find_row (cbf_handle handle, const char *value);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_find_row makes the first row in the current column with value <br>
value the current row.<br>
The comparison is case-sensitive.<br>
If a matching row does not exist, the function returns CBF_NOTFOUND.<br>
The current column is not affected.<br>
ARGUMENTS<br>
handle CBF handle. value The value of the row to find.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-find_tag_category"><strong>find_tag_category</strong></a>(*args)</dt><dd><tt>Returns : String categoryname_in<br>
*args : String tagname<br>
<br>
C prototype: int cbf_find_tag_category (cbf_handle handle,<br>
const char* tagname, const char** categoryname);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_find_tag_category sets categoryname to the category associated <br>
with tagname in the dictionary associated with handle. <br>
cbf_set_tag_category upddates the dictionary associated with handle <br>
to indicated that tagname is in category categoryname_in.<br>
ARGUMENTS<br>
handle CBF handle. tagname tag name. <br>
categoryname pointer to a returned category name. <br>
categoryname_in input category name.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-find_tag_root"><strong>find_tag_root</strong></a>(*args)</dt><dd><tt>Returns : String tagroot<br>
*args : String tagname<br>
<br>
C prototype: int cbf_find_tag_root (cbf_handle handle, const char* tagname,<br>
const char** tagroot);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_find_tag_root sets *tagroot to the root tag of which tagname is <br>
an alias. cbf_set_tag_root sets tagname as an alias of tagroot_in in <br>
the dictionary associated with handle, creating the dictionary if <br>
necessary. cbf_require_tag_root sets *tagroot to the root tag of <br>
which tagname is an alias, if there is one, or to the value of <br>
tagname, if tagname is not an alias.<br>
A returned tagroot string must not be modified in any way.<br>
ARGUMENTS<br>
handle CBF handle. tagname tag name which may be an alias. <br>
tagroot pointer to a returned tag root name. tagroot_in input <br>
tag root name.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-force_new_category"><strong>force_new_category</strong></a>(*args)</dt><dd><tt>Returns : string<br>
*args : <br>
<br>
C prototype: int cbf_force_new_category (cbf_handle handle,<br>
const char *categoryname);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_force_new_category creates a new category in the current data <br>
block with name categoryname and makes it the current category. <br>
Duplicate category names are allowed.<br>
Even if a category with this name already exists, a new category of <br>
the same name is created and becomes the current category. The allows <br>
for the creation of unlooped tag/value lists drawn from the same <br>
category.<br>
ARGUMENTS<br>
handle CBF handle. categoryname The name of the new <br>
category.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-force_new_datablock"><strong>force_new_datablock</strong></a>(*args)</dt><dd><tt>Returns : string<br>
*args : <br>
<br>
C prototype: int cbf_force_new_datablock (cbf_handle handle,<br>
const char *datablockname);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_force_new_datablock creates a new data block with name <br>
datablockname and makes it the current data block. Duplicate data <br>
block names are allowed. cbf_force_new_saveframe creates a new savew <br>
frame with name saveframename and makes it the current save frame. <br>
Duplicate save frame names are allowed.<br>
Even if a save frame with this name already exists, a new save frame <br>
is created and becomes the current save frame.<br>
ARGUMENTS<br>
handle CBF handle. datablockname The name of the new data <br>
block. saveframename The name of the new save frame.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-force_new_saveframe"><strong>force_new_saveframe</strong></a>(*args)</dt><dd><tt>Returns : string<br>
*args : <br>
<br>
C prototype: int cbf_force_new_saveframe (cbf_handle handle,<br>
const char *saveframename);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_force_new_datablock creates a new data block with name <br>
datablockname and makes it the current data block. Duplicate data <br>
block names are allowed. cbf_force_new_saveframe creates a new savew <br>
frame with name saveframename and makes it the current save frame. <br>
Duplicate save frame names are allowed.<br>
Even if a save frame with this name already exists, a new save frame <br>
is created and becomes the current save frame.<br>
ARGUMENTS<br>
handle CBF handle. datablockname The name of the new data <br>
block. saveframename The name of the new save frame.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_3d_image"><strong>get_3d_image</strong></a>(*args)</dt><dd><tt><a href="#cbf_handle_struct-get_3d_image">get_3d_image</a>(self, void ?)</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_3d_image_size"><strong>get_3d_image_size</strong></a>(*args)</dt><dd><tt><a href="#cbf_handle_struct-get_3d_image_size">get_3d_image_size</a>(self, void ?)</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_axis_setting"><strong>get_axis_setting</strong></a>(*args)</dt><dd><tt>Returns : Float start,Float increment<br>
*args : String axis_id<br>
<br>
C prototype: int cbf_get_axis_setting (cbf_handle handle,<br>
unsigned int reserved, const char *axis_id, double *start,<br>
double *increment);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_axis_setting sets *start and *increment to the corresponding <br>
values of the axis axis_id.<br>
Either of the destination pointers may be NULL.<br>
The parameter reserved is presently unused and should be set to 0.<br>
ARGUMENTS<br>
handle CBF handle. reserved Unused. Any value other than 0 is <br>
invalid. axis_id Axis id. start Pointer to the destination <br>
start value. increment Pointer to the destination increment value.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_bin_sizes"><strong>get_bin_sizes</strong></a>(*args)</dt><dd><tt><a href="#cbf_handle_struct-get_bin_sizes">get_bin_sizes</a>(self, void ?)</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_crystal_id"><strong>get_crystal_id</strong></a>(*args)</dt><dd><tt>Returns : <br>
*args : string<br>
<br>
C prototype: int cbf_get_crystal_id (cbf_handle handle,<br>
const char **crystal_id);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_crystal_id sets *crystal_id to point to the ASCII value of <br>
the "diffrn.crystal_id" entry.<br>
If the value is not ASCII, the function returns CBF_BINARY.<br>
The value will be valid as long as the item exists and has not been <br>
set to a new value.<br>
The value must not be modified by the program in any way.<br>
ARGUMENTS<br>
handle CBF handle. crystal_id Pointer to the destination <br>
value pointer.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_datestamp"><strong>get_datestamp</strong></a>(*args)</dt><dd><tt>Returns : int year,int month,int day,int hour,int minute,double second,<br>
int timezone<br>
*args : <br>
<br>
C prototype: int cbf_get_datestamp (cbf_handle handle, unsigned int reserved,<br>
int *year, int *month, int *day, int *hour, int *minute,<br>
double *second, int *timezone);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_datestamp sets *year, *month, *day, *hour, *minute and <br>
*second to the corresponding values of the collection timestamp. <br>
*timezone is set to timezone difference from UTC in minutes. The <br>
parameter < i>reserved is presently unused and should be set to 0.<br>
Any of the destination pointers may be NULL.<br>
ARGUMENTS<br>
handle CBF handle. reserved Unused. Any value other than 0 is <br>
invalid. year Pointer to the destination timestamp year. month <br>
Pointer to the destination timestamp month (1-12). day Pointer to <br>
the destination timestamp day (1-31). hour Pointer to the <br>
destination timestamp hour (0-23). minute Pointer to the <br>
destination timestamp minute (0-59). second Pointer to the <br>
destination timestamp second (0-60.0). timezone Pointer to the <br>
destination timezone difference from UTC in minutes.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_dictionary"><strong>get_dictionary</strong></a>(*args)</dt><dd><tt>Returns : CBFHandle dictionary<br>
*args : <br>
<br>
C prototype: int cbf_get_dictionary (cbf_handle handle,<br>
cbf_handle * dictionary);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_dictionary sets *dictionary to the handle of a CBF which has <br>
been associated with the CBF handle by cbf_set_dictionary. <br>
cbf_set_dictionary associates the CBF handle dictionary_in with <br>
handle as its dictionary. cbf_require_dictionary sets *dictionary to <br>
the handle of a CBF which has been associated with the CBF handle by <br>
cbf_set_dictionary or creates a new empty CBF and associates it with <br>
handle, returning the new handle in *dictionary.<br>
ARGUMENTS<br>
handle CBF handle. dictionary Pointer to CBF handle of <br>
dictionary. dictionary_in CBF handle of dcitionary.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_diffrn_id"><strong>get_diffrn_id</strong></a>(*args)</dt><dd><tt>Returns : <br>
*args : string<br>
<br>
C prototype: int cbf_get_diffrn_id (cbf_handle handle,<br>
const char **diffrn_id);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_diffrn_id sets *diffrn_id to point to the ASCII value of the <br>
"diffrn.id" entry. cbf_require_diffrn_id also sets *diffrn_id to <br>
point to the ASCII value of the "diffrn.id" entry, but, if the <br>
"diffrn.id" entry does not exist, it sets the value in the CBF and <br>
in*diffrn_id to the character string given by default_id, creating <br>
the category and column is necessary.<br>
The diffrn_id will be valid as long as the item exists and has not <br>
been set to a new value.<br>
The diffrn_id must not be modified by the program in any way.<br>
ARGUMENTS<br>
handle CBF handle. diffrn_id Pointer to the destination <br>
value pointer. default_id Character string default value.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_divergence"><strong>get_divergence</strong></a>(*args)</dt><dd><tt>Returns : Float div_x_source,Float div_y_source,Float div_x_y_source<br>
*args : <br>
<br>
C prototype: int cbf_get_divergence (cbf_handle handle, double *div_x_source,<br>
double *div_y_source, double *div_x_y_source);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_divergence sets *div_x_source, *div_y_source and <br>
*div_x_y_source to the corresponding source divergence parameters.<br>
Any of the destination pointers may be NULL.<br>
ARGUMENTS<br>
handle CBF handle. div_x_source Pointer to the <br>
destination div_x_source. div_y_source Pointer to the destination <br>
div_y_source. div_x_y_source Pointer to the destination <br>
div_x_y_source.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_doublevalue"><strong>get_doublevalue</strong></a>(*args)</dt><dd><tt>Returns : double<br>
*args : <br>
<br>
C prototype: int cbf_get_doublevalue (cbf_handle handle, double *number);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_doublevalue sets *number to the value of the ASCII item at <br>
the current column and row interpreted as a decimal floating-point <br>
number. cbf_require_doublevalue sets *number to the value of the <br>
ASCII item at the current column and row interpreted as a decimal <br>
floating-point number, setting it to defaultvalue if necessary.<br>
If the value is not ASCII, the function returns CBF_BINARY.<br>
ARGUMENTS<br>
handle CBF handle. number Pointer to the destination <br>
number. defaultvalue default number value.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success.<br>
SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_element_id"><strong>get_element_id</strong></a>(*args)</dt><dd><tt>Returns : String<br>
*args : Integer element_number<br>
<br>
C prototype: int cbf_get_element_id (cbf_handle handle,<br>
unsigned int element_number, const char **element_id);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_element_id sets *element_id to point to the ASCII value of <br>
the element_number th "diffrn_data_frame.detector_element_id" <br>
entry, counting from 0.<br>
If the detector element does not exist, the function returns <br>
CBF_NOTFOUND.<br>
The element_id will be valid as long as the item exists and has not <br>
been set to a new value.<br>
The element_id must not be modified by the program in any way.<br>
ARGUMENTS<br>
handle CBF handle. element_number The number of the detector <br>
element counting from 0 by order of appearance in the <br>
"diffrn_data_frame" category. element_id Pointer to the <br>
destination.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_gain"><strong>get_gain</strong></a>(*args)</dt><dd><tt>Returns : Float gain,Float gain_esd<br>
*args : <br>
<br>
C prototype: int cbf_get_gain (cbf_handle handle, unsigned int element_number,<br>
double *gain, double *gain_esd);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_gain sets *gain and *gain_esd to the corresponding gain <br>
parameters for element number element_number.<br>
Either of the destination pointers may be NULL.<br>
ARGUMENTS<br>
handle CBF handle. element_number The number of the detector <br>
element counting from 0 by order of appearance in the <br>
"diffrn_data_frame" category. gain Pointer to the destination <br>
gain. gain_esd Pointer to the destination gain_esd.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. <br>
_________________________________________________________________</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_image"><strong>get_image</strong></a>(*args)</dt><dd><tt><a href="#cbf_handle_struct-get_image">get_image</a>(self, void ?)</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_image_size"><strong>get_image_size</strong></a>(*args)</dt><dd><tt>Returns : size_t ndim1,size_t ndim2<br>
*args : Integer element_number<br>
<br>
C prototype: int cbf_get_image_size (cbf_handle handle, unsigned int reserved,<br>
unsigned int element_number, size_t *ndim1, size_t *ndim2);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_image_size sets *ndim1 and *ndim2 to the slow and fast <br>
dimensions of the image array for element number element_number. If <br>
the array is 1-dimensional, *ndim1 will be set to the array size and <br>
*ndim2 will be set to 1. If the array is 3-dimensional an error code <br>
will be returned. cbf_get_3d_image_size sets *ndim1, *ndim2 and <br>
*ndim3 to the slowest, next fastest and fastest dimensions, <br>
respectively, of the 3D image array for element number <br>
element_number. If the array is 1-dimensional, *ndim1 will be set to <br>
the array size and *ndim2 and</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_integerarray_as_string"><strong>get_integerarray_as_string</strong></a>(*args)</dt><dd><tt>Returns : (Binary)String<br>
*args : <br>
<br>
C prototype: int cbf_get_integerarray (cbf_handle handle, int *binary_id,<br>
void *array, size_t elsize, int elsigned, size_t elements,<br>
size_t *elements_read);<br>
<br>
CBFLib documentation:<br>
DESCRIPTION<br>
cbf_get_integerarray reads the binary value of the item at the <br>
current column and row into an integer array. The array consists of <br>
elements elements of elsize bytes each, starting at array. The <br>
elements are signed if elsigned is non-0 and unsigned otherwise. <br>
*binary_id is set to the binary section identifier and *elements_read <br>
to the number of elements actually read. cbf_get_realarray reads the <br>
binary value of the item at the current column and row into a real <br>
array. The array consists of elements elements of elsize bytes each, <br>
starting at array. *binary_id is set to the binary section identifier <br>
and *elements_read to the number of elements actually read.<br>
If any element in the integer binary data cant fit into the <br>
destination element, the destination is set the nearest possible <br>
value.<br>
If the value is not binary, the function returns CBF_ASCII.<br>
If the requested number of elements cant be read, the function will <br>
read as many as it can and then return CBF_ENDOFDATA.<br>
Currently, the destination array must consist of chars, shorts or <br>
ints (signed or unsigned). If elsize is not equal to sizeof (char), <br>
sizeof (short) or sizeof (int), for cbf_get_integerarray, or <br>
sizeof(double) or sizeof(float), for cbf_get_realarray the function <br>
returns CBF_ARGUMENT.<br>
An additional restriction in the current version of CBFlib is that <br>
values too large to fit in an int are not correctly decompressed. As <br>
an example, if the machine with 32-bit ints is reading an array <br>
containing a value outside the range 0 .. 2^32-1 (unsigned) or -2^31 <br>
.. 2^31-1 (signed), the array will not be correctly decompressed. <br>
This restriction will be removed in a future release. For <br>
cbf_get_realarray, only IEEE format is supported. No conversion to <br>
other floating point formats is done at this time.<br>
ARGUMENTS<br>
handle CBF handle. binary_id Pointer to the destination integer <br>
binary identifier. array Pointer to the destination array. elsize <br>
Size in bytes of each destination array element. elsigned Set to <br>
non-0 if the destination array elements are signed. elements The <br>
number of elements to read. elements_read Pointer to the <br>
destination number of elements actually read.<br>
RETURN VALUE<br>
Returns an error code on failure or 0 for success. SEE ALSO</tt></dd></dl>
<dl><dt><a name="cbf_handle_struct-get_integerarrayparameters"><strong>get_integerarrayparameters</strong></a>(*args)</dt><dd><tt>Returns : int compression,int binary_id,int elsize,int elsigned,int elunsigned,<br>
int elements,int minelement,int maxelement<br>
*args : <br>