Home > atmlab > arts > qarts_get.m

qarts_get

PURPOSE ^

QARTS_GET Resolves Qarts variable

SYNOPSIS ^

function b = qarts_get( a )

DESCRIPTION ^

 QARTS_GET   Resolves Qarts variable

    This function handles cases where a variable either is given directly,
    or if it shall be loaded from a XML file.

    A file is tried to be loaded if *a* is a string. Otherwise b is just
    set to a.

    Use *qarts_get_gformat* for variables of gformat type.

 FORMAT   b = qarts_get( a )
        
 OUT   b          Variable value.
 IN    a          Variable value or file name.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

qarts_get.m

SOURCE CODE ^

0001 % QARTS_GET   Resolves Qarts variable
0002 %
0003 %    This function handles cases where a variable either is given directly,
0004 %    or if it shall be loaded from a XML file.
0005 %
0006 %    A file is tried to be loaded if *a* is a string. Otherwise b is just
0007 %    set to a.
0008 %
0009 %    Use *qarts_get_gformat* for variables of gformat type.
0010 %
0011 % FORMAT   b = qarts_get( a )
0012 %
0013 % OUT   b          Variable value.
0014 % IN    a          Variable value or file name.
0015 
0016 % 2004-07-10   Created by Patrick Eriksson.
0017 
0018 
0019 function b = qarts_get( a )
0020 
0021 if ischar( a )
0022   b = xmlLoad( a );
0023 else
0024   b = a;
0025 end

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