| Conditions | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 20 | def test_subsol(self): |
||
| 21 | """Test the subsolar calculation""" |
||
| 22 | self.out = utils.subsol(self.dtime.year, int(self.dtime.strftime("%j")), |
||
| 23 | self.dtime.hour * 3600.0 |
||
| 24 | + self.dtime.minute * 60.0 + self.dtime.second) |
||
| 25 | |||
| 26 | np.testing.assert_allclose(self.out, [-179.2004, -23.0431], rtol=1.0e-4) |
||
| 27 | |||
| 34 |