noobase (Rust core)
Foundational pure-function utilities for astronomy analysis.
This is the Rust core of the noobase project. See the project README for overview, quick start, and Python bindings.
Use
[]
= "0.0.6"
Public surface
axis::Grid— 1-D monotonic axisaxis::overlap— overlap-weighted rebin primitivesconvolve— pure 1-D / axis / 2-D correlation kernels,gaussian1d, and NaN-as-missing renormalized variants (shared byimageandspectroscopy::lsf)spectroscopy::Spectrum— spectrum container with optional error / maskspectroscopy::LsfSpec+Spectrum::convolve_lsf— Gaussian LSF broadening for noise-free spectral templatesspectroscopy::synthetic_photometry::{synthetic, SyntheticOperator}— synthetic photometry through transmission curvesimage::reproject_exact— surface-brightness-conserving image reprojection via planar polygon clipping (rayon-parallel)image::{convolve_psf, convolve_gaussian_axis}— true 2-D PSF convolution and 1-D Gaussian axis correlation / matched filteringimage::stamp::build_stamp— point-source recenter + fixed-window stamp extraction (sub-pixel centroid recorded, not applied)image::psf— oversampled-ePSF / extended-PSF construction stack:build_epsf,build_extended_psf, plus therobust_combine/solve_flux_background/stitch_psfleaves and therender/accumulateadjoint pairaperture::region_growing::grow_mask— adaptive aperture mask via heap-driven greedy growth from one or more seed pixels, terminated by an inner-annulus SNR stop and a radial-gradient stop (each with independent hysteresis); optionalLabelInputwhitelist gates which segmentation labels the mask may enterFloat— single trait re-export at the crate root for downstream generics; every other public name is reached through its submodule (e.g.noobase::axis::Grid, notnoobase::Grid)
Examples
use ;
use ;
use image;
use ;
let wavelength = linspace;
let flux = from_elem;
let template = new.unwrap;
let broadened = template.convolve_lsf.unwrap;
let image_in = ones;
let psf = from_elem;
let convolved = convolve_psf;
assert_eq!;
assert_eq!;
Status
Pre-1.0, API unstable. Breaking changes expected between minor versions.
License
MIT.