Home > atmlab > arts > qarts_get_gformat.m

qarts_get_gformat

PURPOSE ^

QARTS_GET_GFORMAT Resolves Qarts variable of gformat type

SYNOPSIS ^

function b = qarts_get_gformat( a )

DESCRIPTION ^

 QARTS_GET_GFORMAT   Resolves Qarts variable of gformat type

    A complement to *qarts_get* to also handle gformat data. This is needed
    as there is no complete support for gformat in the xml part.

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

 FORMAT   b = qarts_get_gformat( 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_gformat.m

SOURCE CODE ^

0001 % QARTS_GET_GFORMAT   Resolves Qarts variable of gformat type
0002 %
0003 %    A complement to *qarts_get* to also handle gformat data. This is needed
0004 %    as there is no complete support for gformat in the xml part.
0005 %
0006 %    A file is tried to be loaded, through *gf_load*, if *a* is a
0007 %    string. Otherwise b is just set to a.
0008 %
0009 % FORMAT   b = qarts_get_gformat( a )
0010 %
0011 % OUT   b          Variable value.
0012 % IN    a          Variable value or file name.
0013 
0014 % 2004-07-10   Created by Patrick Eriksson.
0015 
0016 
0017 function b = qarts_get_gformat( a )
0018 
0019 if ischar( a )
0020   b = gf_load( a );
0021 else
0022   b = a;
0023 end

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