### NDF_XNEW

Create a new extension in an NDF

#### Description:

The routine creates a new named extension of specified type and shape in an NDF structure, and returns an HDS locator to it.

#### Invocation

CALL NDF_XNEW( INDF, XNAME, TYPE, NDIM, DIM, LOC, STATUS )

#### Arguments

NDF identifier.
Extension name.
##### TYPE = CHARACTER $\ast$ ( $\ast$ ) (Given)
HDS data type of the extension.
##### NDIM = INTEGER (Given)
Number of extension dimensions.
##### DIM( NDIM ) = INTEGER (Given)
Extension dimension sizes.
##### LOC = CHARACTER $\ast$ ( $\ast$ ) (Returned)
Locator to the newly created extension.
##### STATUS = INTEGER (Given and Returned)
The global status.

#### Notes:

• If this routine is called with STATUS set, then an invalid locator will be returned for the LOC argument, although no further processing will occur. The same value will also be returned if the routine should fail for any reason.