Coerce object shape
Temporarily coerce an object into changing its shape
CALL DAT_COERC( LOC1, NDIM, LOC2, STATUS )
LOC1 = CHARACTER
NDIM = INTEGER (Given)
Number of dimensions.
LOC2 = CHARACTER
DAT__SZLOC ) (Returned)
Coerced object locator.
STATUS = INTEGER (Given and
The global status.
If the number of dimensions in the object is to be
increased, each additional dimension size is set to 1, e.g. if loc1 is associated with a 2-D
object of shape (512,256) say, setting ndim to 3 transforms the dimensions to (512,256,1).
Likewise, if the number of dimensions is to be reduced, the appropriate trailing dimension
sizes are discarded; the routine will fail if any of these do not have the value 1. As with
, only the appearance of the object is changed – the original shape remains intact.
Copyright © 2019 East Asian Observatory