Skip to content

Commit de63b84

Browse files
committed
Restrict coordinates for CDS
1 parent 2614b3d commit de63b84

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

fink_science/rubin/xmatch/processor.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ def cdsxmatch(
157157
"cols2": cols.to_numpy()[0],
158158
"colRA1": "ra_in",
159159
"colDec1": "dec_in",
160+
"area": "zone",
161+
"raMin": ra.min(),
162+
"decMin": dec.min(),
163+
"raMax": ra.max(),
164+
"decMax": dec.max(),
160165
},
161166
files={"cat1": table},
162167
)
@@ -448,7 +453,7 @@ def crossmatch_with_tns(diaSourceId, ra, dec):
448453

449454
ra2 = ra2[mask]
450455
dec2 = dec2[mask]
451-
type2 = payload[mask]
456+
payload = payload[mask]
452457

453458
# create catalogs
454459
catalog_lsst = SkyCoord(

0 commit comments

Comments
 (0)