% 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. % 2004-06-29 Created by Mashrab Kuvatov. % 2010-11-11 Adapted by Gerrit Holl (also return angles). function [rec_format, rec_len, nchan, nfovs] = atovs_define_amsubl1c % number of channels nchan = 5; % number of instrument field of views nfovs = 90; % length of a record rec_len = 1152; % define where each of these appear in the data records rec_format.time = 4; rec_format.lat = 13 + 2 * (1:nfovs); rec_format.lon = 14 + 2 * (1:nfovs); % NWPSAP-MF-UD-003_Formats.pdf page 106, field amb1c_angles rec_format.lza = 195 + 4 * (0:(nfovs-1)); rec_format.laa = 196 + 4 * (0:(nfovs-1)); rec_format.sza = 197 + 4 * (0:(nfovs-1)); rec_format.saa = 198 + 4 * (0:(nfovs-1)); for ichan = 1 : nchan rec_format.tb( ichan, : ) = 552 + ichan + nchan * (1:nfovs); end return end