#telescope #astronomy #star #generate #fields #different #image

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

#13 in #star


Used in ifu

MIT license

7MB
3K SLoC

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

lib.rs:

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

Dependencies

~12–20MB
~255K SLoC