Skip to content

AtomsForHire/calmet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calmet

Caution

I'm still actively converting my personal python script into this CLI utility, so I haven't tested much just yet.

Warning

Compilation has been tested on Mac Sequoia 15.5 only, at the moment.

Installation

Dependencies

  1. Make sure cargo is installed on your system.
  2. You will also need cfitsio >= 3.37 for the rust-fitsio crate.
    • If you have a C compiler + autotools + make, you can use the fitsio-src feature to have cargo compile cfitsio from source (following the rust-fitsio documentation).

Example commands

  1. Install with cfitsio already available on your system
> git clone git@github.com:AtomsForHire/calmet.git
> cd calmet && cargo install --path .
  1. Install with cargo compiling cfitsio for you
> git clone git@github.com:AtomsForHire/calmet.git
> cd calmet && cargo install --path . --features=fitsio-src

Usage

To use this tool, simply run calmet to output available subcommands and their description. Running calmet <subcommand> will also print out available options. Currently, all commands require and input for the -f or --files options.

Example:

$ calmet
Calculates metrics from hyperdrive calibration solutions and FITS images

Usage: calmet <COMMAND>

Commands:
  img-metrics    Calculate all image metrics
  cal-metrics    Calculate all calibration metrics
  amp-metrics    Calculate only EW and NS gain smoothness
  phase-metrics  Calculate only EW and NS phase metrics
  help           Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help
$ calmet cal-metrics
Calculate all calibration metrics

Usage: calmet cal-metrics [OPTIONS]

Options:
  -f, --files <FILES>...
  -h, --help              Print help
$ calmet cal-metrics -f *.fits
Calculating amplitude smoothness, phase RMSE, and phase average euclidean distance
Finished

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages