Expand description
§mavdac
MAVIS Differential Astrometric Calibrator. This crate provides the low-level functions used by the high-level Python API (see mavdac on github). The intented usage of this crate is through the Python API, but it may be possible to build other calibration tools on top of this crate.
§Examples
use mavdac::{Image,Grid,Vec2D};
let imgs: Vec<Image> = mavdac::load_images("./imgs/img_*.fits").unwrap();
let grid = Grid::Hex {
pitch: 100.0, // pixels
rotation: 0.0, // radians
offset: Vec2D{x:0.0,y:0.0} // pixels
};
let cogs = mavdac::measure_cogs(
imgs, // vector of images
grid, // grid geometry
10, // radius for centroider
10_000.0, // flux threshold for "valid" cogs
);
// all of the remaining tasks are done in python, since numpy.linalg is more
// reliable than any rust linalg solution I tried. Structs§
- BiVar
Fourier Distortions - Bivariate Fourier-Based functions to be used as distortion basis function
- BiVar
Poly Distortions - Bivariate Homogenous Polynomial to be used as distortion basis function
- Centroid
- centroid type, to be populated by centroider
- Coordinate
- coordinate struct for interfacing with coordinate files
- Image
- Image struct, with metadata corresponding to calibration
- Vec2D
- 2D vector, corresponding to float-valued pixel positions
Enums§
- Grid
- Grid type, defined from minimal parameters but able to determine all possible pinhole positions.
- MavDAC
Error - error type for mavdac crate
Traits§
- Distortion
Basis - Trait that allows standard evaluation of distortion functions
Functions§
- get_
coordinates - read coordinates from file
- load_
images - Load images from disk given a glob pattern
- measure_
cogs - measured centroids from a set of images