Closed Jackmastr closed 3 years ago
Thanks @Jackmastr for the nice detailed report.
@aelanman: what is the intended behaviour of the input catalog above? Is the idea that each source has flat spectral index?
@steven-murray Yes. The reference simulation catalogs are all flat-spectrum.
@aelanman should this always be the assumption though? Why does the catalog mention one frequency if we assume a constant flux across all frequencies?
Recent updates to pyuvsim do support non-flat spectra, and we're working on a new set of reference simulations that take advantage of this. The frequency mentioned in the catalog was a placeholder for future frequency support, which ultimately never got used.
I'm trying to think what the best way forward here is. Should hera_sim
assume that if the catalog file defines only a single frequency, that it is flat-spectrum, and extend the frequencies according to the obsparam file?
The freq
column in catalogs is deprecated. It was never used in the first place, and with the addition of full-frequency HEALPix maps, we needed multiple reference frequencies for each source anyway. What we're moving toward in pyradiosky
is to have a freq_array
attribute, with the same length as the fluxes for each source. So far (to my knowledge), only two spectral definitions are supported:
freq_array
freq_array
being arbitrary.We're adding support for spectral indices, interpolating between subbands, etc.
I think this further indicates the need for new reference simulations...
I'm pretty sure this is fixed now. Feel free to re-open if you still find it buggy, @Jackmastr
Description
A
VisibilitySimulator
currently cannot be tested against all of thepyuvsim
reference simulations because it is are too restrictive in the format for itsobsparam
parameter. It should assume that there is zero flux at a given frequency if there are no sources that emit at that frequency. Instead it throws a ValueError.To Reproduce
Pass a
VisibilitySimulator
such asVisCPU
anobsparam
file with Nfreq > 1 and a catalog that only lists sources that emit at 1 frequency.pyuvsim
's reference_simulations/obsparam_ref_1.3_gauss.yaml file is one such example with Nfreq = 6250.Files
simulators.py
lines 91-94
lines 101-103
lines 136-137
lines 164-167
pyuvsim: reference_simulations/obsparam_ref_1.3_gauss.yaml
pyuvsim: reference_simulations/catalog_files/letter_R_12pt_2458098.38824015.txt