NSF-Swift / satellite-overhead

An open-source tool for calculating satellite interference to radio astronomy observations.
https://pypi.org/project/sopp/
GNU Affero General Public License v3.0
0 stars 2 forks source link

fix: Convert bandwidth data read from satellite-frequency-scrapper .csv to MHz #119

Closed 0xeb-bp closed 7 months ago

0xeb-bp commented 7 months ago

This PR resolves issue #108.

As it stands, the data class FrequencyRange expects both frequency and bandwidth to be supplied in MHz.

The satellite frequency data .csv file generated by the sat-frequency-scrapper provides bandwidth in KHz. Translation has been added that converts from KHz to MHz before then populating the satellites with their frequency data.

This resolves a potential bug where calculating frequency overlap between the observation frequency and the satellite frequency would produce incorrect results.