<p>please post the python you have already written. it is not sufficient to just 'print', you need to pass the statement to the os for execution. look at doc for 'os.popen()'<br>
--</p>
<p><blockquote type="cite">On Feb 25, 2010 6:39 PM, "nlneilson" <<a href="mailto:neilnln@hotmail.com">neilnln@hotmail.com</a>> wrote:<br><br><br>
My email shows there were two response Matt Wilkie, Roger André<br>
But this thread is not updated, maybe I am doing something wrong.<br>
<br>
What I am trying to do is batch process 100 + files:<br>
<br>
pct2rgb "Alaska\Dutch Harbor 42 North.tif" Work\AK\DutchN.tif<br>
gdal_translate -srcwin 0 360 10950 3700 "Alaska\Dutch Harbor 42 South.tif"<br>
Work\Ak\DutchSc.tif<br>
pct2rgb Work\Ak\DutchSc.tif Work\AK\DutchS.tif<br>
pct2rgb "Alaska\Fairbanks 85 North.tif" Work\AK\FairbN.tif<br>
<br>
Some need to be clipped with gdal_translate, this set has about 6, another<br>
set has about 75.<br>
Then pct2rgb<br>
<br>
I did this several times before one at a time.<br>
<br>
I have a Python app and all of the lines print correctly. Each of the lines<br>
pasted at the fwtools prompt work OK. When I run the .py app at the prompt<br>
the lines print correctly but it doesn't do anything.<br>
<br>
I make a .bat file with these lines and it will run the first line if it's<br>
pct2rgb, it takes about 20 sec. If the first line is gdal_translate, which<br>
is very fast, then the following pct2rgb line will run. That's all, no more<br>
lines are processed.<br>
<br>
I thought it may be easier to try a time delay in the .py app.<br>
<br>
It may be something basic I am doing wrong with the .py or .bat.<br>
<p><font color="#500050"><br><br><br>nlneilson wrote:<br>> <br>> I did a search for "batch" but did not find a direct answer regarding<br>> Pyt...</font></p>View this message in context: <a href="http://old.nabble.com/Python-%22batch%22-processing-tp27714398p27714563.html" target="_blank">http://old.nabble.com/Python-%22batch%22-processing-tp27714398p27714563.html</a><br>
<p><font color="#500050">Sent from the FWTools mailing list archive at Nabble.com.<br><br>_________________________________________...</font></p></blockquote></p>