Home > atmlab > datasets > datasets_constants.m

datasets_constants

PURPOSE ^

datasets_constants Defines (pseudo)-constants for datasets

SYNOPSIS ^

function value = datasets_constants(c)

DESCRIPTION ^

 datasets_constants Defines (pseudo)-constants for datasets

 This m-file defines values required by functions in the datasets subsystem.
 It differs from datasets_config in the manner that the values here should
 not normally be changed. If called without arguments, returns
 the entire structure containing all properties and values.

 FORMAT

   value = datasets_constants(c)

 IN

   c   string      the property asked for (optional)

 OUT

   v   (any)       the value of property c or the entire struct

 $Id: datasets_constants.m 8251 2013-03-01 14:04:24Z gerrit $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

datasets_constants.m

SOURCE CODE ^

0001 function value = datasets_constants(c)
0002 
0003 % datasets_constants Defines (pseudo)-constants for datasets
0004 %
0005 % This m-file defines values required by functions in the datasets subsystem.
0006 % It differs from datasets_config in the manner that the values here should
0007 % not normally be changed. If called without arguments, returns
0008 % the entire structure containing all properties and values.
0009 %
0010 % FORMAT
0011 %
0012 %   value = datasets_constants(c)
0013 %
0014 % IN
0015 %
0016 %   c   string      the property asked for (optional)
0017 %
0018 % OUT
0019 %
0020 %   v   (any)       the value of property c or the entire struct
0021 %
0022 % $Id: datasets_constants.m 8251 2013-03-01 14:04:24Z gerrit $
0023 
0024 
0025 %% all POES satellites with MHS/AMSUB
0026 
0027 A.POES_satellite_names = {'noaa15', 'noaa16', 'noaa17', 'noaa18', 'noaa19', 'metopa'};
0028 A.POES_satellite_numbers = [15 16 17 18 19 29499]; % for metopa, use NORAD number
0029 A.POES_satellites_amsub = {'noaa15', 'noaa16', 'noaa17', 'N15', 'N16', 'N17'};
0030 A.POES_satellites_mhs = {'noaa18', 'noaa19', 'metopa', 'N18', 'N19', 'MA'};
0031 
0032 %% all sats with SSMT2
0033 
0034 A.DMSP_satellite_names = {'F11', 'F12', 'F14', 'F15'};
0035 
0036 %% define what reading function to use for what sensor
0037 
0038 A.read_cpr = @satreaders.cpr_2BCWCRO;
0039 A.read_mhs = @satreaders.poes_radiometer;
0040 A.read_amsua = @satreaders.poes_radiometer;
0041 A.read_amsub = @satreaders.poes_radiometer;
0042 A.read_hirs = @satreaders.poes_radiometer;
0043 A.read_avhrr = @satreaders.avhrr;
0044 A.read_hirscs = @satreaders.hirscs;
0045 A.read_collocation_cpr_poes = @satreaders.collocation_cpr_mhs;
0046 A.read_collocation_cpr_mhs = @satreaders.collocation_cpr_mhs;
0047 
0048 %% define approximate granule durations
0049 
0050 % by sensor rather than by satellite, because not all sensors are saved in
0051 % the same chunks; in particular, stored collocations belong to a certain
0052 % satellite (pair), but are stored per day
0053 
0054 A.granule_duration_mhs = 6130; % seconds; upper estimate
0055 A.granule_duration_amsua = 6130;
0056 A.granule_duration_amsub = 6130;
0057 A.granule_duration_hirs = 6130;
0058 A.granule_duration_avhrr = 6130; 
0059 
0060 A.granule_duration_cpr = 5932; % seconds
0061 
0062 A.granule_duration_hirscs = 86400; % one granule per da
0063 A.granule_duration_collocation_cpr_poes = 86400;
0064 A.granule_duration_collocation_cpr_mhs = 86400;
0065 
0066 %% define viewing angles
0067 
0068 % source:
0069 % NOAA KLM User's Guide, Appendix J
0070 % http://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/klm/html/j/app-j.htm
0071 
0072 A.angles_avhrr_gac = linspace(-55.37, 55.37, 409);
0073 A.angles_mhs = linspace(-49.4444, 49.4444, 90);
0074 A.angles_amsub = linspace(-48.95, 48.95, 90);
0075 
0076 %% define flags to pass to sat2netcdf
0077 
0078 A.sat2netcdf_flags = '-nogui -latlon -temperature -quality -calibration -metadata';
0079 
0080 if exist('c', 'var')
0081     value = A.(c);
0082 else
0083     value = A;
0084 end
0085 
0086

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