Home > atmlab > arts > xml > xmlWriteCIARecord.m

xmlWriteCIARecord

PURPOSE ^

Writes a CIARecord to an XML file.

SYNOPSIS ^

function xmlWriteCIARecord(fid, fidb, data, precision)

DESCRIPTION ^

 Writes a CIARecord to an XML file.

    Internal function that should never be called directly.
    Use *xmlStore* instead.

 FORMAT   xmlWriteCIARecord(fid, fidb, data, precision)

 IN    fid        File descriptor
 IN    fidb       File descriptor for binary file
 IN    data       CIARecord
 IN    precision  Precision for floats

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlWriteCIARecord.m

SOURCE CODE ^

0001 % Writes a CIARecord to an XML file.
0002 %
0003 %    Internal function that should never be called directly.
0004 %    Use *xmlStore* instead.
0005 %
0006 % FORMAT   xmlWriteCIARecord(fid, fidb, data, precision)
0007 %
0008 % IN    fid        File descriptor
0009 % IN    fidb       File descriptor for binary file
0010 % IN    data       CIARecord
0011 % IN    precision  Precision for floats
0012 
0013 % 2013-02-07  Created by Oliver Lemke.
0014 
0015 function xmlWriteCIARecord(fid, fidb, data, precision)
0016 
0017 attrlist = [];
0018 attrlist = xmlAddAttribute (attrlist, 'molecule1', data.molecule1);
0019 attrlist = xmlAddAttribute (attrlist, 'molecule2', data.molecule2);
0020 
0021 xmlWriteTag (fid, 'CIARecord', attrlist);
0022 
0023 xmlWriteArrayOf(fid, fidb, data.data, 'GriddedField2', precision);
0024 
0025 xmlWriteCloseTag (fid, 'CIARecord');
0026

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005