Skip to content

Commit

Permalink
edit mwm_snc_further_ext.py
Browse files Browse the repository at this point in the history
  • Loading branch information
astronomygupta committed Jul 9, 2024
1 parent ecb0816 commit cf578f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/target_selection/cartons/mwm_snc_further_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ def build_query(self, version_id, query_region=None):
19.125 - 0.03225 * (1000 / Gaia_DR3.parallax)
).cte('plx_mag_cte', materialized=True)

query = (Gaia_DR3.select().join(CatalogToGaia_DR3).join_from(
query = (Gaia_DR3.select(Gaia_DR3.source_id, Gaia_DR3.l, Gaia_DR3.b,\
Gaia_DR3.parallax, Gaia_DR3.parallax_error, Gaia_DR3.phot_g_mean_mag,\
Gaia_DR3.phot_bp_mean_mag, Gaia_DR3.phot_rp_mean_mag, Gaia_DR3.ruwe,\
Gaia_DR3.phot_bp_rp_excess_factor, Gaia_DR3.astrometric_excess_noise)\
.join(CatalogToGaia_DR3).join_from(
Gaia_DR3, cte, on=(Gaia_DR3.source_id == cte.c.source_id)).where((
(Gaia_DR3.astrometric_excess_noise < 2) &
(Gaia_DR3.ruwe < 1.2) &
Expand Down

0 comments on commit cf578f1

Please sign in to comment.