Home > atmlab > arts > xml > xmlWritePpath.m

xmlWritePpath

PURPOSE ^

Writes a Ppath to an XML file.

SYNOPSIS ^

function xmlWritePpath(fid, fidb, data, precision)

DESCRIPTION ^

 Writes a Ppath to an XML file.

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

 FORMAT   xmlWritePpath(fid, fidb, data, precision)

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlWritePpath.m

SOURCE CODE ^

0001 % Writes a Ppath to an XML file.
0002 %
0003 %    Internal function that should never be called directly.
0004 %    Use *xmlStore* instead.
0005 %
0006 % FORMAT   xmlWritePpath(fid, fidb, data, precision)
0007 %
0008 % IN    fid        File descriptor
0009 % IN    fidb       File descriptor for binary file
0010 % IN    data       Ppath
0011 % IN    precision  Precision for floats
0012 
0013 % 2003-01-09  Created by Oliver Lemke.
0014 
0015 function xmlWritePpath(fid, fidb, data, precision)
0016 
0017 xmlWriteTag (fid, 'Ppath', []);
0018 
0019 xmlWriteIndex (fid, fidb, data.dim, precision);
0020 xmlWriteIndex (fid, fidb, data.np, precision);
0021 xmlWriteNumeric (fid, fidb, data.constant, precision);
0022 xmlWriteString (fid, fidb, data.background, precision);
0023 xmlWriteVector (fid, fidb, data.start_pos, precision);
0024 xmlWriteVector (fid, fidb, data.start_los, precision);
0025 xmlWriteNumeric (fid, fidb, data.start_lstep, precision);
0026 xmlWriteMatrix (fid, fidb, data.pos, precision);
0027 xmlWriteMatrix (fid, fidb, data.los, precision);
0028 xmlWriteVector (fid, fidb, data.r, precision);
0029 xmlWriteVector (fid, fidb, data.lstep, precision);
0030 xmlWriteVector (fid, fidb, data.end_pos, precision);
0031 xmlWriteVector (fid, fidb, data.end_los, precision);
0032 xmlWriteNumeric (fid, fidb, data.end_lstep, precision);
0033 xmlWriteVector (fid, fidb, data.nreal, precision);
0034 xmlWriteVector (fid, fidb, data.ngroup, precision);
0035 xmlWriteArrayOf (fid, fidb, data.gp_p, 'GridPos', precision);
0036 xmlWriteArrayOf (fid, fidb, data.gp_lat, 'GridPos', precision);
0037 xmlWriteArrayOf (fid, fidb, data.gp_lon, 'GridPos', precision);
0038 
0039 xmlWriteCloseTag (fid, 'Ppath');
0040

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