Next: 7.6 SDR_LOAD Up: 7 Reference Guide Previous: 7.4 PLT_ENE_BANDS

7.5 SDR$CREATE

     

This procedure creates an IGORE SDR array having the specified name and number of elements. The format of this command is:

Calling Sequence
SDR$CREATE, r_sdr, ndims

Arguments

R_SDR:
The IDL variable into which the IGORE SDR pointers will be placed. The IGORE record created by this routine will be of type IGR$SDR. The name will be truncated if longer than 15 characters. 
NDIMS:
An integer specifying the number of elements in the record array to be created.

Keywords

NAME:
A character string which, if present, specifies the name of the IGORE record to be created. The name will be truncated if longer than 15 characters. If not provided, the IGORE record will be created using the name of the IDL variable passed as R_SDR.
/UNIQUE:
If present and non-zero, /UNIQUE forces the generation of a unique name for the IGORE record. Ignored if NAME is specified.

Discussion

This routine creates an IGORE record array having a structure type IGR$SDR. Note that SDR$CREATE performs the same operation as the routine CREREC with the structure type IGR$SDR. An example of the usage of SDR$CREATE   is given below:

Igore> SDR$CREATE, r_sdr1, 10, name='sdr1'
Igore> SDR$CREATE, r_sdr2, 10
Igore> CREREC, 'IGR$SDR', r_sdr3, 10, name='sdr3'
Igore> CREREC, 'IGR$SDR', r_sdr4, 10