|
From: | Nicholas Jankowski |
Subject: | Re: using system() command for batch processing in octave |
Date: | Fri, 24 Mar 2017 12:35:56 -0400 |
Hello
I'm using Debian 8.7, Ocatve is running 64bit with compiled and tuned atlas, compiled arpack, suitesparse, qrupdate and osmesa, although print function doesn't work!
Finally I found a a way to get the thing running,
I did the loop and joined together the command from various strings
so finally what worked was following!
d=[]
u=[]
Befehl="gdal_translate -projwin "
Out= "/......./....../......./......../20150824_clipped"
Inpuntfile ="-of GTiff /home/............/................./indata.tif"
for i = 1:size(Lat)(2)
for j = 1:size(Long)(2)-1
ObenLinks = [Long(j), Lat(i)];
z=j+1;
u=i+1;
UntenRechts = [Long(z), Lat(u)];
--z;
--u;
OutLO=mat2str(ObenLinks,13);
OutLO=strrep(OutLO,"[","");
OutLO=strrep(OutLO,"]","");
OutRU=mat2str(UntenRechts,13);
OutRU=strrep(OutRU,"[","");
OutRU=strrep(OutRU,"]","");
Strii=num2str(i);
Strik=num2str(j);
ID=[Strii,"_",Strik];
d=[Befehl," ",OutLO," ", OutRU," ",Inpuntfile," ",Out,ID,".tif"];
system(d)
endfor
endfor
Is it really nececerry to do strrep twice?
when I put in a cell array
d= mat2cell[a]
d=[a]
strrep(d, {"]","["},""}
outcome:
{
[1,1] a]
[1,2][a
}
What did I do wrong there?
The issue with system is closed for me!
cheers chris
[Prev in Thread] | Current Thread | [Next in Thread] |