Home > atmlab > datasets > datasets_config.m

datasets_config

PURPOSE ^

datasets_config Defines datasets and associated info

SYNOPSIS ^

function value = datasets_config(varargin)

DESCRIPTION ^

 datasets_config Defines datasets and associated info

 This m-file interacts with a <a href="matlab:help prstnt_struct">persistent structure</a>
 and defines a number of <a href="matlab:help SatDataset">SatDataset</a>s.

 Site-specific information for those datasets can be set by adding
 datasets_init to your path. This is executed when datasets_config is run
 for the first time.

 For example settings, see site-specific/kiruna/datasets_init.m. If adding
 a new dataset, it is recommended to also set defaults in the
 site-specific initialisation, so that others can use it directly and that
 it can serve as an example to people at other sites.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

DOWNLOAD ^

datasets_config.m

SOURCE CODE ^

0001 function value = datasets_config(varargin)
0002 
0003 % datasets_config Defines datasets and associated info
0004 %
0005 % This m-file interacts with a <a href="matlab:help prstnt_struct">persistent structure</a>
0006 % and defines a number of <a href="matlab:help SatDataset">SatDataset</a>s.
0007 %
0008 % Site-specific information for those datasets can be set by adding
0009 % datasets_init to your path. This is executed when datasets_config is run
0010 % for the first time.
0011 %
0012 % For example settings, see site-specific/kiruna/datasets_init.m. If adding
0013 % a new dataset, it is recommended to also set defaults in the
0014 % site-specific initialisation, so that others can use it directly and that
0015 % it can serve as an example to people at other sites.
0016 
0017 % Created by Gerrit
0018 % $Id: datasets_config.m 7564 2012-05-02 14:24:45Z gerrit $
0019 
0020 persistent A
0021 
0022 persistent initialised
0023 
0024 if isempty(initialised)
0025     addsite
0026     if exist('datasets_init', 'file')==2
0027         logtext(atmlab('OUT'), 'datasets_config first run, initialising...\n');
0028         initialised = true;
0029         datasets_init;
0030     else
0031         warning('atmlab:datasets:datasets_config', ...
0032                 'Cannot find datasets_init, not initialising');
0033     end
0034         
0035 end
0036 
0037 try
0038     [A,value] = prstnt_struct( A, @datasets_defs, varargin );
0039 catch ME
0040     switch (ME.identifier)
0041         % see if any aliases can be identified
0042         case 'atmlab:input:undefined'
0043             varargin{1} = replace_aliases(varargin{1});
0044             [A,value] = prstnt_struct( A, @datasets_defs, varargin);
0045         otherwise
0046             ME.rethrow();
0047     end
0048 end
0049 
0050 end
0051 
0052 
0053 function A = datasets_defs
0054 
0055 %% define locations of tools and meta-stuff
0056 
0057 A.sat2netcdf = nan;
0058 A.firstline_data = ''; % contains global default
0059 A.blacklist = nan;
0060 
0061 %% define datasets
0062 %
0063 % See also atmlab/site-specific/kiruna/datasets_init.m
0064 
0065 
0066 %% deprecated style!
0067 if atmlab('LEGACY_MODE')
0068     
0069     A.amsua_basedir = nan;
0070     A.amsua_subdir = nan;
0071     A.amsua_regexp = nan;
0072     A.amsua_filename = nan;
0073     
0074     A.amsub_basedir = nan;
0075     A.amsub_subdir = nan;
0076     A.amsub_regexp = nan;
0077     A.amsub_filename = nan;
0078     
0079     A.avhrr_basedir = nan;
0080     A.avhrr_subdir = nan;
0081     A.avhrr_regexp = nan;
0082     A.avhrr_filename = nan;
0083     
0084     
0085     A.cpr_basedir = nan;
0086     A.cpr_subdir = nan;
0087     A.cpr_regexp = nan;
0088     A.cpr_filename = nan;
0089     
0090     A.cloudsat_1B_CPR_basedir = nan;
0091     A.cloudsat_1B_CPR_subdir = nan;
0092     A.cloudsat_1B_CPR_regexp = nan;
0093     A.cloudsat_1B_CPR_filename = nan;
0094     
0095     A.cloudsat_2B_GEOPROF_basedir = nan;
0096     A.cloudsat_2B_GEOPROF_subdir = nan;
0097     A.cloudsat_2B_GEOPROF_regexp = nan;
0098     A.cloudsat_2B_GEOPROF_filename = nan;
0099     
0100     A.cloudsat_2B_CWC_RO_basedir = nan;
0101     A.cloudsat_2B_CWC_RO_subdir = nan;
0102     A.cloudsat_2B_CWC_RO_regexp = nan;
0103     A.cloudsat_2B_CWC_RO_filename = nan;
0104     
0105     A.cloudsat_2B_CWC_RVOD_basedir = nan;
0106     A.cloudsat_2B_CWC_RVOD_subdir = nan;
0107     A.cloudsat_2B_CWC_RVOD_regexp = nan;
0108     A.cloudsat_2B_CWC_RVOD_filename = nan;
0109     
0110     A.cloudsat_2C_PRECIP_COLUMN_basedir = nan;
0111     A.cloudsat_2C_PRECIP_COLUMN_subdir = nan;
0112     A.cloudsat_2C_PRECIP_COLUMN_regexp = nan;
0113     A.cloudsat_2C_PRECIP_COLUMN_filename = nan;
0114     
0115     A.cloudsat_ECMWF_AUX_basedir = nan;
0116     A.cloudsat_ECMWF_AUX_subdir = nan;
0117     A.cloudsat_ECMWF_AUX_regexp = nan;
0118     A.cloudsat_ECMWF_AUX_filename = nan;
0119     
0120     
0121     A.hirs_basedir = nan;
0122     A.hirs_subdir = nan;
0123     A.hirs_regexp = nan;
0124     A.hirs_filename = nan;
0125     
0126     A.hirscs_basedir = nan;
0127     A.hirscs_subdir = nan;
0128     A.hirscs_regexp = nan;
0129     A.hirscs_filename = nan;
0130     
0131     %old
0132     A.mhs_basedir = nan;
0133     A.mhs_subdir = nan;
0134     A.mhs_regexp = nan;
0135     A.mhs_filename = nan;
0136     
0137     
0138     % old
0139     A.mspps_basedir = nan;
0140     A.mspps_subdir = nan;
0141     A.mspps_regexp = nan;
0142     A.mspps_filename = nan;
0143     
0144     
0145     % OLD STYLE
0146     A.collocation_cpr_mhs_basedir = nan;
0147     A.collocation_cpr_mhs_subdir = nan;
0148     A.collocation_cpr_mhs_regexp = nan;
0149     A.collocation_cpr_mhs_filename = nan;
0150     
0151     A.collocation_cpr_mhs_hdf5_basedir = nan;
0152     A.collocation_cpr_mhs_hdf5_subdir = nan;
0153     A.collocation_cpr_mhs_hdf5_regexp = nan;
0154     A.collocation_cpr_mhs_hdf5_filename = nan;
0155     
0156     A.collocation_cpr_mhs_legacy_basedir = nan;
0157     A.collocation_cpr_mhs_legacy_subdir = nan;
0158     A.collocation_cpr_mhs_legacy_regexp = nan;
0159     A.collocation_cpr_mhs_legacy_filename = nan;
0160     
0161     A.collocation_cpr_mhs_data_legacy_basedir = nan;
0162     A.collocation_cpr_mhs_data_legacy_subdir = nan;
0163     A.collocation_cpr_mhs_data_legacy_regexp = nan;
0164     A.collocation_cpr_mhs_data_legacy_filename = nan;
0165     
0166     A.collocation_cpr_mhs_meandata_legacy_basedir = nan;
0167     A.collocation_cpr_mhs_meandata_legacy_subdir = nan;
0168     A.collocation_cpr_mhs_meandata_legacy_regexp = nan;
0169     A.collocation_cpr_mhs_meandata_legacy_filename = nan;
0170     
0171     A.collocation_mhs_mhs_basedir = nan;
0172     A.collocation_mhs_mhs_subdir = nan;
0173     A.collocation_mhs_mhs_regexp = nan;
0174     A.collocation_mhs_mhs_filename = nan;
0175     
0176     
0177     A.collocation_mhs_mhs_hdf5_basedir = nan;
0178     A.collocation_mhs_mhs_hdf5_subdir = nan;
0179     A.collocation_mhs_mhs_hdf5_regexp = nan;
0180     A.collocation_mhs_mhs_hdf5_filename = nan;
0181     
0182     A.collocation_mhs_mhs_legacy_basedir = nan;
0183     A.collocation_mhs_mhs_legacy_subdir = nan;
0184     A.collocation_mhs_mhs_legacy_regexp = nan;
0185     A.collocation_mhs_mhs_legacy_filename = nan;
0186     
0187     A.collocation_mhs_mhs_data_legacy_basedir = nan;
0188     A.collocation_mhs_mhs_data_legacy_subdir = nan;
0189     A.collocation_mhs_mhs_data_legacy_regexp = nan;
0190     A.collocation_mhs_mhs_data_legacy_filename = nan;
0191     
0192     A.collocation_cpr_avhrr_basedir = nan;
0193     A.collocation_cpr_avhrr_subdir = nan;
0194     A.collocation_cpr_avhrr_regexp = nan;
0195     A.collocation_cpr_avhrr_filename = nan;
0196     
0197     A.collocation_cpr_avhrr_hdf5_basedir = nan;
0198     A.collocation_cpr_avhrr_hdf5_subdir = nan;
0199     A.collocation_cpr_avhrr_hdf5_regexp = nan;
0200     A.collocation_cpr_avhrr_hdf5_filename = nan;
0201     
0202     
0203     A.collocation_cpr_avhrr_legacy_basedir = nan;
0204     A.collocation_cpr_avhrr_legacy_subdir = nan;
0205     A.collocation_cpr_avhrr_legacy_regexp = nan;
0206     A.collocation_cpr_avhrr_legacy_filename = nan;
0207     
0208     A.collocation_hirscs_mhs_basedir = nan;
0209     A.collocation_hirscs_mhs_subdir = nan;
0210     A.collocation_hirscs_mhs_regexp = nan;
0211     A.collocation_hirscs_mhs_filename = nan;
0212     
0213     A.collocation_hirscs_mhs_hdf5_basedir = nan;
0214     A.collocation_hirscs_mhs_hdf5_subdir = nan;
0215     A.collocation_hirscs_mhs_hdf5_regexp = nan;
0216     A.collocation_hirscs_mhs_hdf5_filename = nan;
0217     
0218     A.collocation_hirscs_mhs_legacy_basedir = nan;
0219     A.collocation_hirscs_mhs_legacy_subdir = nan;
0220     A.collocation_hirscs_mhs_legacy_regexp = nan;
0221     A.collocation_hirscs_mhs_legacy_filename = nan;
0222     
0223     A.collocation_hirscs_mhs_data_legacy_basedir = nan;
0224     A.collocation_hirscs_mhs_data_legacy_subdir = nan;
0225     A.collocation_hirscs_mhs_data_legacy_regexp = nan;
0226     A.collocation_hirscs_mhs_data_legacy_filename = nan;
0227     
0228     A.collocation_amsua_amsua_basedir = nan;
0229     A.collocation_amsua_amsua_subdir = nan;
0230     A.collocation_amsua_amsua_regexp = nan;
0231     A.collocation_amsua_amsua_filename = nan;
0232     
0233     A.collocation_hirs_hirs_basedir = nan;
0234     A.collocation_hirs_hirs_subdir = nan;
0235     A.collocation_hirs_hirs_regexp = nan;
0236     A.collocation_hirs_hirs_filename = nan;
0237     
0238     A.collocation_collocation_cpr_mhs_avhrr_basedir = nan;
0239     A.collocation_collocation_cpr_mhs_avhrr_subdir = nan;
0240     A.collocation_collocation_cpr_mhs_avhrr_regexp = nan;
0241     A.collocation_collocation_cpr_mhs_avhrr_filename = nan;
0242     
0243     A.collocation_collocation_cpr_mhs_avhrr_hdf5_basedir = nan;
0244     A.collocation_collocation_cpr_mhs_avhrr_hdf5_subdir = nan;
0245     A.collocation_collocation_cpr_mhs_avhrr_hdf5_regexp = nan;
0246     A.collocation_collocation_cpr_mhs_avhrr_hdf5_filename = nan;
0247     
0248     A.collocation_collocation_cpr_mhs_avhrr_legacy_basedir = nan;
0249     A.collocation_collocation_cpr_mhs_avhrr_legacy_subdir = nan;
0250     A.collocation_collocation_cpr_mhs_avhrr_legacy_regexp = nan;
0251     A.collocation_collocation_cpr_mhs_avhrr_legacy_filename = nan;
0252 end
0253 end

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