lcogt / astrometrica2ades Goto Github PK
View Code? Open in Web Editor NEWCode to convert Astrometrica output files into the new MPC ADES format
License: GNU General Public License v3.0
Code to convert Astrometrica output files into the new MPC ADES format
License: GNU General Public License v3.0
The discovery asterisk is not being mapped to a a disc
(overy) column in the output PSV
need numpydoc for Sphinx
lacking python 3.6 support
Magnitudes, even if measured to 2 d.p. by Astrometrica
, need to be rounded to 1 d.p. for submission otherwise they will be rejected.
When reading the Astrometrica.log
, if the asteroid has been measured multiple times, the reported rms in the output does not correspond to the last measured
It's not clear from casual read of the ADES docs whether data from multiple site codes can go in one batch so for now we should trap and not output results from ones where the site code doesn't match the one in the header
This is not accepted by the MPC for some reason. (also, not very realistic).
We probably shouldn't have error precision higher than the precision given for the base value.
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'
For objects that were automatically picked up and measured by Astrometrica's moving object finder, the log parser is not extracting and reporting RMS values
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.