planetarypy / pvl

Python implementation of PVL (Parameter Value Language)
BSD 3-Clause "New" or "Revised" License
19 stars 19 forks source link

parsing SPICE metakernels #103

Closed kidpixo closed 2 years ago

kidpixo commented 2 years ago

Is your feature request related to a problem? Please describe. I want to parse SPICE metakernel files. Metakernel structure seems close enough to PVL grammar, I am wondering how hard would be to adapt PVL to read them. I already tried and it doesn't work currently, this is normal.

Describe the solution you'd like Read the SPICE metakernel and return them as a dict (maybe?).

Describe alternatives you've considered Manual parsing, but I am not good enough nor I have enough time to do it properly.

EDIT Nevbermind , just found out Moon Coverage can do it , see SPICE kernel. Thanks @seignovert !

Additional context Nope.

rbeyer commented 2 years ago

Great! A few years ago, I had hacked up a real quick "SPICEparser" for pvl and it worked with some kernels, but didn't cover all of the differences between PVL-text and SPICE Text Kernel Format.

I'm glad to hear that Benoit's Moon Coverage has capability that handles everything, and that's great.

Because of that, I'm going to close this, because there's a solution. However, I can understand the desire to put that capability into pvl as it seems "in-family" with what pvl already does.