Home > atmlab > sensors > atovs > atovs_get_l1c.m

atovs_get_l1c

PURPOSE ^

ATOVS_GET_L1C Converts a file from level 1B to level 1C and reads it.

SYNOPSIS ^

function data = atovs_get_l1c( filename )

DESCRIPTION ^

 ATOVS_GET_L1C   Converts a file from level 1B to level 1C and reads it.

 This function reads ATOVS level 1c data.

 FORMAT   data = atovs_get_l1c( filename );

 IN    file_name   AMSU l1b filename.
 OUT   data        Data structure. See atovs_read_data for format
                   description.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

atovs_get_l1c.m

SOURCE CODE ^

0001 % ATOVS_GET_L1C   Converts a file from level 1B to level 1C and reads it.
0002 %
0003 % This function reads ATOVS level 1c data.
0004 %
0005 % FORMAT   data = atovs_get_l1c( filename );
0006 %
0007 % IN    file_name   AMSU l1b filename.
0008 % OUT   data        Data structure. See atovs_read_data for format
0009 %                   description.
0010 
0011 % 2009-11-26   Created by Oliver Lemke.
0012 
0013 function data = atovs_get_l1c( filename )
0014 
0015 tf = create_tmpfolder();
0016 cleanupObject = onCleanup(@() delete_tmpfolder(tf));
0017 
0018 atovs_file = [ tf '/atovs.l1c' ];
0019 try
0020     cmd = ['zamsu2l1c.sh "' filename '" "' atovs_file '"'];
0021     [status,err] = system(cmd);
0022     if status == 6
0023         error('atmlab:atovs_get_l1c:zamsu2l1c','Killed')
0024     end
0025     if status ~= 0
0026         error('atmlab:atovs_get_l1c:zamsu2l1c', err);
0027     end
0028     data = atovs_read_data( atovs_file );
0029 catch ME
0030     ME2 = MException('atmlab:atovs_get_l1c:zamsu2l1c', ME.message);
0031     ME2 = ME2.addCause(ME);
0032     ME2.throw();
0033 end

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