23 lines
629 B
Rust
23 lines
629 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
/// Catalog metadata for a DESI data release/survey.
|
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
|
pub struct Catalog {
|
|
pub name: String,
|
|
pub release: String,
|
|
pub description: String,
|
|
pub object_count: Option<u64>,
|
|
}
|
|
|
|
/// A single catalog object (galaxy / quasar / star) with its survey
|
|
/// coordinates. `ra` and `dec` are in degrees; `redshift` is dimensionless.
|
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
|
pub struct CatalogObject {
|
|
pub id: String,
|
|
pub catalog: String,
|
|
pub object_type: String,
|
|
pub ra: f64,
|
|
pub dec: f64,
|
|
pub redshift: f64,
|
|
}
|