#astronomy #giant-magellan-telescope #telescope

eyepiece

A crate to generate star fields as seen with different telescopes

12 releases (7 breaking)

0.8.1 Jul 14, 2023
0.7.1 Jul 11, 2023
0.6.1 Dec 24, 2022

#842 in Simulation

Download history 4/week @ 2025-10-06 6/week @ 2025-10-13 2/week @ 2025-10-20

68 downloads per month
Used in ifu

MIT license

7MB
3K SLoC

Eyepiece

A crate to generate star fields as seen with different telescopes.

Example

A single star in the center of a 21x21 pixels field as seen by the Hubble Space Telescope with a pixel scale at half Nyquist (i.e. (λ/2D)/2) in V band

use eyepiece::{Builder, Hst, Field, FieldBuilder, PixelScale, Star};

let hst = Hst::new();
let mut field: Field<Hst> = FieldBuilder::new(hst)
    .pixel_scale(PixelScale::NyquistFraction(2))
    .field_of_view(21)
    .build();

The field intensity map is computed and saved with

field.save("field.png", Default::default()).unwrap();

More examples can be found here


Eyepiece

A crate to generate star fields as seen with different telescopes.

As an example here is a 1arcsec X 1arcsec K band image, with a 5mas pixel scale, of a simulated global cluster, seen with:

  • the Hubble Space Telescope
HST
  • the James Webb Space Telescope
JWST
  • the Giant Magellan Telescope
GMT

Dependencies

~12–24MB
~287K SLoC