Home > atmlab > site-specific > obspm > datasets_init.m

datasets_init

PURPOSE ^

DATASETS_INIT list paths and regexp for datasets in Paris Observatory

SYNOPSIS ^

function datasets_init

DESCRIPTION ^

 DATASETS_INIT list paths and regexp for datasets in Paris Observatory

 PURPOSE: See datasets_config

 Created by Carlos Jimenez
 $Id: datasets_init.m 2011-09-23 $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

datasets_init.m

SOURCE CODE ^

0001 function datasets_init
0002 % DATASETS_INIT list paths and regexp for datasets in Paris Observatory
0003 %
0004 % PURPOSE: See datasets_config
0005 %
0006 % Created by Carlos Jimenez
0007 % $Id: datasets_init.m 2011-09-23 $
0008 
0009 datasets_config('sat2netcdf', '/storage4/home/gerrit/downloads/sat2netcdf-0.4.jar');
0010 
0011 % to find a datafile: search in basedir/subdir, first try filename with string
0012 % substitution, otherwise list all and try to match regexp.
0013 
0014 % to list all granules: listdir basedir/subdir, match regexp, limit to
0015 % matching period
0016 
0017 % variables: YEAR, YEAR02, MONTH, DAY, DOY, SAT, SAT1, SAT2
0018 % regexp-output: year, doy, day, hour, minute , end. (end if the file ending)
0019 
0020 
0021 %% MAIN DATABASE DIR
0022 whereami = '~jimenez/Work/Data/RTStudyData/Collocations';
0023 
0024 %% CLOUDSAT DATA SETS
0025 
0026 datasets_config('cpr_subdir', '$YEAR4/$DOY');
0027 datasets_config('cpr_regexp', '(?<year>\d{4})(?<doy>\d{3})(?<hour>\d{2})(?<minute>\d{2})\d{2}_.+(?<end>.{8}$)');
0028 
0029 datasets_config('cloudsat_2B_GEOPROF_basedir', [ whereami,'/cloudsat/2B-GEOPROF.R04/'] );
0030 datasets_config('cloudsat_2B_GEOPROF_subdir', datasets_config('cpr_subdir'));
0031 datasets_config('cloudsat_2B_GEOPROF_regexp', datasets_config('cpr_regexp'));
0032 
0033 
0034 datasets_config('cloudsat_2B_CWC_RO_basedir', [ whereami,'/cloudsat/2B-CWC-RO.R04/'] );
0035 datasets_config('cloudsat_2B_CWC_RO_subdir', datasets_config('cpr_subdir'));
0036 datasets_config('cloudsat_2B_CWC_RO_regexp', datasets_config('cpr_regexp'));
0037 
0038 
0039 datasets_config('cloudsat_ECMWF_AUX_basedir', [ whereami,'/cloudsat/ECMWF-AUX.R04/'] );
0040 datasets_config('cloudsat_ECMWF_AUX_subdir', datasets_config('cpr_subdir'));
0041 datasets_config('cloudsat_ECMWF_AUX_regexp', datasets_config('cpr_regexp'));
0042 
0043 
0044 datasets_config('cloudsat_2C_PRECIP_COLUMN_basedir', [ whereami,'/cloudsat/2C-PRECIP-COLUMN.R04/'] );
0045 datasets_config('cloudsat_2C_PRECIP_COLUMN_subdir', datasets_config('cpr_subdir'));
0046 datasets_config('cloudsat_2C_PRECIP_COLUMN_regexp', datasets_config('cpr_regexp'));
0047 
0048 
0049 %% COLLOCATION DATA SETS
0050 
0051 datasets_config('collocation_cpr_mhs_basedir', [ whereami,'/collocations_cloudsat_poes']);
0052 datasets_config('collocation_cpr_mhs_subdir', '$YEAR4/$MONTH/$DAY');
0053 datasets_config('collocation_cpr_mhs_filename', 'collocations_$SAT.nc.gz');
0054 datasets_config('firstline_data', [ whereami, '/granules_firstline/firstline_$SAT_$SENSOR.mat']);
0055 
0056 
0057

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