demo_compare_to_gaia
Script to compare SynthPop output to GAIA DR3 Universe Model and Source Catalog
Attributes
Classes
Comparison between Gaia data/model and SynthPop model |
Functions
|
Write a pandas DataFrame to a CSV file in chunks of a specific size. |
|
|
|
|
|
|
|
Module Contents
- demo_compare_to_gaia.DIRNAME
- demo_compare_to_gaia.DIRNAME = '.'
- demo_compare_to_gaia.coordtrans
- demo_compare_to_gaia.DIRNAME
- demo_compare_to_gaia.DIRNAME = '.'
- demo_compare_to_gaia.GaiaModel
- demo_compare_to_gaia.GUMS_QUERY
- demo_compare_to_gaia.gums_ids
- demo_compare_to_gaia.GREEN
- demo_compare_to_gaia.BLUE
- demo_compare_to_gaia.RED
- demo_compare_to_gaia.ORANGE
- demo_compare_to_gaia.write_csv_in_chunks(filename, df, chunksize=1000, columns=None)
Write a pandas DataFrame to a CSV file in chunks of a specific size.
- Args:
filename (str): Name of the output file. df (pandas.DataFrame): DataFrame to write to the output file. chunksize (int, optional): Size of the chunks to write. Default is 1000.
- Returns:
None
- class demo_compare_to_gaia.CompareGaia(n_locations=10, radius_deg=1 / np.sqrt(np.pi) / 10**0.5, loc='disk', **kwargs)
Comparison between Gaia data/model and SynthPop model
- loc = 'disk'
- mod1
- mod2
- complete_synth1_filtered
- complete_synth2_filtered
- download_cat()
- run_synthpop()
generate the GUMS model
- load_data(regenerate=False, redownload=True)
- plot_hist_G()
- plot_cmd()
- plot_cmd_diff()
- plot_density(maglim=20.5, bin_width=0.15)
- plot_density_hist()
- get_combined_density(pop_ids, d_kpc)
- plot_comp_cmds(alpha=0.1, ms=0.1, **kwargs)
- plot_dens_hist_pop(g_lim=20, bin_width=0.2)
- demo_compare_to_gaia._plot_density(mass, dist, solid_angle, bin_width, label='', **kwargs)
- demo_compare_to_gaia.plot_log_ratio(data, xlim, ylim, vmin=0.1, vmax=10.0, cmap='bwr', **kwargs)
- demo_compare_to_gaia.plot_lin_diff(data, xlim, ylim, vmin=None, vmax=None, cmap='bwr', **kwargs)
- demo_compare_to_gaia._dense_hist(weights, dist, bins, solid_angle, **kwargs)
- demo_compare_to_gaia.field