#!/bin/bash
#
# draw.sh
# 図作成に使うシェルスクリプト
# 描画用 Ruby スクリプト drawcont.rb を使い
# まとめて図を作成するためのシェルスクリプトである.

i=1
j=1

while test $i -le 3
do

  case $i in
    1) swdecay="1.0d-6";;
    2) swdecay="5.0d-7";;
    3) swdecay="2.5d-7";;
  esac

  drawcont.rb nc/arare_dim_ss-${swdecay}.nc Exner -x 5000 -z 0:10000 -t 0:100 -range 0.998:1.008 -ps
  convert -rotate 90 dcl.ps exner-${swdecay}.png

  drawcont.rb nc/arare_dim_fs-${swdecay}.nc VelX -x 5000 -z 0:10000 -t 0:100 -range -4.0:4.0 -ps
  convert -rotate 90 dcl.ps velx-${swdecay}.png

  drawcont.rb nc/arare_dim_sf-${swdecay}.nc VelZ -x 5000 -z 0:10000 -t 0:100 -range -4.0:4.0 -ps
  convert -rotate 90 dcl.ps velz-${swdecay}.png

  i=`expr $i + 1` 

done