Skip to content

Commit

Permalink
magic weights
Browse files Browse the repository at this point in the history
  • Loading branch information
kadrlica committed Jan 5, 2024
1 parent 3dcb0a1 commit 8385614
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions obztak/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,19 +420,19 @@ def weight_magic(self):
weight = np.zeros(len(sel))

sel &=(self.fields['DEC'] < -40)
sel &= ((self.fields['RA'] > 180) | (self.fields['RA'] < 30))
#sel &= ((self.fields['RA'] > 180) | (self.fields['RA'] < 30))
# Prefer DES region
#sel &= ((self.fields['RA'] > 290) | (self.fields['RA'] < 90))
inDES = Survey.footprintDES(self.fields['RA'],self.fields['DEC'])
weight += 1e3 * ~inDES

inReg3 = MagicSurvey.region3d(self.fields['RA'],self.fields['DEC'])
weight += 5e4 * ~inReg3
#inReg3 = MagicSurvey.region3d(self.fields['RA'],self.fields['DEC'])
#weight += 5e4 * ~inReg3

# Airmass cut
airmass_min, airmass_max = self.CONDITIONS['magic']

if False: # Don't use seeing
if True: # Don't use seeing to set airmass limit
sel &= ((airmass > airmass_min) & (airmass < airmass_max))
elif self.fwhm <= 1.4:
sel &= ((airmass > airmass_min) & (airmass < airmass_max))
Expand Down

0 comments on commit 8385614

Please sign in to comment.