next up previous contents
Next: Opening FITS files Up: How to replace Previous: Using the temporary

Multiple types and checking

The ADI system allows for multiple opperations on different data objects with a single call, such as to copy the title, label and units of a dataset from one file to another with the single call,

CALL BDI_COPY( IFID, 'Title,Label,Units', OFID, ' ', STATUS )
To increase the simplicity of the replacement code this capability has been removed from all calls (copying, mapping, reading &c.). Thus the above code needs to be replaced by,
CALL BDF_COPY( IFID, 'Title', OFID, ' ', STATUS )
CALL BDF_COPY( IFID, 'Label', OFID, ' ', STATUS )
CALL BDF_COPY( IFID, 'Units', OFID, ' ', STATUS )

The BDI routines contain other checks and safeguards, such as ensuring a mapping mode is either read or write, and comparing the types of two objects. Because of the many-tiered nature of BDI ( BDI_AXMAPR calls BDI_AXMPAP calls BDI_MAP &c.) these checks can often be repeated.

The new BDF routines assume (in general) that the original call was correct in all aspects and perform no checking of operation, type, &c. This again greatly simplifies the replacement code.



Asterix
Tue Jun 23 11:39:42 BST 1998