Home > atmlab > arts > xml > xmlWriteRetrievalQuantity.m

xmlWriteRetrievalQuantity

PURPOSE ^

Writes a RetrievalQuantity to an XML file.

SYNOPSIS ^

function xmlWriteRetrievalQuantity(fid, fidb, data, precision)

DESCRIPTION ^

 Writes a RetrievalQuantity to an XML file.

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

 FORMAT   xmlWriteRetrievalQuantity(fid, fidb, data, precision)

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlWriteRetrievalQuantity.m

SOURCE CODE ^

0001 % Writes a RetrievalQuantity to an XML file.
0002 %
0003 %    Internal function that should never be called directly.
0004 %    Use *xmlStore* instead.
0005 %
0006 % FORMAT   xmlWriteRetrievalQuantity(fid, fidb, data, precision)
0007 %
0008 % IN    fid        File descriptor
0009 % IN    fidb       File descriptor for binary file
0010 % IN    data       RetrievalQuantity
0011 % IN    precision  Precision for floats
0012 
0013 % 2005-05-30   Created by Mattias Ekstrom.
0014 
0015 function xmlWriteRetrievalQuantity(fid, fidb, data, precision)
0016 
0017 xmlWriteTag (fid, 'RetrievalQuantity', []);
0018 
0019 xmlWriteString (fid, fidb, data.maintag, precision);
0020 xmlWriteString (fid, fidb, data.subtag, precision);
0021 xmlWriteString (fid, fidb, data.mode, precision);
0022 xmlWriteIndex (fid, fidb, data.analytical, precision);
0023 xmlWriteNumeric (fid, fidb, data.perturbation, precision);
0024 xmlWriteArrayOf (fid, fidb, data.grids, 'Vector', precision);
0025 
0026 xmlWriteCloseTag (fid, 'RetrievalQuantity');
0027

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