Sha256: 421c876c6dc4f29b9692400997ba2c4ce750b7215f0152e512d96333b5704eaa
Contents?: true
Size: 658 Bytes
Versions: 3
Compression:
Stored size: 658 Bytes
Contents
$LOAD_PATH.unshift("../lib/") require "numru/gphys/gphys.rb" require "numru/gphys/gphys_io.rb" require "test/unit" include NumRu class GPhysTest < Test::Unit::TestCase def setup @T = GPhys::IO.open("../testdata/T.jan.nc","T") # NetCDF data @Tgd = GPhys::IO.open("../testdata/T.jan.ctl","T") # GrADS data end def test_cyclic_ext te = @T.cyclic_ext(0) assert_equal( te.shape[0], @T.shape[0]+1 ) # to make sure it is extened assert_equal( te.axis(0).pos.max.to_f, 360.0 ) # to make sure it is extened te = @Tgd.cyclic_ext(0) assert_equal( te.axis(0).pos.max.to_f, 360.0 ) # to make sure it is extened end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gphys-1.4.3.2 | test/test_gphys.rb |
gphys-1.4.3.1 | test/test_gphys.rb |
gphys-1.4.3 | test/test_gphys.rb |