Home > atmlab > atmlab > atmlab_init.m

atmlab_init

PURPOSE ^

ATMLAB_INIT Initializes the Atmlab package

SYNOPSIS ^

function atmlab_init

DESCRIPTION ^

 ATMLAB_INIT   Initializes the Atmlab package

    See CONFIGURE for standard usage of this function.

    The following operations are performed:

     1. Atmlab folders are added to the search path. The folders are put
        at the start of the search path (prepended).

     2. If *atmlab_conf* is found, it is called. Otherwise default atmlab
        settings are created. 
     
     3. Default aliases are set (see *alias*).

 FORMAT   atmlab_init

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

atmlab_init.m

SOURCE CODE ^

0001 % ATMLAB_INIT   Initializes the Atmlab package
0002 %
0003 %    See CONFIGURE for standard usage of this function.
0004 %
0005 %    The following operations are performed:
0006 %
0007 %     1. Atmlab folders are added to the search path. The folders are put
0008 %        at the start of the search path (prepended).
0009 %
0010 %     2. If *atmlab_conf* is found, it is called. Otherwise default atmlab
0011 %        settings are created.
0012 %
0013 %     3. Default aliases are set (see *alias*).
0014 %
0015 % FORMAT   atmlab_init
0016 
0017 % 2002-12-09   Created by Patrick Eriksson.
0018 
0019 
0020 function atmlab_init
0021 
0022 
0023 %= Determine path to Atmlab top folder
0024 %
0025 toppath = fileparts( fileparts( which( 'atmlab_init' ) ) );
0026 
0027 
0028 
0029 %= Add folders to the search path
0030 %
0031 % If you create a new sub-folder, it should be added here.
0032 % Please use reversed alphabetical order.
0033 %
0034 addpath( fullfile( toppath, 'time' ) );
0035 addpath( fullfile( toppath, 'tests' ) );
0036 addpath( fullfile( toppath, 'sensors', 'atovs' ) ); 
0037 addpath( fullfile( toppath, 'sensors' ) ); 
0038 addpath( fullfile( toppath, 'scattering' ) ); 
0039 addpath( fullfile( toppath, 'retrieval','qpack2' ) ); 
0040 addpath( fullfile( toppath, 'retrieval' ) ); 
0041 addpath( fullfile( toppath, 'randomize','iaaft' ) ); 
0042 addpath( fullfile( toppath, 'randomize' ) ); 
0043 addpath( fullfile( toppath, 'physics' ) );
0044 addpath( fullfile( toppath, 'lineshape', 'faddeeva' ) ); 
0045 addpath( fullfile( toppath, 'mie' ) ); 
0046 addpath( fullfile( toppath, 'math' ) ); 
0047 addpath( fullfile( toppath, 'handy' ) ); 
0048 addpath( fullfile( toppath, 'h2o', 'parametrisations' ) ); 
0049 addpath( fullfile( toppath, 'h2o', 'thermodynamics' ) ); 
0050 addpath( fullfile( toppath, 'gridcreation', 'uniformsphere' ) ); 
0051 addpath( fullfile( toppath, 'gridcreation', 'annealing' ) ); 
0052 addpath( fullfile( toppath, 'gridcreation' ) ); 
0053 addpath( fullfile( toppath, 'graphs' ) );
0054 addpath( fullfile( toppath, 'gformat' ) );
0055 addpath( fullfile( toppath, 'geoplots', 'gmt') );
0056 addpath( fullfile( toppath, 'geoplots' ) );
0057 addpath( fullfile( toppath, 'geophysics' ) );
0058 addpath( fullfile( toppath, 'geographical' ) );
0059 addpath( fullfile( toppath, 'geodetic' ) );
0060 addpath( fullfile( toppath, 'forwardmodel' ) );
0061 addpath( fullfile( toppath, 'files' ) ); 
0062 addpath( fullfile( toppath, 'demos' ) );
0063 addpath( fullfile( toppath, 'datasets' ) ); 
0064 addpath( fullfile( toppath, 'circular' ) ); 
0065 addpath( fullfile( toppath, 'covmat' ) );
0066 addpath( fullfile( toppath, 'collocations' ) ); 
0067 addpath( fullfile( toppath, 'atmlab' ) ); 
0068 addpath( fullfile( toppath, 'arts', 'netcdf' ) ); 
0069 %addpath( fullfile( toppath, 'arts', 'scenegen', 'amsu' ) );
0070 %addpath( fullfile( toppath, 'arts', 'scenegen' ) );
0071 addpath( fullfile( toppath, 'arts', 'xml' ) ); 
0072 addpath( fullfile( toppath, 'arts_usage' ) ); 
0073 addpath( fullfile( toppath, 'arts' ) ); 
0074 %
0075 if nversion < 7.04
0076   addpath( fullfile( toppath, 'V7-4' ) ); 
0077 end
0078 
0079 
0080 
0081 %=== Read Atmlab settings
0082 %
0083 if exist( 'atmlab_conf' ) == 2
0084   atmlab_conf;
0085 else
0086   atmlab('defaults');  
0087 end
0088 
0089 if atmlab('LEGACY_MODE')
0090     addpath( fullfile( toppath, 'deprecated' ) ); 
0091 end
0092 
0093 %=== Define some aliases
0094 %
0095 alias('amsub', 'mhs');

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