コード例 #1
0
def test_cmtNonGrav():
    e = ele220.EleComet(
        '0021P       K656F223909617141526591941230504031777208211002546680692613537 K6564Giacobini-Zinner             MPCW        2011      9.0 15  15.5  5  12 Feb. 11.7279  MPC 75010    917* J981K K1155 h M-c 0008 9  !         ! 2  +0.2542  -0.100893          0.8'
    )  # noqa E501
    assert e.nonGrav() == ('2', .2542, -0.100893)
    e = ele220.EleComet(
        '0045P       K656R980508334482108360672994042012015530805916690530807694925 K657EHonda-Mrkos-Pajdusakova      MPCW        2011     13.5 20  19.5  5  11 Sept.28.7789  MPC 75294     84* K0144 K116C h M-v 003E 9  !         ! 2  +0.6644  -0.042993  +0.3656 0.6'
    )  # noqa E501
    assert e.nonGrav() == ('2', .6644, -.042993, .3656)
コード例 #2
0
def test_cmtFirst():
    e = ele220.EleComet(
        '    CE02D010E023L000000009100607971256950578054995792003800000001000000000a                                  Hind        1877NAT                    02 Mar. 21        16,   50         E021  E022        0000 0  Z                                             '
    )  # noqa E501
    assert e.first() == 2233138.5
    assert e.last() == 2233169.5
    assert e.nonGrav() is None
コード例 #3
0
def test_cmt():
    e = ele220.EleComet(
        '0001P-60K010-395P117960008811242880308093465163467390905853647000967587100a-3967Halley                       @YeoKia     1981MN    4.0 15   8.5 10  39 May  25.12    197,  643    161* G07   H59   h M-c 0008 9              2  +0.28    +0.0150               '
    )  # noqa E501
    assert e.permDesig() == '0001P'
    assert e.tempDesig() == 'P-60K010'
    assert e.frag() == ''
    assert e.pertEpoch() == 1633920.5
    assert e.pertScheme() == 'DE403'
    assert e.pertCoarse() == 'M-c'
    assert e.perturbers() == '0008'
    assert e.name() == 'Halley'
    assert e.comp() == '@YeoKia'
    assert e.pubYear() == '1981'
    assert e.pub() == 'MN'
    assert e.timeScale() == "UTC"
    assert e.pubVol() == '197,  643'
    assert e.numObs() == 161
    assert e.numObsAN() == ''
    assert e.numObsPlus() is False
    assert e.nonGrav() == ('2', 0.28, 0.015)
    assert e.first() == 2308004.5
    assert e.last() == 2363521.5
    assert e.notes() == ''
    assert e.rms() == -1
コード例 #4
0
def test_cmtPub():
    e = ele220.EleComet(
        '    CJ48V010J48AR427106910725206522110394996023116996401354209000999934980aJ48AGEclipse comet                Hirst       1954MNSA                   48 Oct. 27.4271U  13,   33    147  J48B8 J4943       0000 4              0.000032 +0.001294 +0.000518 6    '
    )  # noqa E501
    assert e.pubYear() == '1954'
    assert e.pub() == 'MNSA'
    assert e.pubVol() == '13,   33'
コード例 #5
0
def test_cmtNotes():
    e = ele220.EleComet(
        '    CI82R01bI829H724100606958529163476565632142011061200077506550999906817aI82A2Great September comet        Hufnagel    1919AN                     82 Sept.17.7241  209,   20  A1500  I8298 I835Q       0000 2 #R           0.000271 +0.012265 +0.012791 5    '
    )  # noqa E501
    assert e.frag() == 'b'
    assert e.notes() == "#R"
    assert e.pubYear() == '1919'
    assert e.pub() == 'AN'
    assert e.pubVol() == '209,   20'
コード例 #6
0
def test_cmt210():
    e = ele220.EleComet(
        '0033P       K168M584299701907225590664897746022393861121602398720463027346 K1699Daniel                       MPCN        1997                       16 Aug. 22.5843  NK    656     38*    1979    -    1993    9  !          2  +0.3113  +0.074490          0.8'
    )  # noqa E501
    assert e.first() is None
    assert e.last() is None
    assert e.pertEpoch() == 2457640.5
    assert e.pertScheme() == ''
    assert e.pertCoarse() == ''
    assert e.perturbers() == ''
    assert e.nonGrav() == ('2', 0.3113, 0.07449)
コード例 #7
0
def test_cmtTimeScale():
    # old, default is UTC
    e = ele220.EleComet(
        '    CI98U010I98BN652384012355204660977442659140344790007560109751000000000aI98B5Brooks                       Scharbe     1904AN                     98 Nov. 23.6524  164,  377    266  I98AM I98BQ       0000 3  E                                             '
    )  # noqa E501
    assert e.timeScale() == "UTC"
    # old, with TT/TDT specified
    e = ele220.EleComet(
        '    CI99E010I994D478106000871005310264080958146269038703265758181000357024aI994GSwift                        Marsden     1978AJ                     99 Apr. 13.4781T  83,   64    124  I9935 I998B h M-c 0008 9              0.000009 -0.000109 -0.001253 7    '
    )  # noqa E501
    assert e.timeScale() == "TT/TDT"
    # new, default is TT/TDT
    e = ele220.EleComet(
        '    CJ00B010J004T410827602440949670417942764146448611713315289221001058090aJ004BGiacobini                    Sekanina    1978AJ                     00 Apr. 29.4108   83,   64     32  J0023 J008I h M-c 0008 9              0.000030 +0.000057 -0.000722 7    '
    )  # noqa E501
    assert e.timeScale() == "TT/TDT"
    # new, with UTC specified
    e = ele220.EleComet(
        '    CJ00O010J0083700477201242247143294136465062534237910148348011000410471aJ0089Borrelly-Brooks              @MS         1903EAN                    00 Aug.  3.7005U 1 (4)  16  A 400  J007O J00AR       0000 5              0.000105 +0.000610 -0.000565 5    '
    )  # noqa E501
    assert e.timeScale() == "UTC"
コード例 #8
0
def test_cmtPlus():
    e = ele220.EleComet(
        '    CJ47F020J4753919840018212855643230707517129155835709618359001000000000a     Becvar                       Cunningham  1947                       47 May   3.9198U HAC   807     3+  J4742 J474G       0000 0                                                '
    )  # noqa E501
    assert e.numObs() == 3
    assert e.numObsAN() == ''
    assert e.numObsPlus() is True
    assert e.notes() == ''
    assert e.rms() == -1
    assert e.pertEpoch() is None
    assert e.pertScheme() == ''
    assert e.pertCoarse() == ''
    assert e.perturbers() == ''
コード例 #9
0
def test_cmtRMS():
    e = ele220.EleComet(
        '0045P       K656R980508334482108360672994042012015530805916690530807694925 K657EHonda-Mrkos-Pajdusakova      MPCW        2011     13.5 20  19.5  5  11 Sept.28.7789  MPC 75294     84* K0144 K116C h M-v 003E 9  !         ! 2  +0.6644  -0.042993  +0.3656 0.6'
    )  # noqa E501
    assert e.permDesig() == '0045P'
    assert e.tempDesig() == ''
    assert e.frag() == ''
    assert e.numObs() == 84
    assert e.notes() == '!'
    assert e.rms() == .6
    assert e.pertEpoch() == 2475480.5
    assert e.pertScheme() == 'DE403'
    assert e.pertCoarse() == 'M-v'
    assert e.perturbers() == '003E'
コード例 #10
0
def test_cmtAN():
    e = ele220.EleComet(
        '    CJ48L010J485F905235931705550362038209365023148926802076279080999874651aJ4859Honda-Bernasconi             Schrutka    1978QJ                     48 May  15.9052   19,   52  A 150  J4865 J4893       0000 8              0.000176 +0.000525 +0.001937 5    '
    )  # noqa E501
    assert e.permDesig() == ''
    assert e.tempDesig() == 'CJ48L010'
    assert e.frag() == ''
    assert e.pertEpoch() == 2432680.5
    assert e.pertScheme() == ''
    assert e.pertCoarse() == ''
    assert e.perturbers() == '0000'
    assert e.numObs() == 150
    assert e.numObsAN() == 'A'
    assert e.numObsPlus() is False
コード例 #11
0
def test_cmtFrag2():
    e = ele220.EleComet(
        '0073P     aqK0667919538619876962900699107788011387323509392014510693302405      Schwassmann-Wachmann         MPCM        2006                       06 June  7.920   MPC 56799    228  K064E K0654       0000 0                                                '
    )  # noqa E501
    assert e.frag() == 'aq'