Rev | Line | |
---|
[4315] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | dirpng=$1 |
---|
| 4 | seas=$2 |
---|
| 5 | proj=$3 |
---|
| 6 | sim=$4 |
---|
| 7 | ref=$5 |
---|
| 8 | var=$6 |
---|
| 9 | |
---|
| 10 | din=${dirpng}/${seas}/$ref/MAP/${proj} |
---|
[4696] | 11 | if [ ! -f ${din}/${var}.png ]; then |
---|
[4315] | 12 | cd ${din} |
---|
| 13 | convert ${var}.pdf ${var}.png |
---|
| 14 | convert -size 1500x1000 xc:white ${var}.png -geometry 1440x890+30+30 -composite -trim -gravity North ${var}.png |
---|
[4696] | 15 | fi |
---|
[4315] | 16 | |
---|
| 17 | din=${dirpng}/${seas}/${sim}/MAP/${proj} |
---|
[4696] | 18 | if [ ! -f ${din}/${var}.png ]; then |
---|
[4315] | 19 | cd ${din} |
---|
| 20 | convert ${var}.pdf ${var}.png |
---|
| 21 | convert -size 1500x1000 xc:white ${var}.png -geometry 1440x890+30+30 -composite -trim -gravity North ${var}.png |
---|
[4696] | 22 | fi |
---|
[4315] | 23 | |
---|
| 24 | din=${dirpng}/${seas}/${sim}/DMAP_${ref}/${proj} |
---|
[4696] | 25 | if [ ! -f ${din}/${var}.png ]; then |
---|
[4315] | 26 | cd ${din} |
---|
| 27 | convert ${var}.pdf ${var}.png |
---|
| 28 | convert -size 1500x1000 xc:white ${var}.png -geometry 1440x890+30+30 -composite -trim -gravity North ${var}.png |
---|
[4696] | 29 | fi |
---|
[4315] | 30 | |
---|
| 31 | exit |
---|
Note: See
TracBrowser
for help on using the repository browser.