# -*- coding: euc-jp -*-
require "numru/ggraph"
include NumRu

timestep  = ARGV[0].to_i

files  = "thermal-moist_Sekisan-H2O-l-Rain_FallFluxAtLB.nc"
gphys1 = GPhys::IO.open(files, 'Sekisan-H2O-l-Rain_FallFluxAtLB')
#files  = "thermal-moist_H2O-l-Rain_FallFluxAtLB_TET_CtlPress_atSfcFlux_x256km_z48km.nc"
#gphys2 = GPhys::IO.open(files, 'H2O-l-Rain_FallFluxAtLB')

#DCL.gropn(1)
DCL.gropn(2)
#DCL.sldiv('y',1,2)
DCL.sgpset('lfull',true)
DCL.sgpset('lcntl', false)
DCL.uzfact(0.7)
#DCL.uzfact(0.3)
GGraph.set_fig( 'viewport'=>[0.25,0.7,0.15,0.6] )
# アスペクト比をそれっぽくする
GGraph.set_fig( 'viewport'=>[0.1,0.85,0.15,0.6] )
#GGraph.set_fig( 'viewport'=>[0.25,0.8,0.10,0.275] )

gphysdisp0 = gphys1
gphysdisp1  = gphysdisp0

#GGraph.line( gphysdisp1, true )
#GGraph.line( gphysdisp, true, 'min' => -9.0e-4, 'max' => 0.0, 'type'=>1 )
GGraph.line( gphysdisp1, true, 'min' => -175, 'max' => 0.0, 'type'=>1 )
#GGraph.line( gphysdisp2, false, 'min' => -9.0e-4, 'max' => 0.0, 'type'=>2 )
#GGraph.line( gphysdisp, true )

DCL.grcls

