Skip to content

Commit

Permalink
Add a 6th stage to bring in guide stars as bright as 5.8 mag
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanconn committed Feb 17, 2019
1 parent 9b51491 commit a049cf2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
13 changes: 13 additions & 0 deletions proseco/characteristics_guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,24 @@
},
"Imposter": {
"CentroidOffsetLim": 4.5,
}},
{"Stage": 6,
"SigErrMultiplier": 0,
"ASPQ1Lim": 20,
"MagLimit": [5.6, 10.3],
"DoBminusVcheck": 0,
"Spoiler": {
"BgPixThresh": 25,
"RegionFrac": .05,
},
"Imposter": {
"CentroidOffsetLim": 4.0,
},
}
]



# Guide cluster checks.
# Index is the "n_minus" value, so n - 0 stars need minimum 2500 max separation
# n - 1 stars require 1000 arcsec separation.
Expand Down
5 changes: 3 additions & 2 deletions proseco/guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,12 @@ def search_stage(self, stage):
# For the bright end of the check, set a lower bound to always use at least 1
# mag_err, but do not bother with this bound at the faint end of the check.
# Also explicitly confirm that the star is not within 2 * mag_err of the hard
# bright limit.
# bright limit (which is basically 5.8, but if bright lim set to less than 5.8
# in the stage, take that).
bad_mag = (
((cand_guides['mag'] - max(n_sigma, 1) * mag_err) < bright_lim) |
((cand_guides['mag'] + n_sigma * mag_err) > faint_lim) |
((cand_guides['mag'] - 2 * mag_err) < 5.8))
((cand_guides['mag'] - 2 * mag_err) < min(bright_lim, 5.8)))
for idx in np.flatnonzero(bad_mag):
self.reject({'id': cand_guides['id'][idx],
'type': 'mag outside range',
Expand Down

0 comments on commit a049cf2

Please sign in to comment.