Skip to content

Commit

Permalink
a_size, b_diameter, and i_diameter TBs + others
Browse files Browse the repository at this point in the history
  • Loading branch information
abeerfatima committed Oct 17, 2023
1 parent 4d6423e commit 67de1d9
Show file tree
Hide file tree
Showing 7 changed files with 5,809 additions and 1,061 deletions.
7 changes: 1 addition & 6 deletions architect/systems/optical/spectrometers.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def get_ratio_cropped_light_through_slit(self):
effective_width = min(
self.slit.get_size()[0], self.foreoptic.get_image_diameter()
)

effective_slit_area = effective_width * self.slit.get_size()[1]
ratio = effective_slit_area / self.foreoptic.get_image_area()

Expand All @@ -70,9 +69,7 @@ def get_signal_to_noise(self, radiance: LUT, wavelength: unit.m):
"""

snr = self.get_signal(
radiance=radiance, wavelength=wavelength
) / self.get_noise(wavelength=wavelength, radiance=radiance)
snr = self.get_signal(radiance=radiance, wavelength=wavelength) / self.get_noise(wavelength=wavelength, radiance=radiance)

return snr.decompose()

Expand Down Expand Up @@ -233,9 +230,7 @@ def get_swath(
skew_angle: the skew angles in the across and along-track directions.
"""

fov = self.get_FOV()

swath = altitude * (
np.tan(skew_angle + 0.5 * fov) - np.tan(skew_angle - 0.5 * fov)
)
Expand Down
Loading

0 comments on commit 67de1d9

Please sign in to comment.