Home > atmlab > sensors > atovs > atovs_define_amsubl1c.m

atovs_define_amsubl1c

PURPOSE ^

ATOVS_DEFINE_AMSUBL1C Define a format of AMSU-B level 1c data record

SYNOPSIS ^

function [rec_format, rec_len, nchan, nfovs] = atovs_define_amsubl1c

DESCRIPTION ^

 ATOVS_DEFINE_AMSUBL1C   Define a format of AMSU-B level 1c data record

 This function defines a format of AMSU-B level 1c data record.

 FORMAT   [rec_format, rec_len, nchan, nfovs] = atovs_define_amsubl1c;

 OUT   rec_format   Format of a record. A structure with fields:
                    time, lat, lon, lza, laa, sza, saa, and tb.
       rec_len      Length of a record.
       nchan        Number of channels.
       nfovs        Number of instrument field of views.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

atovs_define_amsubl1c.m

SOURCE CODE ^

0001 % ATOVS_DEFINE_AMSUBL1C   Define a format of AMSU-B level 1c data record
0002 %
0003 % This function defines a format of AMSU-B level 1c data record.
0004 %
0005 % FORMAT   [rec_format, rec_len, nchan, nfovs] = atovs_define_amsubl1c;
0006 %
0007 % OUT   rec_format   Format of a record. A structure with fields:
0008 %                    time, lat, lon, lza, laa, sza, saa, and tb.
0009 %       rec_len      Length of a record.
0010 %       nchan        Number of channels.
0011 %       nfovs        Number of instrument field of views.
0012 
0013 % 2004-06-29   Created by Mashrab Kuvatov.
0014 % 2010-11-11   Adapted by Gerrit Holl (also return angles).
0015 
0016 function [rec_format, rec_len, nchan, nfovs] = atovs_define_amsubl1c
0017 
0018 % number of channels
0019 nchan = 5;
0020 
0021 % number of instrument field of views
0022 nfovs = 90;
0023 
0024 % length of a record
0025 rec_len = 1152;
0026 
0027 % define where each of these appear in the data records
0028 rec_format.time     = 4;
0029 rec_format.lat = 13 + 2 * (1:nfovs);
0030 rec_format.lon = 14 + 2 * (1:nfovs);
0031 
0032 % NWPSAP-MF-UD-003_Formats.pdf page 106, field amb1c_angles
0033 
0034 rec_format.lza = 195 + 4 * (0:(nfovs-1));
0035 rec_format.laa = 196 + 4 * (0:(nfovs-1));
0036 rec_format.sza = 197 + 4 * (0:(nfovs-1));
0037 rec_format.saa = 198 + 4 * (0:(nfovs-1));
0038 
0039 for ichan = 1 : nchan
0040   rec_format.tb( ichan, : ) = 552 + ichan + nchan * (1:nfovs);
0041 end
0042 
0043 return
0044 end

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