ifu

Crates.ioifu
lib.rsifu
version0.2.2
sourcesrc
created_at2023-07-13 15:43:37.169906
updated_at2023-07-14 19:37:38.79247
descriptionGMT MANIFEST IFU Model
homepage
repositoryhttps://github.com/rconan/eyepiece
max_upload_size
id915461
size43,460
Rod Conan (rconan)

documentation

https://docs.rs/eyepiece

README

MANIFEST IFU

A simple model for GMT MANIFEST IFU. There are 3 possible types of IFU to choose from:

  • a 7 hexagons IFU,
  • a round IFU,
  • a slit IFU.

The model computes the seeing image and write it to field.png and for the chosen IFU, it masks the image, write it to <hex|round|slit>_ifu_field.png and print the IFU throughput.

Usage

The throughput of a circular IFU of diameter 0.5arcsec for r0=20cm , 50degree of zenith at 800nm is found with:

ifu --r0 20 -z 50 -b I round -d 0.5

Replacing the round IFU with a slit the same size:

ifu --r0 20 -z 50 -b I slit -w 0.5

or with the 7 hexagons IFU

ifu --r0 20 -z 50 -b I hex -w 0.5

Installing

To use the model, you need first to install Rust and then install the model with:

cargo install ifu

Running

The model, with the default 7 hexagon IFU, is run with:

ifu

or run each IFU type with

  • 7 hexagons IFU
ifu hex
  • round IFU
ifu round
  • slit IFU
ifu slit

Check the model options with:

ifu --help

or check each IFU options with

  • 7 hexagons IFU
ifu hex --help
  • round IFU
ifu round --help
  • slit IFU
ifu slit --help
Commit count: 84

cargo fmt