Closed jrastinejad closed 5 months ago
I fixed one typo and the code runs now. But I tried testing it on a random source in the DESI table, and I found out that that source has 0 flux in all bands:
sassy=# select targetid, target_ra, target_dec, z, flux_g, flux_r, flux_z, fiberflux_g, fiberflux_r, fiberflux_z from desi_spec_q3c limit 1;
targetid | target_ra | target_dec | z | flux_g | flux_r | flux_z | fiberflux_g | fiberflux_r | fiberflux_z
--------------------+--------------------+--------------------+--------------------+--------+--------+--------+-----------------------+----------------------+----------------------
616089230757593610 | 23.914121939862518 | 29.974787585945496 | 1.0791710884059862 | 0 | 0 | 0 | -0.003990191034972668 | 0.026369713246822357 | 0.002765043405815959
(1 row)
We should figure out what this means and decide how to treat matches like this. Right now the code just crashes.
Hey Griffin, I pushed new changes so now the code:
I looked at the first 20 rows of the DESI table, and only one object did not have a flux_r nor Gaia value. It's spec-z was high (1.2) which leads me to believe we won't miss bright nearby hosts.
Two questions for @jrastinejad: