コード例 #1
0
ファイル: test_mars_spice.py プロジェクト: michaelaye/pymars
def test_local_solar_time():
    label_time = pdstools.get_local_solar_time(labels)
    mspicer = ms.MarsSpicer()
    mspicer.utc = pdstools.get_time(labels)
    lat = pdstools.get_mean_lat(labels)
    lon = pdstools.get_mean_lon(labels)
    mspicer.set_spoint_by(lat=lat, lon=lon)
    calculated_soltime = mspicer.fractional_local_time
    assert_equals(round(label_time, 1), round(calculated_soltime, 1))
コード例 #2
0
ファイル: test_mars_spice.py プロジェクト: michaelaye/pymars
def test_incidence_angle():
    inc = pdstools.get_incidence(labels)
    mspicer = ms.MarsSpicer()
    mspicer.utc = pdstools.get_time(labels)
    lat = pdstools.get_mean_lat(labels)
    lon = pdstools.get_mean_lon(labels)
    mspicer.set_spoint_by(lat=lat, lon=lon)
    calculated_inc = mspicer.illum_angles.dsolar
    # rounding off all fractions here for this test! improve?
    assert_equals(round(calculated_inc), round(inc))