Skip to content

Conversation

@emilyyu07
Copy link

Purpose

Closes #355
Addresses changes requested to doppler shift calculator

New Changes

Addresses changes requested to doppler shift calculator

  • made time_current and timescale parameters to be passed into load_satellite and calculate_relative_velocity
  • made transmission freq a constant instead of raw hardcoded value

Testing

Outstanding Changes

If there are non-critical changes (i.e. additional features) that can be made to this feature in the future, indicate them here.

@github-actions
Copy link

github-actions bot commented Feb 8, 2026

Pull reviewers stats

Stats of the last 120 days for UWOrbital:

User Total reviews Time to review Total comments
camspec
🥇
31
▀▀▀▀
2d 21h 18m
164
▀▀▀▀▀
proprogrammer504
🥈
17
▀▀
17h 31m
44
Adityya-K
🥉
15
▀▀
5d 1h 12m
▀▀
50
▀▀
Syzygicality
11
18h 48m
37
kepler452b123
2
3d 5h 7m
1
joannalauu
2
4d 2h 46m
10
c4bae
1
13d 1h 35m
▀▀▀▀
2
panthpatel2016
1
4h 30m
6

⚡️ Pull request stats

Copy link
Member

@camspec camspec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but we should double-check the formula, if we could get a confirmation from Finn it would be nice but that may not be possible

"""
@brief Computes relative velocity between satellite and observer
@param satellite: EarthSatellite object
@param observer_latitude_degree: Latitude of observer in degrees
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This docstring should match the param name

@returns Doppler-shift frequency in Hz
"""
return frequency_hz * (
((SPEED_OF_LIGHT_METERS_PER_SECOND + relative_velocity_m_s) / SPEED_OF_LIGHT_METERS_PER_SECOND) - 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finn might've made a mistake with his formula, this simplifies to frequency_hz * (relative_velocity_m_s / speed of light), but I'm pretty sure it's frequency_hz * (speed of light / (speed of light + relative_velocity_m_s))

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're trying to get the observed frequency itself but this seems closer to an approximation of the shift

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Doppler Shift calculator

3 participants