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:
  • Levay, Zolt "Another useful document is the SPP Programmer?s Reference" Space Telescope Science Institute 1992 view details
  • Seaman, Rob "An Introductory User?s Guide to IRAF SPP Programming" October 1992 view details
  • Barnes, Jeannette "A Beginner?s Guide to Using IRAF" IRAF Version 2.10 Central Computer Services National Optical Astronomy Observatories Tucson, Arizona 85726 August 1993 view details Abstract: IRAF is a general Image Reduction and Analysis Facility providing a wide range of image processing tools for the user. IRAF is a product of the National Optical Astronomy Observatories and was developed for the astronomical community although researchers in other scientific fields have found IRAF to be useful for general image processing. This document is intended to provide the novice user with a brief introduction to IRAF and its Command Language (CL) user interface.
    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)
  • Teyssandierl, P. and Vanderriest, C. "ESPRIT D'Argus: an IRAF-Based Software Package for the Treatment of ARGUS Data" Fiber Optics in Astronomy 111 ASP Conference Series, Vol. 152, 1998 view details Abstract: We describe a software package that combines existing IRAF tasks and new IRAF-styles cripts for the treatment of ARGUS data. The present version uses the SPP programming language, which allows calibrated spectra and monochromatic images to be produced almost in real time.
    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
    • Page at Starlink
    • Page at Starlink

      "The Image Reduction and Analysis Facility (IRAF) was developed by the National Optical Astronomical Observatory (Kitt Peak), and has been adopted by the Space Telescope Science Institute in Baltimore as the principal data analysis environment for Hubble Space Telescope (HST) data. (This data can also be reduced by KAPPA and FIGARO.) It contains general image processing and graphics applications, plus programs for reducing and analysing optical astronomical data. It is as portable and device independent as possible; for example, it includes its own programming language. Although it runs on a variety of computers, in practice it usually runs best on one particular type (Suns at present). "external link