gaia_access 0.1.4

Access the Gaia ESA Archive for astronomical data.
Documentation
// This code is generated by generate_code.py, do not modify it manually.

//! This module contains all the known columns in the gold_sample_ucd table.

use crate::traits::{Column, Table};

/// The table contains the bolometric luminosities and radii in solar units for a subset of ultracool dwarfs from the Gaia DR3 catalogue, as well as some intermediate quantities used in the selection of sources and in the derivation of the luminosities and radii.
///
/// For more details please refer to \cite{DR3-DPACP-123}.
#[allow(non_camel_case_types)]
pub struct gold_sample_ucd;

impl Table for gold_sample_ucd {
    fn string(&self) -> String {
        "gold_sample_ucd".to_string()
    }
}

/// The columns in the gold_sample_ucd table.
#[allow(non_camel_case_types)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, strum::Display)]
pub enum Col {
    /// Unique source identifier (unique within a particular Data Release)
    source_id,
    /// Correction factor applied to obtain the total SED flux
    ftot_fobs,
    /// Bolometric luminosity in solar units
    lum,
    /// Uncertainty in bolometric luminosity
    lum_uncertainty,
    /// Radius in solar unit
    radius,
    /// Uncertainty in radius
    radius_uncertainty,
    /// Reduced chi-square of the SED fit
    reduced_chi2,
}

impl Column for Col {}

#[cfg(test)]
/// Collects all the known columns in the gold_sample_ucd table.
pub fn collect_known(map: &mut std::collections::HashMap<String, Vec<String>>) {
    let mut col_strings = Vec::new();
    col_strings.push(Col::source_id.to_string());
    col_strings.push(Col::ftot_fobs.to_string());
    col_strings.push(Col::lum.to_string());
    col_strings.push(Col::lum_uncertainty.to_string());
    col_strings.push(Col::radius.to_string());
    col_strings.push(Col::radius_uncertainty.to_string());
    col_strings.push(Col::reduced_chi2.to_string());
    map.insert(gold_sample_ucd.string(), col_strings);
}