import sys
sys.path.insert(0, '../../gcr-catalogs')
sys.path.insert(0, '../../generic-catalog-reader')
import GCRCatalogs
cc = GCRCatalogs.load_catalog('um_v0.1_test_shear')
../../generic-catalog-reader/GCR/composite.py:105: UserWarning: CompositeCatalog is still an experimental feature. Use with care! warnings.warn('CompositeCatalog is still an experimental feature. Use with care!')
[cat['catalog_name'] for cat in cc.get_input_kwargs('catalogs')]
['um_v0.1_test', 'shear']
(cc[('um_v0.1_test', 'galaxy_id')] == cc[('shear', 'galaxy_id')]).all()
True
cc = GCRCatalogs.load_catalog('proto-dc2_v2.1.2_addon_knots') # this one takes a while because of md5sum check
../../generic-catalog-reader/GCR/composite.py:105: UserWarning: CompositeCatalog is still an experimental feature. Use with care! warnings.warn('CompositeCatalog is still an experimental feature. Use with care!')
[cat['catalog_name'] for cat in cc.get_input_kwargs('catalogs')]
['proto-dc2_v2.1.2', 'knots']
len(cc['knots_flux_ratio'])
10022496
len(cc['ra'])
10022496
cc = GCRCatalogs.load_catalog('proto-dc2_v2.1.2_addon_tidal')
../../gcr-catalogs/GCRCatalogs/alphaq.py:105: UserWarning: No md5 sum specified in the config file warnings.warn('No md5 sum specified in the config file') ../../generic-catalog-reader/GCR/composite.py:105: UserWarning: CompositeCatalog is still an experimental feature. Use with care! warnings.warn('CompositeCatalog is still an experimental feature. Use with care!')
[cat['catalog_name'] for cat in cc.get_input_kwargs('catalogs')]
['proto-dc2_v2.1.2_test', 'tidal']
galaxy_id = cc['galaxy_id']
(galaxy_id.compressed() == cc[('proto-dc2_v2.1.2_test', 'galaxy_id')][~galaxy_id.mask]).all()
True