KPG1_LIKE

Creates a section from an NDF that matches the area of another NDF

Description:

This routine returns an identifier for a section of a supplied NDF (INDF1) that covers the same area as a second template NDF (INDF2). The area matched can be either the pixel area, or the WCS area.

The number of pixel axes in the input is not changed, even if the template has a different number of pixel axes.

Invocation

CALL KPG1_LIKE( INDF1, INDF2, LIKWCS, INDF3, STATUS )

Arguments

INDF1 = INTEGER (Given)
The first NDF, from which a section is to be copied.
INDF2 = INTEGER (Given)
The second NDF (the template).
LIKWCS = LOGICAL (Given)
If .TRUE., then the section selected from INDF1 matches the WCS bounding box of INDF2. If .FALSE., then the section selected from INDF1 matches the pixel index bounding box of INDF2. An error is reported if LIKWCS is .TRUE. and the two WCS FrameSets cannot be aligned.
INDF3 = INTEGER (Returned)
The required section of INDF1.
STATUS = INTEGER (Given and Returned)
The global status.