Skip to content

Commit

Permalink
adapt test to the commit on absorption 808f257
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainp committed Jan 25, 2018
1 parent f4ac495 commit d418d57
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions smrt/atmosphere/test_atmosphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@ def test_simple_isotropic_atmosphere():

print('TB 1: ', res1.TbV(), 'TB2: ', res2.TbV())

ok_(abs(res1.TbV() - 227.59158654174465) < 1e-2)
ok_(abs(res2.TbV() - 214.64368439876984) < 1e-2)
#absorption with effective permittivity
#ok_(abs(res1.TbV() - 227.59158654174465) < 1e-2)
#ok_(abs(res2.TbV() - 214.64368439876984) < 1e-2)

#original absorption (Maetzler 1998)
ok_(abs(res1.TbV() - 223.925496277253) < 1e-2)
ok_(abs(res2.TbV() - 211.7175839349701) < 1e-2)
9 changes: 7 additions & 2 deletions smrt/test/test_iba.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,10 @@ def test_iba_oneconfig():
res = m.run(radiometer, snowpack)

print(res.TbV(), res.TbH())
ok_(abs(res.TbV() - 248.08807673119517) < 1e-4)
ok_(abs(res.TbH() - 237.3106696695165) < 1e-4)
#absorption with effective permittivity
#ok_(abs(res.TbV() - 248.08807673119517) < 1e-4)
#ok_(abs(res.TbH() - 237.3106696695165) < 1e-4)

#original absorption (Maetzler 1998)
ok_(abs(res.TbV() - 247.92402825320272 ) < 1e-4)
ok_(abs(res.TbH() - 237.08967658310334) < 1e-4)

0 comments on commit d418d57

Please sign in to comment.