// This code is generated by generate_code.py, do not modify it manually.
//! This module contains all the known columns in the apassdr9 table.
use crate::traits::{Column, Table};
/// The AAVSO Photometric All Sky Survey (APASS) - Data Release 9. APASS is designed to bridge the gap between the shallow Tycho-2 two-bandpass photometric catalogue that is complete to V = 11 mag and deeper, but less spatially-complete catalogues like SDSS or Pan-STARRS. The APASS Data Release 9 contains approximately 62 million stars in about 99% of the sky. Data retrieved using the VizieR catalogue access tool, CDS, Strasbourg, France (VizieR catalogue: II/336). For more information, please visit the APASS homepage: https://www.aavso.org/apass. Reference paper: https://ui.adsabs.harvard.edu/abs/2015AAS...22533616H/abstract
#[allow(non_camel_case_types)]
pub struct apassdr9;
impl Table for apassdr9 {
fn string(&self) -> String {
"apassdr9".to_string()
}
}
/// The columns in the apassdr9 table.
#[allow(non_camel_case_types)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, strum::Display)]
pub enum Col {
/// Record number assigned by the VizieR team. Should Not be used for identification. However, the lack of a unique ID in APASS has made the VizieR recno the de-facto source identifier. For instance, it is used as such in the Gaia DR2 cross-match tables.
recno,
/// Right ascension in decimal degrees (J2000)
raj2000,
/// Declination in decimal degrees (J2000)
dej2000,
/// [0/2.4] RA uncertainty
e_ra,
/// [0/2.4] DEC uncertainty
e_dec,
/// [20110001/9999988888] Field name
field,
/// [2/387] Number of observed nights
nobs,
/// [2/3476] Number of images for this field, usually nobs*5
mobs,
/// [-7.5/13]? B-V color index
b_v,
/// [0/10.1]? B-V uncertainty
e_b_v,
/// [5.5/27.4]? Johnson V-band magnitude
vmag,
/// [0/7]? Vmag uncertainty
e_vmag,
/// [0/1]? Uncertainty flag on e_Vmag (1)
u_e_vmag,
/// [5.4/27.3]? Johnson B-band magnitude
bmag,
/// [0/10]? Bmag uncertainty
e_bmag,
/// [0/1]? Uncertainty flag on e_Bmag (1)
u_e_bmag,
/// [5.9/24.2]? g'-band AB magnitude, Sloan filter
g_mag,
/// [0/9.7]? g'mag uncertainty
e_g_mag,
/// [0/1]? Uncertainty flag on e_g'mag (1)
u_e_g_mag,
/// [5.1/23.9]? r'-band AB magnitude, Sloan filter
r_mag,
/// [0/6.5]? r'mag uncertainty
e_r_mag,
/// [0/1]? Uncertainty flag on e_r'mag (1)
u_e_r_mag,
/// [4.2/29.1]? i'-band AB magnitude, Sloan filter
i_mag,
/// [0/9.6]? i'mag uncertainty
e_i_mag,
/// [0/1]? Uncertainty flag on e_i'mag (1)
u_e_i_mag,
}
impl Column for Col {}
#[cfg(test)]
/// Collects all the known columns in the apassdr9 table.
pub fn collect_known(map: &mut std::collections::HashMap<String, Vec<String>>) {
let mut col_strings = Vec::new();
col_strings.push(Col::recno.to_string());
col_strings.push(Col::raj2000.to_string());
col_strings.push(Col::dej2000.to_string());
col_strings.push(Col::e_ra.to_string());
col_strings.push(Col::e_dec.to_string());
col_strings.push(Col::field.to_string());
col_strings.push(Col::nobs.to_string());
col_strings.push(Col::mobs.to_string());
col_strings.push(Col::b_v.to_string());
col_strings.push(Col::e_b_v.to_string());
col_strings.push(Col::vmag.to_string());
col_strings.push(Col::e_vmag.to_string());
col_strings.push(Col::u_e_vmag.to_string());
col_strings.push(Col::bmag.to_string());
col_strings.push(Col::e_bmag.to_string());
col_strings.push(Col::u_e_bmag.to_string());
col_strings.push(Col::g_mag.to_string());
col_strings.push(Col::e_g_mag.to_string());
col_strings.push(Col::u_e_g_mag.to_string());
col_strings.push(Col::r_mag.to_string());
col_strings.push(Col::e_r_mag.to_string());
col_strings.push(Col::u_e_r_mag.to_string());
col_strings.push(Col::i_mag.to_string());
col_strings.push(Col::e_i_mag.to_string());
col_strings.push(Col::u_e_i_mag.to_string());
map.insert(apassdr9.string(), col_strings);
}