AbstractPrimaryMirror#
- class esis.optics.abc.AbstractPrimaryMirror[source]#
Bases:
Printable,Replaceable,Rollable,Yawable,Pitchable,TranslatableAn interface describing the primary mirror of the instrument.
Attributes
The optics material composing this object.
The RMS microroughness of this mirror.
The order of the rotational symmetry of the optical system.
pitch angle of this object
The clear radius of the aperture from center to vertex.
The radius of the mechanical aperture from center to vertex.
roll angle of this object
The RMS roughness of this mirror.
The sag function of this primary mirror.
The RMS slope error of the figure of this mirror.
Represent this object as an
optikasurface.the coordinate transformation between the global coordinate system and this object's local coordinate system
translate the coordinate system
The width of the border around the clear aperture.
The width of the clear aperture from edge to edge.
yaw angle of this object
Methods
__init__()replace(**changes)A copy of this object with the given fields replaced.
to_string([prefix])Public-facing version of the
__repr__method that allows for defining a prefix string, which can be used to calculate how much whitespace to add to the beginning of each line of the result.Inheritance Diagram

- replace(**changes)#
A copy of this object with the given fields replaced.
A method version of
dataclasses.replace(), matchingnamed_arrays.AbstractArray.replace(), so that a nested change reads the same at every level:system.replace( surface=system.surface.replace( sag=system.surface.sag.replace(radius=r), ), )
The copy is shallow, as
dataclasses.replace()is: every field which is not named is shared with the original, and mutating one through the copy is mutating it in both. Takecopy.deepcopy()of the result where that matters.- Parameters:
changes – The fields to overwrite in the copy.
- Return type:
- to_string(prefix=None)#
Public-facing version of the
__repr__method that allows for defining a prefix string, which can be used to calculate how much whitespace to add to the beginning of each line of the result.
- abstract property material: None | AbstractMaterial#
The optics material composing this object.
- abstract property microroughness: None | Quantity | AbstractScalar#
The RMS microroughness of this mirror.
It is measured over the periods of the
parameters_microroughnessofsag. In a design, this is the specification of the mirror, and in a model of the mirror as built, its measurement.
- abstract property num_folds: Quantity | AbstractScalar#
The order of the rotational symmetry of the optical system.
This is also the number of sides of the regular polygonal aperture.
- abstract property pitch: Quantity | int | float | complex | ndarray | AbstractScalar#
pitch angle of this object
- property radius_clear: Quantity | AbstractScalar#
The clear radius of the aperture from center to vertex.
- Raises:
ValueError – If the number of sides is not an even number.
- property radius_mechanical: Quantity | AbstractScalar#
The radius of the mechanical aperture from center to vertex.
- Raises:
ValueError – If the number of sides is not an even number.
- abstract property roll: Quantity | int | float | complex | ndarray | AbstractScalar#
roll angle of this object
- abstract property roughness: None | Quantity | AbstractScalar#
The RMS roughness of this mirror.
It is measured over the periods of the
parameters_roughnessofsag. In a design, this is the specification of the mirror, and in a model of the mirror as built, its measurement.
- abstract property sag: None | AbstractSag#
The sag function of this primary mirror.
- abstract property slope_error: None | Quantity | AbstractScalar#
The RMS slope error of the figure of this mirror.
It is measured with the step and kernel sizes of the
parameters_slope_errorofsag. In a design, this is the specification of the mirror, and in a model of the mirror as built, its measurement.
- property transformation: AbstractTransformation#
the coordinate transformation between the global coordinate system and this object’s local coordinate system
- abstract property translation: Quantity | AbstractScalar | AbstractVectorArray#
translate the coordinate system
- abstract property width_border: Quantity | AbstractScalar#
The width of the border around the clear aperture.
- abstract property width_clear: Quantity | AbstractScalar#
The width of the clear aperture from edge to edge.