Advertisement
Guest User

Untitled

a guest
Jun 15th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.74 KB | None | 0 0
  1. #!/bin/bash
  2. # 5 19 27
  3. # 4 9 13
  4. N=9
  5. M=13
  6.  
  7. for name in $(echo "background grid enzymes substrates coenzymes unicellularOrganisms higherPlants regulatoryEffects")
  8. #for name in $(echo "background")
  9. do
  10.     echo $name
  11.     for j in $(seq 0 $N)
  12.     do
  13.         echo $j line
  14.         seq 0 $M | xargs -n 1 -P 8 -I TILE wget http://mapserver1.biochemical-pathways.com/map1/$name/4/TILE/$j.png?v=4 -O TILE.png -nv
  15.         for file in $(ls ?.png)
  16.         do
  17.             mv $file 0$file
  18.         done
  19.        
  20.         montage ??.png -geometry +0+0 -tile $(($M+1))x1 -background none line$(printf "%02d\n" $j).png
  21.         rm ??.png
  22.     done
  23.  
  24.     montage line*.png -geometry +0+0 -tile 1x$((N+1)) -background none $name.png
  25.     rm line*.png
  26.  
  27. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement