Skip to content

Write observations to file in MPC and/or DES format #351

@monocongo

Description

@monocongo

This is a request for

  • a new feature
  • an enhancement to existing sbpy functionality
  • somethings else: [explain here]

The requested changes will be implemented by

  • me
  • the sbpy developers

High-level concept
I would like to query MPC observations for an object and then write the observations data to a file which is suitable as input to OpenOrb for orbit computations. I propose we add a function to the Obs class which would allow writing to file in DES or MPC format.

Please advise if there is already a way to do this using sbpy, I am a novice user still unfamiliar with this package.

Explain the relevance to sbpy
This is related to the sbpy.Data.Obs class

Proposal details
Write the file in DES and MPC formats using Python standard library.

Example (pseudo-)code

observations = Obs.from_mpc(targetid=designation, id_type='asteroid designation')
file_path = f'/home/james/data/observations_{designation}.mpc'
observations.to_file(path=file_path, format='DES')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions