예제 #1
0
 def test_bad_nemo_grid(self):
     filepath = os.path.join(os.path.dirname(__file__),
                             "my_exp_3h_19992131_20000102_grid_T.nc")
     fstr = get_nemo_grid(filepath, "exp")
     eq_(fstr, "grid_T")
예제 #2
0
 def test_get_nemo_grid2():
     filepath = os.path.join(os.path.dirname(__file__),
                             "exp2_3h_19992131_20000102_grid_T.nc")
     assert get_nemo_grid(filepath) == "grid_T"
예제 #3
0
 def test_get_nemo_grid(self):
     filepath = os.path.join(os.path.dirname(__file__),
                             "my_exp_3h_19992131_20000102_icemod.nc")
     fstr = get_nemo_grid(filepath, "my_exp")
     eq_(fstr, "icemod")
예제 #4
0
 def test_get_nemo_grid():
     filepath = os.path.join(os.path.dirname(__file__),
                             "exp1_3h_19992131_20000102_icemod.nc")
     assert get_nemo_grid(filepath) == "icemod"
예제 #5
0
 def test_bad_nemo_grid():
     filepath = os.path.join(os.path.dirname(__file__),
                             "my_exp_3h_19992131_20000102_grid_T.nc")
     assert get_nemo_grid(filepath) is None
예제 #6
0
 def test_get_nemo_grid3():
     filepath = os.path.join(os.path.dirname(__file__),
                             "t015_1m_19900101_19901231_opa_grid_W_3D.nc")
     assert get_nemo_grid(filepath) == "opa_grid_W_3D"
예제 #7
0
 def test_get_nemo_grid2():
     filepath = os.path.join(os.path.dirname(__file__),
                             "t015_1m_19900101_19901231_opa_grid_W_3D.nc")
     fstr = get_nemo_grid(filepath)
     eq_(fstr, "opa_grid_W_3D")
예제 #8
0
 def test_get_nemo_grid2():
     filepath = os.path.join(os.path.dirname(__file__),
                             "exp2_3h_19992131_20000102_grid_T.nc")
     fstr = get_nemo_grid(filepath)
     eq_(fstr, "grid_T")