📄 testrun
字号:
>> >> dat = floor(now);
>> [yesday,yyyy,mm,dd] = datmil(dat-1)
yesday =2000/03/30yyyy =2000mm =03dd =30>>
>> %create the new directory
>> %(might need to add path for data)
>> %eval(['cd usr2/users/jcote/NOPP'])
>> >> thePath = ['n' yyyy(3:4) mm dd]
thePath =n000330>> >> %don't run check for now, only will do for yesterday>> while 0disp('running path check')if isequal(exist(thePath),7)
break
else
%check to make sure we haven't skipped a day
[befday,yyys,ms,ds] = datmil(dat-2);
oldPath = ['n' yyys(3:4) ms ds];
if isequal(exist(oldPath),7)
break
else
thePath = oldPath;
today = yesday;
end
%makedir(thePath)
end
end>>
>> theFullPath = ['/usr2/users/jcote/NOPP/' thePath]
theFullPath =/usr2/users/jcote/NOPP/n000330>> eval(['addpath ' theFullPath])
>> eval(['cd ' theFullPath])>> disp(pwd)/usr2/users/jcote/NOPP/n000330>> >>
>> %get the data and convert to binary
>> lct_get(yesday)
## date: 2000/03/30 ## commands: GB_commands.html ## payload: GB_payload.html ## time: GB_EIC_time.html ## rxqual: GB_rxqual.htmlWarning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 67Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/http.m at line 36 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 69result = 1Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 90Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/http.m at line 36 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 92result = 1Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 115Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/http.m at line 36 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 117result = 1Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 140Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/http.m at line 36 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 142result = 1>> lct_conv
## Payload File:GB_payload.html ## Quality File:GB_rxqual.html ## RDI File:GB_payload.rdi ## Number of ADCP Records: 9 ## Number of Quality Codes: 9>>
>> %these are the default (built - in) names
>> %that are used when the data is downloaded
>> theCommandsFile = 'GB_commands.html';
>> thePayloadFile = 'GB_payload.html';
>> theTimeFile = 'GB_EIC_time.html';
>> theQualityFile = 'GB_rxqual.html';
>> theRDIFile = 'GB_payload.rdi';
>>
>> %copy the file to a better name that can be carried on
>> theName = [thePath '.rdi'];
>> theFileName = fullfile(theFullPath,theName)
theFileName =/usr2/users/jcote/NOPP/n000330/n000330.rdi>> eval(['!cp -p ' theRDIFile ' ' theFileName])
>>
>> %now run the processing in 2 batches
>> %need to change or regenerate the batch files for the corresponding date
>> bfile = [thePath '.bch']
bfile =n000330.bch>> bgfile = [thePath 'G.bch']
bgfile =n000330G.bch>> %eval(['batch ' bfile ])
>> %eval(['batch ' bgfile])
>>
>> quityesday =2000/04/10yyyy =2000mm =04dd =10thePath =n000410theFullPath =/usr2/users/jcote/NOPP/n000410Warning: Directory access failure: /usr2/users/jcote/NOPP/n000410.> In /usr4/matlab5/toolbox/matlab/general/path.m at line 117 In /usr4/matlab5/toolbox/matlab/general/addpath.m at line 67 In /usr2/users/jcote/matlab/RDI_tools/run_lct.m at line 49Warning: 1 MATLAB path warning occurred.> In /usr4/matlab5/toolbox/matlab/general/path.m at line 117 In /usr4/matlab5/toolbox/matlab/general/addpath.m at line 67 In /usr2/users/jcote/matlab/RDI_tools/run_lct.m at line 49??? Error using ==> char/cdName is nonexistent or not a directoryError in ==> /usr2/users/jcote/matlab/RDI_tools/run_lct.mOn line 50 ==> eval(['cd ' theFullPath])>> lsans =create_batchlct_conv.matn000321n000329n000330n000409run_NOPPstartup.mtestrunwget.status>> datmil(floor(now))ans =2000/04/11>> diary offyesday =2000/05/01yyyy =2000mm =05dd =01thePath =n000501theFullPath =/usr2/users/jcote/NOPP/n000501Warning: Directory access failure: /usr2/users/jcote/NOPP/n000501.> In /usr4/matlab5/toolbox/matlab/general/path.m at line 117 In /usr4/matlab5/toolbox/matlab/general/addpath.m at line 67 In /usr2/users/jcote/matlab/RDI_tools/run_lct.m at line 49Warning: 1 MATLAB path warning occurred.> In /usr4/matlab5/toolbox/matlab/general/path.m at line 117 In /usr4/matlab5/toolbox/matlab/general/addpath.m at line 67 In /usr2/users/jcote/matlab/RDI_tools/run_lct.m at line 49??? Error using ==> char/cdName is nonexistent or not a directoryError in ==> /usr2/users/jcote/matlab/RDI_tools/run_lct.mOn line 50 ==> eval(['cd ' theFullPath])>> lsans =create_batchlct_conv.matn000321n000329n000330n000409n00051run_NOPPstartup.mtestrunwget.status>> pwdans =/usr2/users/jcote/NOPP>> cd /usr2/users/jcote/NOPP/n000501??? Error using ==> char/cdName is nonexistent or not a directory>> cd n000501??? Error using ==> char/cdName is nonexistent or not a directory>> pwdans =/usr2/users/jcote/NOPP>> l??? Undefined function or variable 'l'.>> lsans =create_batchlct_conv.matn000321n000329n000330n000409n00051run_NOPPstartup.mtestrunwget.status>> pwdans =/usr2/users/jcote/NOPP>> exityesday =2000/05/01yyyy =2000mm =05dd =01thePath =n000501theFullPath =/usr2/users/jcote/NOPP/n000501/usr2/users/jcote/NOPP/n000501 ## date: 2000/05/01 ## commands: GB_commands.html ## payload: GB_payload.html ## time: GB_EIC_time.html ## rxqual: GB_rxqual.htmlWarning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 67 In /usr2/users/jcote/matlab/RDI_tools/run_lct.m at line 55Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/http.m at line 36 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 69 In /usr2/users/jcote/matlab/RDI_tools/run_lct.m at line 55result = 1Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 90 In /usr2/users/jcote/matlab/RDI_tools/run_lct.m at line 55Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/http.m at line 36 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 92 In /usr2/users/jcote/matlab/RDI_tools/run_lct.m at line 55result = 1Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 115 In /usr2/users/jcote/matlab/RDI_tools/run_lct.m at line 55Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/http.m at line 36 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 117 In /usr2/users/jcote/matlab/RDI_tools/run_lct.m at line 55result = 1Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 140 In /usr2/users/jcote/matlab/RDI_tools/run_lct.m at line 55Warning: File not found or permission denied.> In /usr4/matlab5/toolbox/matlab/general/@char/delete.m at line 33 In /usr2/users/jcote/matlab/toolbox/lct/http.m at line 36 In /usr2/users/jcote/matlab/toolbox/lct/lct_get.m at line 142 In /usr2/users/jcote/matlab/RDI_tools/run_lct.m at line 55result = 1 ## Payload File:GB_payload.html ## Quality File:GB_rxqual.html ## RDI File:GB_payload.rdi ## Number of ADCP Records: 24 ## Number of Quality Codes: 24theFileName =/usr2/users/jcote/NOPP/n000501/n000501.rdibfile =n000501.bchbgfile =n000501G.bch ## Unable to open batch file "n000501.bch" ## Unable to open batch file "n000501G.bch"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -