| | 1 | == Displaying Image Fields == |
| | 2 | |
| | 3 | There are several ways to display fields covered by a set of images. This example illustrates the combination of the [wiki:Imbox imbox] command with a [wiki:For_loop for loop] to display fields of fits files that have not been imported to a DVO database. |
| | 4 | |
| | 5 | <table> |
| | 6 | <tr><td>region ra dec size </td><td>(set the display region to be centered roughly on where you expect your images to lie) </td></tr> |
| | 7 | <tr><td>list mylist -x "ls *.fits" </td><td> (this makes a list, called "mylist", which contains the names of the fits files in the current directory)</td></tr> |
| | 8 | <tr><td>?? </td><td> (this displays all the variables in current memory. You can check this to determine the number of elements in "mylist")</td></tr> |
| | 9 | <tr><td>for i 0 n </td><td> (replace n with 1 less than the number of elements in mylist)</td></tr> |
| | 10 | <tr><td>imbox $mylist:$i </td><td> (remember: $ precedes non vector variables when called)</td></tr> |
| | 11 | <tr><td>end</td></tr> |