Home > atmlab > arts > xml > xmlReadRetrievalQuantity.m

xmlReadRetrievalQuantity

PURPOSE ^

Reads a RetrievalQuantity from an XML file.

SYNOPSIS ^

function result = xmlReadRetrievalQuantity(fid, attrlist, itype, ftype, binary, fid2)

DESCRIPTION ^

 Reads a RetrievalQuantity from an XML file.

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

    Calls *xmlReadTag* for every member of the GriddedField3 structure.

 FORMAT   result = xmlReadRetrievalQuantity(fid, attrlist, itype, ftype, binary, fid2)

 OUT   result     RetrievalQuantity
 IN    fid        File descriptor of XML file
 IN    attrlist   List of tag attributes
 IN    itype      Integer type of input file
 IN    ftype      Floating point type of input file
 IN    binary     Flag. 1 = binary file, 0 = ascii
 IN    fid2       File descriptor of binary file

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlReadRetrievalQuantity.m

SOURCE CODE ^

0001 % Reads a RetrievalQuantity from an XML file.
0002 %
0003 %    Internal function that should never be called directly.
0004 %    Use *xmlLoad* instead.
0005 %
0006 %    Calls *xmlReadTag* for every member of the GriddedField3 structure.
0007 %
0008 % FORMAT   result = xmlReadRetrievalQuantity(fid, attrlist, itype, ftype, binary, fid2)
0009 %
0010 % OUT   result     RetrievalQuantity
0011 % IN    fid        File descriptor of XML file
0012 % IN    attrlist   List of tag attributes
0013 % IN    itype      Integer type of input file
0014 % IN    ftype      Floating point type of input file
0015 % IN    binary     Flag. 1 = binary file, 0 = ascii
0016 % IN    fid2       File descriptor of binary file
0017 
0018 % 2005-05-30       Created by Mattias Ekstrom.
0019 
0020 function result = xmlReadRetrievalQuantity(fid, attrlist, itype, ftype, binary, fid2)
0021 
0022   result.maintag          = xmlReadTag(fid, '', itype, ftype, binary, fid2);
0023   result.subtag           = xmlReadTag(fid, '', itype, ftype, binary, fid2);
0024   result.mode             = xmlReadTag(fid, '', itype, ftype, binary, fid2);
0025   result.analytical       = xmlReadTag(fid, '', itype, ftype, binary, fid2);
0026   result.perturbation     = xmlReadTag(fid, '', itype, ftype, binary, fid2);
0027   result.grids            = xmlReadTag(fid, '', itype, ftype, binary, fid2);

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