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
|
=pod
=head1 NAME
B<Funtools: FITS Users Need Tools>
=head1 SYNOPSIS
This document is the Table of Contents for Funtools.
=head1 DESCRIPTION
Funtools, is a "minimal buy-in" FITS library and utility package developed
at the the High Energy Astrophysics Division of SAO. The Funtools
library provides simplified access to a wide array of file types:
standard astronomical FITS images and binary tables, raw arrays and
binary event lists, and even tables of ASCII column data. A
sophisticated region filtering library (compatible with ds9) filters
images and tables using boolean operations between geometric shapes,
support world coordinates, etc. Funtools also supports advanced
capabilities such as optimized data searching using index files.
The main goal of the Funtools project has been to develop a minimal buy-in
FITS library for researchers who are occasional (but serious) coders. In
this case, "minimal buy-in" means "easy to learn, easy to use, and easy to
re-learn next month". We have tried to achieve this goal by emphasizing two
essential capabilities. The first is the ability to develop FITS programs
without knowing much about FITS, i.e., without having to deal with the
arcane rules for generating a properly formatted FITS file. The second is
to support the use of already-familiar C/Unix facilities, especially C
structs and Unix stdio. Taken together, these two capabilities should allow
researchers to leverage their existing programming expertise while
minimizing the need to learn new and complex coding rules.
Choose from the following topics:
=over 4
=item *
Funtools User Programs
=over 4
=item *
funcalc: Funtools calculator (for binary tables)
[funcalc(1)]
=item *
funcen: find centroid (for binary tables)
[funcen(1)]
=item *
funcnts: count photons in specified regions
[funcnts(1)]
=item *
funcone: cone search on RA, Dec columns
[funcone(1)]
=item *
fundisp: display data in a Funtools data file
[fundisp(1)]
=item *
funhead: display a header in a Funtools file
[funhead(1)]
=item *
funhist: create a 1D histogram of a column
[funhist(1)]
=item *
funimage: create a FITS image from a Funtools data file
[funimage(1)]
=item *
funindex: create an index on a column in a binary table
[funindex(1)]
=item *
funjoin: join two or more FITS binary tables on specified columns
[funjoin(1)]
=item *
funmerge: merge one or more Funtools table files
[funmerge(1)]
=item *
funsky: convert between image and sky coordinates, using WCS info from a FITS header
[funsky(1)]
=item *
funtable: copy selected rows from a Funtools file to a FITS binary table
[funtable(1)]
=item *
funtbl: extract a table from
Funtools ASCII output
[funtbl(1)]
=item *
funtools and ds9 image display
[funds9(n)]
=back
=item *
Funtools Programming
=over 4
=item *
Funtools Programming Summary
[funlib(3)]
=item *
Funtools Programming Tutorial
[funlib(3)]
=item *
A Short Digression on Subroutine Order
[funlib(3)]
=item *
Compiling and Linking
[funlib(3)]
=item *
The Funtools Reference Handle
[funlib(3)]
=item *
The Funtools Programming Reference Manual
=over 4
=item *
FunOpen: open a Funtools file
[funopen(3)]
=item *
FunImageGet: retrieve image data
[funimageget(3)]
=item *
FunImagePut: output image data
[funimageput(3)]
=item *
FunImageRowGet: retrieve image data by row
[funimagerowget(3)]
=item *
FunImageRowPut: output image data by row
[funimagerowput(3)]
=item *
FunTableRowGet: retrieve rows from a table
[funtablerowget(3)]
=item *
FunTableRowPut: output rows to a table
[funtablerowput(3)]
=item *
FunColumnSelect: select columns in a table for access
[funcolumnselect(3)]
=item *
FunColumnActivate: activate columns in a table for read/write
[funcolumnactivate(3)]
=item *
FunColumnLookup: lookup info about the columns in a table
[funcolumnlookup(3)]
=item *
FunInfoGet: get info about an image or table
[funinfoget(3)]
=item *
FunInfoPut: put info about an image or table
[funinfoput(3)]
=item *
FunParamGet: get header param
[funparamget(3)]
=item *
FunParamPut: put header param
[funparamput(3)]
=item *
FunFlush: flush I/O in a Funtools file
[funflush(3)]
=item *
FunClose: close a Funtools file
[funclose(3)]
=back
=item *
Funtools Programming Examples
[funlib(3)]
=over 4
=item *
evmerge: merge new columns with existing columns
=item *
evcols: add column and rows to binary tables
=item *
imblank: blank out image values below a threshold
=back
=back
=item *
Funtools Data Files
[funfiles(n)]
=over 4
=item *
Supported Data Formats
=over 4
=item *
FITS File and Extensions
=item *
Non-FITS Raw Event Files
=item *
Non-FITS Array Files
=item *
Column-based Text (ASCII) Files
=item *
Database Views of Tables
=back
=item *
Image Sections and Blocking
=item *
Binning FITS Binary Tables and Non-FITS Event Files
=item *
Disk Files and Other Supported File Types
=back
=item *
Funtools Data Filtering
=over 4
=item *
Table Filtering
[funfilters(n)]
=item *
Fast Table Filtering using Indexes
[funidx(n)]
=item *
Spatial Region Filtering
[funregions(n)]
=over 4
=item *
Region Geometry
[reggeometry(n)]
=item *
Region Algebra
[regalgebra(n)]
=item *
Region Coordinates
[regcoords(n)]
=item *
Region Boundaries
[regbounds(n)]
=item *
Differences Between Funtools and IRAF Regions
[regdiff(n)]
=back
=item *
Combining Table and Region Filters
[funcombine(n)]
=back
=item *
Miscellaneous
=over 4
=item *
Funtools Environment Variables
[funenv(n)]
=item *
Funtools ChangeLog
=back
=back
=cut
|