McIDAS Programmer's Manual
Version 2006
[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]
The online man pages provided with the McIDAS-X software contain detailed descriptions of all the API (Application Program Interface) functions that you will need to build McIDAS-X applications.
The McIDAS-X man pages differ from Unix man pages in two ways.
In this section, you'll find the following information about using the man pages.
You must modify the MANPATH environment variable in your .profile (ksh) or .cshrc (csh) files before you can view the man pages.
To display the man page for an API function, enter the command below from the Unix prompt.
For example, if you wanted to display the man page for the API function sdest, you would enter the command below.
The man page is displayed as shown below.
If you don't know the name of the API function, or want to search for all the API functions related to a particular topic, you can use the xrefit command using the formats below.
The xrefit command searches the name and category fields for matchword. In the sample sdest man page, the Name field contains the description puts a string to a standard I/O device or file and the Categories field contains the word text.
Use the xrefit matchword option to list all the APIs that contain the specified matchword in the name or categories fields. For example, to list all the API functions that contain the word convert, you would enter the command xrefit convert. A subset of the output is shown below.
The first column lists the category, the second column lists the API function, and the third column provides a one-line description of the API.
To further define your search, use the -c flag, which lists the APIs whose categories match the specified entry. For example, to list all the API functions with the category converter, you would enter the command xrefit -c converter. A subset of the output is shown below.
The McIDAS-X man files have names such as sdest.3, Mcgettime.4, and mcgetimageframenumber.3. The extension refers to the subdirectory containing the man files. The xref.tab file is a cross-reference file containing a one-line description of all the API functions. The xrefit function searches this file, as described in the previous section.
The McIDAS-X man page files and tools are placed in the ~/mcidas/man directory, except for the search function xrefit which is stored in ~mcidas/bin. All man files have the .3 extension and reside in the man3 subdirectory, as shown in the table below.
Directory | Contents |
---|---|
[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]