python - Only one line of this batch file will run -


gdal_merge -o c:\test\rastermerge\p023r027\p023r027_7t20010623_z16_merged.tif -seperate -q -v c:\test\rastermerge\p023r027\p023r027_7t20010623_z16_merged.tif c:\test\rastermerge\p023r027\p023r027_7t20010623_z16_nn10.tif c:\test\rastermerge\p023r027\p023r027_7t20010623_z16_nn20.tif  gdal_merge -o c:\test\rastermerge\p024r027\p024r027_7t19990828_z16_merged.tif -seperate -q -v c:\test\rastermerge\p024r027\p024r027_7t19990828_z16_nn10.tif c:\test\rastermerge\p024r027\p024r027_7t19990828_z16_nn20.tif gdal_merge -o c:\test\rastermerge\p024r027\p023r026\p023r026_7t20001010_z16_merged.tif -seperate -q -v c:\test\rastermerge\p024r027\p023r026\p023r026_7t20001010_z16_nn10.tif c:\test\rastermerge\p024r027\p023r026\p023r026_7t20001010_z16_nn20.tif  gdal_merge -o c:\test\rastermerge\p024r027\p024r026\p024r026_7t20000729_z16_merged.tif -seperate -q -v c:\test\rastermerge\p024r027\p024r026\p024r026_7t20000729_z16_nn10.tif c:\test\rastermerge\p024r027\p024r026\p024r026_7t20000729_z16_nn20.tif  gdal_merge -o c:\test\rastermerge\p024r027\p023r026\p023r028\p023r028_7t20000519_z16_merged.tif -seperate -q -v c:\test\rastermerge\p024r027\p023r026\p023r028\p023r028_7t20000519_z16_nn10.tif   c:\test\rastermerge\p024r027\p023r026\p023r028\p023r028_7t20000519_z16_nn20.tif  

note: i've removed other 5 file names each command make bit more readable. i'm working on python tool construct batch file me when attempt run .bat first command running returning console. i'm running in fwtools shell. i've opened batch file in hex editor , searched newlines , return characters don't see out of ordinary python seems writing correctly.

is gdal_merge batch file itself?

in case need enter call before each line prompt batch file return on exit called batch file, otherwise exit call in new batch file treated real exit shall exit completely:

call gdal_merge -o c:\test\rastermerge\p023r027\p023r027_7t20010623_z16_merged.tif -seperate -q -v c:\test\rastermerge\p023r027\p023r027_7t20010623_z16_merged.tif c:\test\rastermerge\p023r027\p023r027_7t20010623_z16_nn10.tif c:\test\rastermerge\p023r027\p023r027_7t20010623_z16_nn20.tif  call gdal_merge -o c:\test\rastermerge\p024r027\p024r027_7t19990828_z16_merged.tif -seperate -q -v c:\test\rastermerge\p024r027\p024r027_7t19990828_z16_nn10.tif c:\test\rastermerge\p024r027\p024r027_7t19990828_z16_nn20.tif ... 

(it possible python run though batch file, same applies, possibly can use call python gdal_merge.py -o ...)

if not batch file try using start /b instead of call fork new background task. if need these called sequentially rather in parallel use start /b /wait.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -