# -*- coding: euc-jp -*-
# Title: Ruby script drawing contour map for deepconv/arare5 output data 
#
# History: 2012/04/11 (Masatsugu Odaka)
#
require "numru/ggraph"
include NumRu

file = 'qprof.nc'

dptrad  = GPhys::IO.open(file, 'dptrad')
time  = GPhys::IO.open(file, 't').val

# <Open DCL>
DCL.swlset( 'ldump', true )
DCL.gropn(4)

for i in 0...time.length do
# <Drawing data by GGraph>

  GGraph.line( dptrad.cut(true,time[i]), \
           true, 'exchange'=>true , 'index'=>22, 'type'=>1, 'label'=>'rad', \
          'title'=>'Potential Temp. Tendency', \
          'max'=>0.001, 'min'=>-0.001)    # Êü¼Í

end
# <Close DCL>
DCL.grcls
