# -*- 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

file1 = 'tsfc.nc'
file2 = 'vprof.nc'

tsfc  = GPhys::IO.open(file1, 'tsfc')
temp  = GPhys::IO.open(file2, 'temp')

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

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

  GGraph.line( tsfc, \
           true, 'index'=>42, 'type'=>1, 'label'=>'Ts', \
          'title'=>'Surface Temprature', \
          'max'=>290.0, 'min'=>160.0)    # 地表面温度

  GGraph.line( temp.cut(0,true), \
           false, 'index'=>22, 'type'=>1, 'label'=>'Ta', \
          'max'=>290.0, 'min'=>160.0)    # 地表気温

#end
# <Close DCL>
DCL.grcls
