You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this notebook we use probably the non-official zeropoint package. The API of the official one differs.
fromastroquery.gaiaimportGaiafromzero_pointimportzpt# Necessary line in the new APIzpt.load_tables()
# get some dummy dataquery=r"""select * from gaiaedr3.gaia_sourcewhere phot_g_mean_mag between 17.9 and 18.1and random_index between 700000000 and 700001000and (astrometric_params_solved = 31 or astrometric_params_solved = 95)"""data=Gaia.launch_job(query).get_results().to_pandas()
gmag=data['phot_g_mean_mag'].valuesnueffused=data['nu_eff_used_in_astrometry'].valuespsc=data['pseudocolour'].valuesecl_lat=data['ecl_lat'].valuessoltype=data['astrometric_params_solved'].values# one line to rule them all in one shot. (no more zpt4 or zpt5)zpvals=zpt.get_zpt(gmag, nueffused, psc, ecl_lat, soltype)
The text was updated successfully, but these errors were encountered:
docs/notebooks/RedClump_GSP-Spec_SF.ipynb
In this notebook we use probably the non-official zeropoint package. The API of the official one differs.
The text was updated successfully, but these errors were encountered: