pub struct Args {Show 62 fields
pub fits: Option<String>,
pub col: usize,
pub cmap: String,
pub width: u32,
pub out: Option<String>,
pub no_border: bool,
pub transparent: bool,
pub no_cbar: bool,
pub min: Option<f64>,
pub max: Option<f64>,
pub gamma: f64,
pub log: bool,
pub symlog: bool,
pub hist: bool,
pub linthresh: Option<f64>,
pub asinh: bool,
pub neg_mode: String,
pub bad_color: Option<InputColor>,
pub bg_color: Option<InputColor>,
pub planck_log: bool,
pub scale: f64,
pub latex: bool,
pub units: Option<String>,
pub input_coord: String,
pub output_coord: String,
pub rotate_to: Option<String>,
pub roll: f64,
pub projection: String,
pub lon: Option<f64>,
pub lat: Option<f64>,
pub fov: f64,
pub res: f64,
pub local_graticule: bool,
pub local_grat_dlat: f64,
pub local_grat_dlon: f64,
pub grat_line_width: u32,
pub no_text: bool,
pub no_title: bool,
pub no_scale_text: bool,
pub title: Option<String>,
pub verbose: bool,
pub no_downgrade: bool,
pub graticule: bool,
pub grat_coord: Option<String>,
pub grat_coord_overlay: Option<String>,
pub grat_overlay_color: InputColor,
pub grat_labels: bool,
pub grat_par: f64,
pub grat_mer: f64,
pub extend: String,
pub tick_direction: String,
pub tick_font_size: Option<f32>,
pub units_font_size: Option<f32>,
pub llabel: Option<String>,
pub rlabel: Option<String>,
pub label_font_size: Option<f32>,
pub mask_file: Option<String>,
pub mask_below: Option<f64>,
pub mask_above: Option<f64>,
pub maskfill_color: String,
pub mask_coord: Option<String>,
pub fast_render: bool,
}Expand description
Simple HEALPix Mollweide plotter
Fields§
§fits: Option<String>Input FITS file
col: usizeColumn index
cmap: StringColormap name
width: u32Output width in pixels
out: Option<String>Output filename
no_border: boolDisable map border
transparent: boolTransparent background
no_cbar: boolDisable colorbar
min: Option<f64>Lower color scale limit
max: Option<f64>Upper color scale limit
gamma: f64Gamma correction
log: boolLog scale
symlog: boolSymmetric log
hist: boolHistogram equalization
linthresh: Option<f64>Linear region width for symlog
asinh: boolAsinh scaling
neg_mode: StringNegative/invalid handling: zero or unseen
bad_color: Option<InputColor>Bad pixel color: auto, gray, or r,g,b,a
bg_color: Option<InputColor>Background pixel color: transparent, gray, or r,g,b,a
planck_log: boolPlanck logarithmic scaling
scale: f64Factor that multiplies the data itself for unit conversions.
latex: boolEnable LaTeX-like mathematical rendering for colorbar labels
units: Option<String>Units string for colorbar (supports LaTeX syntax when –latex is enabled)
input_coord: StringInput coordinate system: gal, eq, ecl
output_coord: StringOutput coordinate system: gal, eq, ecl
rotate_to: Option<String>Rotate view so that (lon,lat) becomes the new center [degrees]
roll: f64Roll angle around the new center [degrees]
projection: StringProjection type: mollweide, gnomonic, or hammer
lon: Option<f64>Center longitude in degrees (gnomonic: projection center; mollweide: rotation center)
lat: Option<f64>Center latitude in [degrees] (gnomonic: projection center; mollweide: rotation center)
fov: f64Field of view width in arcminutes (gnomonic projection only)
res: f64Resolution in arcmin/pixel (gnomonic projection only)
local_graticule: boolEnable local grid graticule for gnomonic projection
local_grat_dlat: f64Graticule spacing for parallels [degrees] (gnomonic projection only)
local_grat_dlon: f64Graticule spacing for meridians [degrees] (gnomonic projection only)
grat_line_width: u32Graticule line width in pixels (applies to both local and mollweide graticules)
no_text: boolDisable text labels (title and resolution/pixel size labels)
no_title: boolDisable title display
no_scale_text: boolDisable text scaling with FOV (use constant text sizes, gnomonic projection only)
title: Option<String>Custom title for map (gnomonic: default is (lon, lat) at center)
verbose: boolAllows for more verbose output
no_downgrade: boolDisable automatic downgrading of high-resolution maps for performance
graticule: boolEnable graticule overlay (primary coordinate system for mollweide map)
grat_coord: Option<String>Primary graticule coordinate system: gal, eq, ecl (defaults to the map’s input coordinate system)
grat_coord_overlay: Option<String>Secondary graticule coordinate system to overlay (e.g., show FK5 over Galactic) Specify one of: gal, eq, ecl. If set with –grat-coord, both systems will be displayed.
grat_overlay_color: InputColorColor for secondary graticule overlay (hex #RRGGBB or r,g,b,a format) Default: yellow (#FFFF00) for good contrast on dark colormaps
grat_labels: boolShow coordinate labels on graticule lines (shows lat/lon values)
grat_par: f64Graticule spacing for parallels [degrees]
grat_mer: f64Graticule spacing for meridians [degrees]
extend: StringExtend colorbar with arrows at the ends: none, min, max, or both
tick_direction: StringColorbar tick direction: inward/in (default) or outward/out
tick_font_size: Option<f32>Tick label font size in points (default: auto-scaled, 12pt at width 800px)
units_font_size: Option<f32>Units text font size in points (default: auto-scaled, 16pt at width 800px)
llabel: Option<String>Text label for top-left corner
rlabel: Option<String>Text label for top-right corner
label_font_size: Option<f32>Font size for labels in points (default: auto-scaled, 16pt at width 800px)
mask_file: Option<String>Path to mask FITS file (binary mask: 0=masked, 1=valid)
mask_below: Option<f64>Mask pixels with values below this threshold
mask_above: Option<f64>Mask pixels with values above this threshold
maskfill_color: StringColor for masked regions: transparent, gray, or r,g,b,a format
mask_coord: Option<String>Coordinate system of mask file (gal, eq, ecl) - auto-detects if not specified
fast_render: boolFast render mode: skip graticule, colorbar, and labels for faster iteration
Implementations§
Source§impl Args
impl Args
Sourcepub fn validate_projection_args(&self) -> Result<(), String>
pub fn validate_projection_args(&self) -> Result<(), String>
Validate that projection-specific arguments are only used with their respective projection
pub fn resolve_config(&self) -> Result<PlotConfig, String>
Sourcepub fn get_output_filename(&self) -> String
pub fn get_output_filename(&self) -> String
Determine output filename from –out flag or input FITS filename.
§Logic
- If –out is explicitly provided, use it
- If input FITS file is provided, use it with .fits → .pdf extension
- If neither, use “map2fig_test.pdf” as fallback
Sourcepub fn describe_coord_transform(&self) -> Option<String>
pub fn describe_coord_transform(&self) -> Option<String>
Check if coordinate transformation is needed.
Returns Some(from_to_string) if input_coord != output_coord
pub fn resolve_view_transform(&self) -> Result<ViewTransform, String>
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations§
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
Source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.