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

file = 'test_restart.nc'

Adv   = GPhys::IO.open('test_restart.nc',   'PressBZ'  )


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

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

# <Drawing data by GGraph>
#  GGraph.line( var.cut(5500,100,true,time[i]) )

  GGraph.line( Adv.cut("x"=>10000, "y"=>0, "z"=>0..20000), \
#  GGraph.line( Adv.cut("x"=>10000, "y"=>0, "z"=>0..30000), \
               true, 'exchange'=>true , 'index'=>22, 'type'=>1, 'label'=>'Press', \
               'title'=>'Press')
#, 'max'=>5.0e2, 'min'=>3.0e2)    # °ÜÎ®

# <Close DCL>
DCL.grcls
