figure_measurement#
- esis.flights.f1.optics.gratings.figures.figure_measurement(manufacturing_number, aperture, axis_x='grating_x', axis_y='grating_y')[source]#
Load our measurement of the figure of the gratings which flew.
We measured each of the four gratings three times at Montana State University in June 2018, with an interferometer at the center of curvature of the grating, while we measured its radius of curvature, and aligned it again before each measurement. The maps are downloaded from the esis-data-2019 repository the first time they are needed, as the files which the software of the interferometer saved, and are made into the height of the surface of each grating as follows.
The interferometer measured the difference in the optical path to the grating and back. Its software subtracts a measurement of its reference sphere when it analyzes a map, but it saved the maps before that, so the reference is subtracted here, smoothed by a Gaussian
_width_referencewide. Half of the difference is the height of the surface.The clear aperture of the grating is a bright trapezoid in the interferogram saved with each map, and the grating moved and turned a little between its measurements.
apertureis fitted to the edges of the trapezoid, with the size of the pixels which the software saved with the map, and the map is interpolated onto a grid in the coordinates of the grating, spaced like the pixels of the first of the three maps.The map is cut to
aperture, less a border_width_edgewide, where the ruled area of the grating meets the border of its blank.Piston, tilt, and power are removed from each map, since they are how the grating was aligned rather than its figure. Its radius of curvature was measured on its own.
The three maps of each grating are averaged where all three of them measured it, and piston, tilt, and power are removed from the mean.
The clear aperture is symmetric about the \(x\) axis, so the fit cannot tell which way the grating faced the interferometer about it. The map is placed as the interferometer saw the grating, with the rows of its pixels along \(x\) and its columns along \(y\).
- Parameters:
manufacturing_number (AbstractScalar) – The number of the blank of each grating, such as
"UBO-16-024". The result has the axes of this array, as well asaxis_xandaxis_y.aperture (AbstractPolygonalAperture) – The clear aperture of the gratings, in the coordinates of their surfaces, which must be convex and the same for every grating.
axis_x (str) – The name of the logical axis along \(x\), from the inner edge of the clear aperture to its outer edge.
axis_y (str) – The name of the logical axis along \(y\).
- Raises:
ValueError – If the clear aperture differs from one grating to another, or if there is no measurement of one of the gratings.
- Return type:
Examples
Plot the map of each grating.
import matplotlib.pyplot as plt import astropy.units as u import named_arrays as na import esis grating = esis.flights.f1.optics.as_built_unfocused().grating figure = esis.flights.f1.optics.gratings.figures.figure_measurement( manufacturing_number=grating.manufacturing_number, aperture=grating.surface.aperture, ) fig, axs = na.plt.subplots( axis_cols="channel", ncols=figure.outputs.shape["channel"], sharex=True, sharey=True, constrained_layout=True, figsize=(10, 3), ) na.plt.pcolormesh( figure.inputs.y.to(u.mm).value, figure.inputs.x.to(u.mm).value, C=figure.outputs.to(u.nm).value, ax=axs, cmap="RdBu_r", vmin=-8, vmax=8, ) for ax in axs.ndarray: ax.set_aspect("equal") ax.set_xlabel("$y$ (mm)") axs.ndarray[0].set_ylabel("$x$ (mm)")
Text(0, 0.5, '$x$ (mm)')