RadioAstronomySoftwareGroup / pyradiosky

Python objects and interfaces for representing diffuse, extended and compact astrophysical radio sources
https://pyradiosky.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
14 stars 5 forks source link

FHD catalogs are read in with wrong frequency units #213

Closed nicelmh closed 10 months ago

nicelmh commented 1 year ago

If you print the reference frequency of an FHD catalog read in with pyradiosky, the units are in Hz when they should be in MHz. I think one way to fix this would be to change reference_frequency=Quantity(source_freqs, "hertz") in read_fhd_catalog such that source_freqs is multiplied by 10**6 (ideally with an if statement checking the magnitude first).