Changeset 219
- Timestamp:
- Mar 9, 2011, 10:52:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r192 r219 2253 2253 fprintf(fid,super_cmd'); 2254 2254 fclose(fid); 2255 % if(isunix) 2256 %system(['chmod +x ' filename_superbat]) 2255 if(isunix) 2256 system(['chmod +x ' filename_superbat]) 2257 end 2257 2258 system([filename_superbat ' &'])% execute main commmand 2258 2259 % else … … 4082 4083 % ncName=fullfile(Rootbat,[ Filebat '.nc']); 4083 4084 cmd_CIV1=[sparam.Civ1Bin ' -f ' filename '.cmx >' filename '.log' ]; % redirect standard output to the log file, the result file is named [filename '.nc'] by CIVx 4084 cmd_CIV1=[cmd_CIV1 '\n' 'mv ' filename '.log' ' ' filename '.civ1.log' '\n' 'chmod g+w ' filename '. nc'];%rename .log as .civ1.log and set the netcdf result file for group user writting4085 cmd_CIV1=[cmd_CIV1 '\n' 'mv ' filename '.log' ' ' filename '.civ1.log' '\n' 'chmod g+w ' filename '.civ1.log' '\n' 'chmod g+w ' filename '.nc'];%rename .log as .civ1.log and set the netcdf result file for group user writting 4085 4086 cmd_CIV1=[cmd_CIV1 '\n' 'mv ' filename '.cmx' ' ' filename '.civ1.cmx' '\n'];%rename .cmx as .civ1.cmx 4086 4087 else %Windows system … … 4640 4641 option_str='not created'; 4641 4642 else 4642 datfile=dir(civ_files{ifile}) 4643 datfile=dir(civ_files{ifile}); 4643 4644 if isfield(datfile,'datenum') 4644 4645 datnum(ifile)=datfile.datenum;%only available in recent matlab versions … … 4675 4676 Tabchar{ifile,1}=[fullfile([subdir extdir],filename) ext '...' option_str]; 4676 4677 end 4677 datnum=datnum( find(datnum));%keep the non zero values corresponding to existing files4678 datnum=datnum(datnum~=0);%keep the non zero values corresponding to existing files 4678 4679 if isempty(datnum) 4679 4680 if testrecent … … 4683 4684 end 4684 4685 else 4685 datnum=datnum( find(datnum));%keep the non zero values corresponding to existing files4686 datnum=datnum(datnum~=0);%keep the non zero values corresponding to existing files 4686 4687 [first,ind]=min(datnum); 4687 4688 [last,indlast]=max(datnum);
Note: See TracChangeset
for help on using the changeset viewer.