-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update skyportal and kowalski * update K and SP
- Loading branch information
1 parent
a80bdde
commit 770f9d6
Showing
6 changed files
with
180 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
[ | ||
{ | ||
"$project": { | ||
"cutoutScience": 0, | ||
"cutoutTemplate": 0, | ||
"cutoutDifference": 0 | ||
} | ||
}, | ||
{ | ||
"$lookup": { | ||
"from": "ZTF_alerts_aux", | ||
"localField": "objectId", | ||
"foreignField": "_id", | ||
"as": "aux" | ||
} | ||
}, | ||
{ | ||
"$replaceRoot": { | ||
"newRoot": { | ||
"$mergeObjects": [ | ||
{ | ||
"$arrayElemAt": [ | ||
"$aux", | ||
0 | ||
] | ||
}, | ||
"$$ROOT" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"$project": { | ||
"cross_matches": 1, | ||
"prv_candidates": { | ||
"$filter": { | ||
"input": "$prv_candidates", | ||
"as": "item", | ||
"cond": { | ||
"$in": [ | ||
"$$item.programid", | ||
[ | ||
1 | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
"schemavsn": 1, | ||
"publisher": 1, | ||
"objectId": 1, | ||
"candid": 1, | ||
"candidate": 1, | ||
"classifications": 1, | ||
"coordinates": 1 | ||
} | ||
}, | ||
{ | ||
"$match": { | ||
"candidate.drb": { | ||
"$gt": 0.9999999 | ||
}, | ||
"cross_matches.CLU_20190625.0": { | ||
"$exists": false | ||
} | ||
} | ||
}, | ||
{ | ||
"$addFields": { | ||
"annotations.author": "dd", | ||
"annotations.mean_rb": { | ||
"$avg": "$prv_candidates.rb" | ||
} | ||
} | ||
}, | ||
{ | ||
"$project": { | ||
"_id": 0, | ||
"candid": 1, | ||
"objectId": 1, | ||
"annotations": 1 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
[ | ||
{ | ||
"$project": { | ||
"cutoutScience": 0, | ||
"cutoutTemplate": 0, | ||
"cutoutDifference": 0 | ||
} | ||
}, | ||
{ | ||
"$lookup": { | ||
"from": "ZTF_alerts_aux", | ||
"localField": "objectId", | ||
"foreignField": "_id", | ||
"as": "aux" | ||
} | ||
}, | ||
{ | ||
"$project": { | ||
"cross_matches": { | ||
"$arrayElemAt": [ | ||
"$aux.cross_matches", | ||
0 | ||
] | ||
}, | ||
"prv_candidates": { | ||
"$filter": { | ||
"input": { | ||
"$arrayElemAt": [ | ||
"$aux.prv_candidates", | ||
0 | ||
] | ||
}, | ||
"as": "item", | ||
"cond": { | ||
"$in": [ | ||
"$$item.programid", | ||
[ | ||
1 | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
"schemavsn": 1, | ||
"publisher": 1, | ||
"objectId": 1, | ||
"candid": 1, | ||
"candidate": 1, | ||
"classifications": 1, | ||
"coordinates": 1 | ||
} | ||
}, | ||
{ | ||
"$match": { | ||
"candidate.drb": { | ||
"$gt": 0.9999999 | ||
}, | ||
"cross_matches.CLU_20190625.0": { | ||
"$exists": false | ||
} | ||
} | ||
}, | ||
{ | ||
"$addFields": { | ||
"annotations.author": "dd", | ||
"annotations.mean_rb": { | ||
"$avg": "$prv_candidates.rb" | ||
} | ||
} | ||
}, | ||
{ | ||
"$project": { | ||
"_id": 0, | ||
"candid": 1, | ||
"objectId": 1, | ||
"annotations": 1 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule kowalski
updated
from 549983 to 653100
Submodule skyportal
updated
88 files