FTS1_SCOFB

Applies scale and zero to a REAL data vector, and substitutes magic values for blank FITS data

Description:

This routine applies scale and offset to a 1-d REAL array. Any pixels with the %BLANK value are substituted by the standard magic value. On output, pixel is input value times scale plus offset.

Invocation

CALL FTS1_SCOFB ( BSCALE, BZERO, UNDEF, BLANK, SIZE, ARRAY, : STATUS )

Arguments

BSCALE = REAL (Given)
Scale factor to be applied to the array.
BZERO = REAL (Given)
Offset to be applied to the array.
UNDEF = LOGICAL (Given)
If true, testing and replacement of undefined data values is to occur. A blank value, as specified by %BLANK, is replaced by the standard magic value. If false, the value of %BLANK is ignored.
BLANK = INTEGER (Given)
Value of an undefined datum.
SIZE = INTEGER (Given)
Number of elements in the data array.
ARRAY( SIZE ) = REAL (Given and Returned)
The data array to which scaling and offset is to be applied.
STATUS = INTEGER (Given)
Global status value.

Bugs:

None known.