
clear 
clc

% GOES-16_ABI_2020_175_22_ABI.sbatch
hhh_str=[8:23];


satname='GOES-16_ABI';
year_str='2019';

     
for doy= 348:348
    
   
    
    fid=fopen(['sbatch_',satname,'_doy_',num2str(doy,'%03i'),'.sh'],'w');
    %fprintf(fid,'#!/bin/sh');
    %fprintf(fid,'# Author: Min Oo');
    
         for k=1:16 
          
   
             
         sbatch_name=([satname,'_',year_str,'_',num2str(doy,'%03i'),'_',num2str(hhh_str(k),'%02i'),'_ABI.sbatch'])
	 
         fprintf(fid,'sbatch ');
         fprintf(fid,'%s',sbatch_name);
         fprintf(fid,'\n');

         end
	 
	 fclose(fid);
    
    
end

    
    % fid=fopen(['IB',num2str(Band,'%01i'),'M',num2str(model,'%02i'),'WS',num2str(windspeed(ws),'%02i'),'A',num2str(aod,'%02i'),...
    %                   'RA',num2str(raz,'%02i'),'.txt'],'w');
