#
# Test program for GGraph, implemented rectangular curvelinear coordinate. 
# (2004/01/25 S. Takehiro)
#
#  Drawing initial temperature field for dynamo benchmark test. 
#
#require "numru/ggraph"                                                      
require "./ggraph"
include NumRu

gphys = GPhys::NetCDF_IO.open('case1_initial.nc', 'temp')


# $B;R8aLLCGLL(B
gp = gphys.cut('lon'=>0.0,'t'=>0.0 )
DCL.gropn(1)
GGraph.set_fig('itr'=>5 )
GGraph.tone( gp, true, {'transpose'=>true} )
GGraph.contour( gp, false, {'transpose'=>true} )

# $B@VF;LLCGLL(B
gp = gphys.cut('lat'=>0.0,'t'=>0.0 )
GGraph.set_fig('itr'=>5 )
GGraph.tone( gp, true, {'transpose'=>true} )
GGraph.contour( gp, false, {'transpose'=>true} )

# $B@VF;LLCGLL(B($B$A$g$C$HBg$-$a(B)
GGraph.set_fig('itr'=>5 )
GGraph.set_fig('similar'=>[0.25,-0.1,0.05] )
GGraph.tone( gp, true, {'transpose'=>true} )
GGraph.contour( gp, false, {'transpose'=>true} )

# $B@5<MEj1F(B
gp = gphys.cut('rad'=>1.0,'t'=>0.0 )
GGraph.set_fig('itr'=>30 )
GGraph.set_fig('map_axis'=>[0,30,20] )
GGraph.tone( gp, true )
GGraph.contour( gp, false )

DCL.grcls
