
clear 
clc

% HIM08_2019_272_22_MURI.sbatch
hhh_str=[0:10,19:23];


satname='HIM08';
year_str='2019';

     
for doy= 273:273
    
   
    
    fid=fopen(['sbatch_',satname,'_doy_',num2str(doy,'%03i'),'.sh'],'w');
    %fprintf(fid,'#!/bin/sh');
    %fprintf(fid,'# Author: Min Oo');

         for k=1:7 %16 
          
   
             
         sbatch_name=([satname,'_',year_str,'_',num2str(doy,'%03i'),'_',num2str(hhh_str(k),'%02i'),'_MURI.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');
