dafcad |
Table of contents
ProcedureDAFCAD ( DAF, continue adding data ) ENTRY DAFCAD ( HANDLE ) AbstractSelect a DAF that already has a new array in progress as the one to continue adding data to. Required_ReadingDAF KeywordsFILES DeclarationsIMPLICIT NONE INTEGER HANDLE Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- HANDLE I Handle of DAF to continue adding data to. Detailed_InputHANDLE is the handle of a DAF that is open for write access and in which a new array has been started by a call to DAFBNA. Detailed_OutputNone. ParametersNone. Exceptions1) If the input handle is not that of a DAF that is open for writing, an error is signaled by a routine in the call tree of this routine. 2) If no array is currently being added to in the file indicated by HANDLE, the error SPICE(NOARRAYSTARTED) is signaled. FilesNone. ParticularsDAFCAD supports simultaneous addition of data to arrays in multiple DAFs. In applications that use this capability, DAFCAD should be called prior to each call to DAFADA or DAFENA to specify which DAF is to be acted upon. Here is a code fragment that adds a new array to each of N existing DAFs, simultaneously. The data to be added to each is broken up into M chunks; one chunk is written to each DAF at a time. The data is contained in the array CHUNK, dimensioned DOUBLE PRECISION CHUNK ( MAXDAT, M, N ) The actual amount of data in the Jth chunk for the Ith file is given by AMOUNT (J,I) DO I = 1, N CALL DAFOPW ( HANDLE(I) ) CALL DAFBNA ( HANDLE(I) ) END DO DO J = 1, M DO I = 1, N CALL DAFCAD ( HANDLE(I) ) CALL DAFADA ( CHUNK(1,J,I), AMOUNT(J,I) ) END DO END DO DO I = 1, N CALL DAFCAD ( HANDLE(I) ) CALL DAFENA END DO Note that if we write all of the data for each array to just one DAF at a time, we don't need to use DAFCAD: DO I = 1, N CALL DAFOPW ( HANDLE(I) ) CALL DAFBNA ( HANDLE(I) ) DO J = 1, M CALL DAFADA ( CHUNK(1,J,I), AMOUNT(J,I) ) END DO CALL DAFENA END DO ExamplesSee $Examples in DAFANA. RestrictionsNone. Literature_ReferencesNone. Author_and_InstitutionN.J. Bachman (JPL) J. Diaz del Rio (ODC Space) W.L. Taber (JPL) F.S. Turner (JPL) VersionSPICELIB Version 3.1.0, 06-JUL-2021 (JDR) Added IMPLICIT NONE statement. Edited the header to comply with NAIF standard. Edited entry #2 in $Exceptions section: No write in progress is detected by this routine. SPICELIB Version 3.0.0, 16-NOV-2001 (FST) Updated entry points to support changes made to the DAF system that utilize the new handle manager. See the $Revisions section of DAFANA for a detailed discussion of the changes. SPICELIB Version 1.0.1, 10-MAR-1992 (WLT) Comment section for permuted index source lines was added following the header. SPICELIB Version 1.0.0, 04-SEP-1991 (NJB) (WLT) |
Fri Dec 31 18:36:07 2021