Skip to content

Commit

Permalink
Set standard_xcorr to use last 5 years of data
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanconn committed May 22, 2017
1 parent 0cb7169 commit 87bfcf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions standard_xcorr.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ SELECT *, x.id AS x_id,
JOIN astromon_cat_src AS c ON x.obsid = c.obsid
JOIN astromon_obs AS o ON x.obsid = o.obsid
WHERE o.process_status = 'OK'
-- Get the ones in the last 5 years
AND julianday('now') - julianday(o.date_obs) < (5 * 365)
AND x.snr > 5.0
--- AND (x.status_id = NULL or x.status_id = 0) [KEEP so they can be seen if desired]
AND x.near_neighbor_dist > 6.0
Expand Down

0 comments on commit 87bfcf9

Please sign in to comment.