SUN/39.2

Starlink Project
Starlink User Note 39.2

R F Warren-Smith

28 February 1995


PRIMDAT — Processing of Primitive Numerical Data

v1.6

Programmer’s Guide



Abstract

The PRIMDAT package is a collection of Fortran functions and subroutines providing support for primitive data processing.

Contents

1 INTRODUCTION
 1.1 The VAL, VEC and NUM Facilities
 1.2 Propagation of Bad Data
 1.3 The STATUS Argument
2 THE VAL_ FUNCTIONS
 2.1 Applicability & Efficiency
 2.2 VAL_ Error Handling
 2.3 VAL_ Arithmetic and Mathematical Functions
 2.4 VAL_ Type Conversion Functions
 2.5 Declaring the VAL_ Functions
3 THE VEC_ ROUTINES
 3.1 Applicability & Efficiency
 3.2 VEC_ Error Handling
 3.3 VEC_ Arithmetic and Mathematical Routines
 3.4 VEC_ Type Conversion Routines
4 THE NUM_ FUNCTIONS
 4.1 Applicability & Efficiency
 4.2 NUM_ Arithmetic and Mathematical Functions
 4.3 NUM_ Type Conversion Functions
 4.4 NUM_ Inter-comparison Functions
 4.5 Declaring and Defining the NUM_ Functions
 4.6 NUM Error Handling
5 CONSTANTS
 5.1 Bad Data Values
 5.2 Machine Precision
 5.3 Maximum Data Values
 5.4 Minimum Data Values
 5.5 Data Storage Requirements
 5.6 Smallest Value
 5.7 Character String Sizes
6 COMPILING AND LINKING
 6.1 Unix
 6.2 VMS
7 CHANGES IN THIS DOCUMENT
A PERFORMANCE STATISTICS
B ERROR CODES & MESSAGES