SPP(ID:8116/)IRAF programming language Subset Pre-Processor language, an IRAF designed FORTRAN code generator. Part of a suite with the IRAF CL References: Extract: Programming in IRAF with SPP Programming in IRAF with SPP The SPP/VOS (Subset Pre-Processor/Virtual Operating System) programming environment is the native programming environment of IRAF. All of the application software in IRAF is written in this language. The user who decides to step up into SPP programming will have all the tools at hand that all of the IRAF programmers themselves do. Novice SPP programmers are referred to Rob Seaman?s manual An Introductory User?s Guide to IRAF SPP Programming, October 1992. Another useful document is the SPP Programmer?s Reference, edited by Zolt Levay at Space Telescope Science Institute (available via anonymous ftp to stsci.edu in the software/stsdas/v1.2/doc/programmer/spp directory). One of the best ways to learn SPP programming, besides referencing the two manuals above, is by example. And of course the distributed IRAF system is abundant with examples since all source code is included as part of all IRAF distributions! Extract: Using the CL as a calculator Using the CL as a calculator The CL has a built-in calculator capability. Some variables that may be used are defined in the parameter file for the CL which includes the booleans b1, b2, and b3; the integer variables, i, j, and k; the real variables, x, y, and z; and the string variables, s1, s2, and s3. There are a variety of built-in functions that are also available including sin, cos, abs, exp, log, log10, max, min, sqrt, and tan. For more complex examples see the document An Introductory User?s Guide to IRAF Scripts, mentioned in §9.1. cl> lpar cl cl> i=1;j=2;x=5;=i+x**j cl> =x cl> =sqrt(x/10) cl> =(sin(0.5)**2+cos(0.5)**2) Extract: Introduction: History and Grammar Introduction: History and Grammar The first scientifically useful data obtained with SILFID, in 1985, were processed with the EVE software package (a kind of "MIDAS light" product elaborated at Meudon) running on VMS machines. A few years later, with the invasion of UNIX systems, we decided to base our reduction software on IRAF. In addition to the standard procedures of this package, we thus had to write specialized scripts that are fully compatible with IRAF syntax. Most recently, some of these procedures have been rewritten in SPP (Subset Pre-Processor language, an IRAFdesigned FORTRAN code generator) in order to speed up the slower tasks. The resulting package, ESPRIT D'ARGUS (Ensemble ,simple de Prockdures Rkalisk avec IRAF pour le Traitement des Donnkes d7Argus) may be used directly at the telescope, providing the observer with calibrated spectra and reconstructed images less than one hour after the data have been obtained. It is also used for the final, more meticulous, data processing. Resources
|