Procedure 2 |
Create Spectrum |
REQUEST
If the access capability is valid creates a spectrum in the server with name given
by pathname. |
RESPONSE |
procedure status indicates the result of the request.
procedure status |
XDR Specification
procedure CreateSpectrum (cap, path, dim, bse, rng, layout1, type1, layout2, type2) return(status) capability cap; pathname path; dimension dim; base bse; range rng; arraylayout layout1; arraytype type1; arraylayout layout2; arraytype type2; stat status;
Implementation
A spectrum may exist with data in either big endian format (that is
as used by SunMicrosystems Sparc and Motorola processors) or in little endian format
(as used by Intel processors of the x86 family and Digital). The Create Spectrum
procedure will always create a spectrum and write the spectrum header in the native format
of its processor.
See also corresponding handling in the Write Spectrum
and Create Spectrum procedures.
The array layout and array type parameters may be defined here or left undefined (set to -1 or all one bits) and defined latter using the Change Array Options procedure. If data array 1 layout and data array 1 type are defined here for an on-line spectrum server then space will be allocated for the data array at this point. In the case of disc based spectra space for the data arrays will not be allocated until the first Write Spectrum procedure.