starfield 0.12.2

Astronomical data reduction toolkit with star catalogs, coordinate systems, and star finding algorithms (inspired by skyfield)
Documentation
//! Planetary Constants Kernel (PCK) format stub
//!
//! PCK files contain rotation and orientation data for planets and moons.
//! This is a placeholder for future implementation.

use std::path::Path;
use std::sync::Arc;

use super::daf::DAF;
use super::errors::Result;

/// Planetary Constants Kernel (PCK) file reader
pub struct PCK {
    /// The underlying DAF file
    pub daf: Arc<DAF>,
}

impl PCK {
    /// Open a PCK file at the given path
    pub fn open<P: AsRef<Path>>(path: P) -> Result<Self> {
        let daf = Arc::new(DAF::open(path)?);
        Ok(PCK { daf })
    }
}