Next: SCULIB_ADDCAD - add a constant to a double array
Up: Library APIs
Previous: SCULIB_ADD_DEMOD_EXPOSURE - add demodulated data for an exposure into the integration result
SCULIB_ADDARE
- add one real array to another into a third
- Description:
- Adds two real arrays. Note that any of the arrays may be the same.
- Invocation:
- CALL SCULIB_ADDARE (N, ARRAY1, ARRAY2, ARRAY3, Q1DATA,
Q2DATA, Q3DATA, V1DATA, V2DATA, V3DATA, QUALITY, FLAGGED,
VARIANCE)
- Arguments:
-
-
N = INTEGER (Given)
-
Number of elements in each array
-
ARRAY1 (N) = REAL (Given)
-
Input array
-
ARRAY2 (N) = REAL (Given)
-
Second input array
-
ARRAY3 (N) = REAL (Returned)
-
Result array. ARRAY3 = ARRAY1
ARRAY2
-
Q1DATA (N) = INTEGER (Given)
-
Quality array for first input array
-
Q2DATA (N) = INTEGER (Given)
-
Quality array for second input array
-
Q3DATA (N) = INTEGER (Returned)
-
Quality array for output array
-
V1DATA (N) = REAL (Given)
-
Variance array for first input array
-
V2DATA (N) = REAL (Given)
-
Variance array for second input array
-
V3DATA (N) = REAL (Returned)
-
Variance array for output array
-
QUALITY = LOGICAL (Given)
-
True if input has quality information
-
FLAGGED = LOGICAL (Given)
-
True if input has flagged data values
-
VARIANCE = LOGICAL (Given)
-
True if both input arrays have variance arrays
- Notes:
- Does not use Quality correctly.
Uses INTEGER quality rather than UBYTE
-
Copyright
- Copyright ©1995,1996,1997,1998,1999 Particle Physics and Astronomy
Research Council. All Rights Reserved.
- Implementation Status:
- Propagates variance
- Checks for bad values
Next: SCULIB_ADDCAD - add a constant to a double array
Up: Library APIs
Previous: SCULIB_ADD_DEMOD_EXPOSURE - add demodulated data for an exposure into the integration result
SURF Programming Interface
Starlink System Note 72
Tim Jenness, John F. Lightfoot
Joint Astronomy Centre, Hilo, Hawaii
10 July 2000
E-mail:ussc@star.rl.ac.uk
Copyright © 2008 Science and Technology Facilities Council