Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redid the ground sampling distance equation #121

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions architect/systems/optical/spectrometers.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,19 +206,31 @@ def get_iFOV(self):

return iFOV

def get_sensor_spatial_resolution(self, target_distance):
def get_sensor_spatial_resolution(self, target_distance, skew_angle):
"""Get the sensor-limited spatial resolution.

Ref: https://www.notion.so/utat-ss/Sensor-Limited-Spectral-Resolution-5071f076997f4b59851f73127822fb23
Ref: https://www.notion.so/utat-ss/Sensor-Limited-Spatial-Resolution-e009528833ec4aebba532476aab15bef

"""
assert self.sensor is not None, "A sensor component must be specified."
assert self.foreoptic is not None, "A foreoptic component must be specified."

spatial_resolution = (
target_distance
* self.sensor.get_pitch()
/ self.foreoptic.get_focal_length()
(
target_distance
* self.sensor.get_pitch()
/ self.foreoptic.get_focal_length()
)
* np.power(
np.cos(np.arctan((19 * unit.mm) / (self.foreoptic.focal_length))), 2
)
/ np.power(
np.cos(
np.arctan((19 * unit.mm) / (self.foreoptic.focal_length))
+ skew_angle
),
2,
)
)

return spatial_resolution
Expand Down Expand Up @@ -268,7 +280,8 @@ def get_spatial_resolution(self, wavelength, target_distance, skew_angle=0):
spatial_resolution = self.spatial_resolution
else:
sensor_spatial_resolution = self.get_sensor_spatial_resolution(
target_distance=target_distance
target_distance=target_distance,
skew_angle=skew_angle,
)

optical_spatial_resolution = self.get_optical_spatial_resolution(
Expand Down
Loading