Skip to content

Doesn't work with multiple site codes in same MPCReport.txt #9

@artedeschi

Description

@artedeschi

Output when ran with attached file:
Read 8 header lines,34 observation lines from /home/atedeschi/Asteroids/20180713/MPCReport.txt
K10GE9E 2018 07 13.729760 20 18 55.08 -25 34 42.7
Measurement from different site code (Q64) found, skipping
K10GE9E 2018 07 13.731418 20 18 55.02 -25 34 42.2
Measurement from different site code (Q64) found, skipping
K10GE9E 2018 07 13.733073 20 18 54.83 -25 34 43.5
Measurement from different site code (Q64) found, skipping
K10GE9E 2018 07 13.734739 20 18 54.73 -25 34 44.0
Measurement from different site code (Q64) found, skipping
K10GE9E 2018 07 13.736394 20 18 54.64 -25 34 44.2
Measurement from different site code (Q64) found, skipping
K17Y05E 2018 07 13.729760 20 18 17.52 -25 27 34.3
Measurement from different site code (Q64) found, skipping
K17Y05E 2018 07 13.731418 20 18 17.33 -25 27 36.4
Measurement from different site code (Q64) found, skipping
K17Y05E 2018 07 13.733073 20 18 17.12 -25 27 38.5
Measurement from different site code (Q64) found, skipping
K17Y05E 2018 07 13.734739 20 18 16.93 -25 27 40.8
Measurement from different site code (Q64) found, skipping
K17Y05E 2018 07 13.736394 20 18 16.72 -25 27 42.9
Measurement from different site code (Q64) found, skipping
K17Y05E 2018 07 13.780566 20 18 11.52 -25 28 40.4
K17Y05E 2018 07 13.782217 20 18 11.33 -25 28 42.3
K17Y05E 2018 07 13.783874 20 18 11.15 -25 28 44.9
K17Y05E 2018 07 13.785542 20 18 10.93 -25 28 46.7
K17Y05E 2018 07 13.787198 20 18 10.75 -25 28 48.8
LCOAT01 2018 07 13.729760 20 18 44.99 -25 18 57.6
Measurement from different site code (Q64) found, skipping
LCOAT01 2018 07 13.731418 20 18 44.93 -25 18 57.9
Measurement from different site code (Q64) found, skipping
LCOAT01 2018 07 13.733073 20 18 44.82 -25 18 58.6
Measurement from different site code (Q64) found, skipping
LCOAT01 2018 07 13.734739 20 18 44.74 -25 18 58.9
Measurement from different site code (Q64) found, skipping
LCOAT01 2018 07 13.736394 20 18 44.66 -25 18 59.5
Measurement from different site code (Q64) found, skipping
LCOAT01 2018 07 13.780566 20 18 42.41 -25 19 09.1
LCOAT01 2018 07 13.782217 20 18 42.29 -25 19 09.7
LCOAT01 2018 07 13.783874 20 18 42.20 -25 19 11.2
LCOAT01 2018 07 13.785542 20 18 42.15 -25 19 10.6
LCOAT01 2018 07 13.787198 20 18 42.05 -25 19 10.9
c3572 2018 07 13.729760 20 17 44.67 -25 28 19.9
Measurement from different site code (Q64) found, skipping
c3572 2018 07 13.731418 20 17 44.54 -25 28 21.3
Measurement from different site code (Q64) found, skipping
c3572 2018 07 13.733073 20 17 44.44 -25 28 22.8
Measurement from different site code (Q64) found, skipping
c3572 2018 07 13.734739 20 17 44.34 -25 28 24.4
Measurement from different site code (Q64) found, skipping
c3572 2018 07 13.736394 20 17 44.22 -25 28 26.0
Measurement from different site code (Q64) found, skipping

Traceback (most recent call last):
File "/home/atedeschi/venv/Astro2ADES/bin/astrometrica2ades", line 11, in
load_entry_point('astrometrica2ades==0.0.5', 'console_scripts', 'astrometrica2ades')()
File "/home/atedeschi/venv/Astro2ADES/lib/python2.7/site-packages/astrometrica2ades/main.py", line 47, in convert
num_objects = utils.convert_mpcreport_to_psv(mpcreport, outFile, rms_available, astrometrica_log)
File "/home/atedeschi/venv/Astro2ADES/lib/python2.7/site-packages/astrometrica2ades/utils.py", line 698, in convert_mpcreport_to_psv
data = parse_and_modify_data(line, ast_catalog, asteroids, rms_available, seeing, display)
File "/home/atedeschi/venv/Astro2ADES/lib/python2.7/site-packages/astrometrica2ades/utils.py", line 573, in parse_and_modify_data
if data['astCat'] == ' ' and ast_catalog is not None:
KeyError: u'astCat'

MPCReport.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions