Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCAL-959 COSMOS and GAIA Sources in Catalogs #199

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

PaulHuwe
Copy link
Collaborator

@PaulHuwe PaulHuwe commented Feb 5, 2025

Adding methods to select random COSMOS galaxies and/or GAIA stars to make more realistic catalogs.

Copy link

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 87.90323% with 15 lines in your changes missing coverage. Please review.

Project coverage is 88.18%. Comparing base (244858c) to head (ef00fec).
Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
romanisim/catalog.py 87.90% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #199      +/-   ##
==========================================
- Coverage   90.02%   88.18%   -1.85%     
==========================================
  Files          17       17              
  Lines        2165     2293     +128     
==========================================
+ Hits         1949     2022      +73     
- Misses        216      271      +55     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@PaulHuwe
Copy link
Collaborator Author

PaulHuwe commented Feb 6, 2025

Sample Level 3 Mosaic with radius = 0.1 degree (can see the area search):
RSIM_cosmos_gaia_imviz-0

@PaulHuwe
Copy link
Collaborator Author

PaulHuwe commented Feb 6, 2025

Histogram of stellar and galaxy densities (wrt. all objects):
newplot (21)

Same histogram of stellar and galaxy densities, but wrt. their individual classes:
newplot (22)

@PaulHuwe
Copy link
Collaborator Author

PaulHuwe commented Feb 6, 2025

Histogram of rsim's selected cosmos sources vs. the full cosmos catalog (densities wrt. each dataset):
newplot (16)

@PaulHuwe
Copy link
Collaborator Author

PaulHuwe commented Feb 6, 2025

Setting this ready for review, as the failing tests are in main, not this PR.

@PaulHuwe PaulHuwe marked this pull request as ready for review February 6, 2025 00:31
@PaulHuwe PaulHuwe requested a review from a team as a code owner February 6, 2025 00:31
Copy link
Collaborator

@schlafly schlafly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Can you add a section to the documentation with maybe your image and a little bit of information? i.e.:

  • density of sources
  • method for simulating Roman fluxes (linear interpolation among ultra vista wavelengths)
  • depth of simulation (incomplete beyond mag ~ 25 IIRC?---not super deep)
  • basic simulation parameters (random angles, flat distribution of sersic indices, sizes from COSMOS HST imaging)
  • ... something else I'm forgetting?
  • real Gaia stars with approximate fluxes (no real colors)

Re the density, can you remind me if you think it is right? Right now you compute the area as (ramax - ramin) * (decmax - decmin), and then get the density as the number divided by the area. I worry that the ultra vista area is only a portion of the whole field, and so (ramax - ramin) * (decmax - decmin) isn't a good approximation of the area that you end up keeping after the cuts. Did you check that?

Can you also say what ends up in the "streamlined" catalog? The size is reasonable so it's okay from that perspective, but we should probably ask permission before providing it as an alternative source of the COSMOS catalog unless it's sufficiently stripped down as to have limited scientific value beyond our use case. We should also cite the COSMOS papers extensively in your new docs.

romanisim/catalog.py Show resolved Hide resolved
@PaulHuwe
Copy link
Collaborator Author

The streamlined catalog has had the following cuts from the full COSMOS catalog:

  • Trimmed to only the columns we need: 'FLUX_RADIUS', 'DELTA_J2000', 'UVISTA_H_FLUX_AUTO', 'HSC_r_FLUX_AUTO', 'HSC_z_FLUX_AUTO', 'lp_type','UVISTA_Y_FLUX_AUTO', 'ID', 'ALPHA_J2000', 'UVISTA_J_FLUX_AUTO', 'UVISTA_Ks_FLUX_AUTO', 'ACS_A_WORLD', 'FLAG_UDEEP', 'ACS_B_WORLD'
  • Only keep 'lp_type" galaxies and Xray sources
  • Trim to only those that contain the ultra-deep regions of UltraVISTA data
  • Keep those with positive, nonzero flux radius, shape measurements (ACS_A_WORLD, ACS_B_WORLD )

These cuts trim the total number of objects from 1720700 to 345994. The filters in particular are very Roman-specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants