@@ -114,8 +114,6 @@ def __init__(self, uv, px_dic, epoch='J2000', feed=None,
114
114
height = uv .telescope_location_lat_lon_alt_degrees [2 ]* u .m )
115
115
116
116
self .uv = uv
117
- # self.nside = nside
118
- # self.npix = hp.nside2npix(nside)
119
117
self .hera_dec = self .uv .telescope_location_lat_lon_alt [0 ]
120
118
self .lsts = np .unique (self .uv .lst_array )
121
119
self .times = np .unique (uv .time_array )
@@ -128,9 +126,7 @@ def __init__(self, uv, px_dic, epoch='J2000', feed=None,
128
126
self .feed_type = 'vivaldi'
129
127
else :
130
128
self .feed_type = feed
131
- #print('RA/DEC in the epoch of %s, with %s beam used.'%(self.equinox, self.feed_type))
132
129
133
- # theta, phi = hp.pix2ang(nside, range(self.npix))
134
130
self .ra = np .radians (px_dic ['ra_deg' ]).flatten ()
135
131
self .dec = np .radians (px_dic ['dec_deg' ]).flatten ()
136
132
self .px_sa = px_dic ['sa_sr' ].flatten ()
@@ -174,8 +170,6 @@ def _radec2azalt(self, ra, dec, time):
174
170
aa = AltAz (location = self .hera_site , obstime = obs_time )
175
171
if self .equinox == 'J2000' :
176
172
c = SkyCoord (ra = ra , dec = dec , unit = 'radian' , frame = TETE (obstime = self .equinox ))
177
- #c = SkyCoord(ra=ra, dec=dec, unit='radian', frame='icrs')
178
- #print('ICRS')
179
173
elif self .equinox == 'Current' :
180
174
c = SkyCoord (ra = ra , dec = dec , unit = 'radian' , frame = TETE (obstime = obs_time ))
181
175
else :
@@ -215,7 +209,6 @@ def set_pyuvbeam(self, beam_model):
215
209
pyuvbeam .read_beamfits (beamfits_file )
216
210
pyuvbeam .efield_to_power ()
217
211
pyuvbeam .select (polarizations = self .uv .polarization_array )
218
- #print(pyuvbeam.polarization_array)
219
212
pyuvbeam .peak_normalize ()
220
213
pyuvbeam .interpolation_function = 'az_za_simple'
221
214
pyuvbeam .freq_interp_kind = 'cubic'
@@ -245,8 +238,7 @@ def set_a_mat(self, uvw_sign=1, apply_beam=True):
245
238
self .beam_mat = np .zeros (self .phase_mat .shape , dtype = 'float64' )
246
239
self .sa_mat = np .zeros (self .phase_mat .shape , dtype = 'float64' )
247
240
self .set_pyuvbeam (beam_model = self .feed_type )
248
- # freq_array = np.array([self.frequency,])
249
- freq_array = np .array ([169e6 ,])
241
+ freq_array = np .array ([self .frequency ,])
250
242
for time_t in np .unique (self .uv .time_array ):
251
243
az_t , alt_t = self ._radec2azalt (self .ra , self .dec , time_t )
252
244
lmn_t = np .array ([np .cos (alt_t )* np .sin (az_t ),
0 commit comments