Home > atmlab > sensors > atovs > atovs_define_hirsl1c.m

atovs_define_hirsl1c

PURPOSE ^

ATOVS_DEFINE_HIRSL1C Define a format of HIRS level 1c data record

SYNOPSIS ^

function [rec_format, rec_len, nchan, nfovs] = atovs_define_hirsl1c;

DESCRIPTION ^

 ATOVS_DEFINE_HIRSL1C   Define a format of HIRS level 1c data record

 This function defines a format of HIRS level 1c data record.

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

 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_hirsl1c.m

SOURCE CODE ^

0001 % ATOVS_DEFINE_HIRSL1C   Define a format of HIRS level 1c data record
0002 %
0003 % This function defines a format of HIRS level 1c data record.
0004 %
0005 % FORMAT   [rec_format, rec_len, nchan, nfovs] = atovs_define_hirsl1c;
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 
0017 function [rec_format, rec_len, nchan, nfovs] = atovs_define_hirsl1c;
0018 
0019 % number of channels
0020 nchan = 20;
0021 
0022 % number of instrument field of views
0023 nfovs = 56;
0024 
0025 % length of a record
0026 rec_len = 1664;
0027 
0028 % define where each of these appear in the data records
0029 rec_format.time     = 4;
0030 rec_format.lat = 29 + 2 * (1:nfovs);
0031 rec_format.lon = 30 + 2 * (1:nfovs);
0032 rec_format.lza = 143 + 4 * (0:nfovs-1);
0033 rec_format.laa = 144 + 4 * (0:nfovs-1);
0034 rec_format.sza = 145 + 4 * (0:nfovs-1);
0035 rec_format.saa = 146 + 4 * (0:nfovs-1);
0036 
0037 for ichan = 1 : nchan
0038   rec_format.tb( ichan, : ) = 349 + ichan + nchan * [1:nfovs];
0039 end
0040 
0041 return

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