Skip to content

Add fluxcat-based point source sky map tasks#90

Merged
Arnab-half-blood-prince merged 5 commits into
mainfrom
feature/fluxcat-pointsource-tasks
May 15, 2026
Merged

Add fluxcat-based point source sky map tasks#90
Arnab-half-blood-prince merged 5 commits into
mainfrom
feature/fluxcat-pointsource-tasks

Conversation

@Arnab-half-blood-prince

@Arnab-half-blood-prince Arnab-half-blood-prince commented May 7, 2026

Copy link
Copy Markdown
Contributor

Add four new classes to cora.foreground.pointsource and corresponding commands to cora-makesky for generating sky maps from the fluxcat catalog. This is needed for EigenCalibration too, as Eigen calibration uses fluxcat point source catalog position and flux for calibration.

  • FluxCatPointSources: like RealPointSources but driven by fluxcat, with optional flux_min/flux_max filtering at 600 MHz.
  • SingleFluxCatSource: single named source (e.g. CYG_A) looked up from fluxcat, placed in a HEALPix map at each frequency.
  • FluxCatCatalogMap: all sources in the loaded fluxcat catalog, no flux filtering.
  • CombinedFluxCatPointSources: same three-layer structure as CombinedPointSources (Gaussian unresolved + DiMatteo synthetic population + real resolved) but replaces RealPointSources with FluxCatPointSources above 4 Jy at 600 MHz.

All four classes record which fluxcat collections were used in index_map/catalog in the output HDF5 file for tracking which catalog is being used.

New makesky commands: pointsource-fluxcat, singlesource-fluxcat, catalog-fluxcat, foreground-fluxcat.

Add four new classes to cora.foreground.pointsource and corresponding
commands to cora-makesky for generating HEALPix sky maps from the
fluxcat catalog:

- FluxCatPointSources: like RealPointSources but driven by fluxcat,
  with optional flux_min/flux_max filtering at 600 MHz.
- SingleFluxCatSource: single named source (e.g. CYG_A) looked up
  from fluxcat, placed in a HEALPix map at each frequency.
- FluxCatCatalogMap: all sources in the loaded fluxcat catalog,
  no flux filtering.
- CombinedFluxCatPointSources: same three-layer structure as
  CombinedPointSources (Gaussian unresolved + DiMatteo synthetic
  population + real resolved) but replaces RealPointSources with
  FluxCatPointSources above 4 Jy at 600 MHz.

All four classes record which fluxcat collections were used in
index_map/catalog in the output HDF5 file for provenance tracking.
write_map gains an optional catalog_info argument to support this.

New makesky commands: fluxcatpoints, singlesource-fluxcat,
fluxcatcatalog, foreground-fluxcat.
@Arnab-half-blood-prince Arnab-half-blood-prince changed the title feat(foreground): add fluxcat-based point source sky map tasks Add fluxcat-based point source sky map tasks May 7, 2026

@sjforeman sjforeman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Just a few minor comments.

Comment thread cora/scripts/makesky.py Outdated
Comment thread cora/scripts/makesky.py Outdated
Comment thread cora/foreground/pointsource.py Outdated
Comment thread cora/foreground/pointsource.py Outdated
Comment thread cora/foreground/pointsource.py Outdated

@ljgray ljgray left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just some minor notation/doc changes

Comment thread cora/foreground/pointsource.py
Comment thread cora/scripts/makesky.py Outdated
Comment thread cora/scripts/makesky.py Outdated
- Rename CLI commands to follow fluxcat naming convention:
  fluxcatpoints -> pointsource-fluxcat
  fluxcatcatalog -> catalog-fluxcat
- Store fluxcat collection names as a file attribute (f.attrs["catalog"])
  rather than as an index_map dataset, since index_map annotates axes
- Add comments to _UnresolvedBackground explaining the SCK parameter
  values and their re-parameterization for the sub-0.1 Jy flux regime
- Update all docstrings to reflect the new catalog storage location
@Arnab-half-blood-prince

Copy link
Copy Markdown
Contributor Author

The names of the tasks have been changed -
New makesky commands: pointsource-fluxcat, singlesource-fluxcat, catalog-fluxcat, foreground-fluxcat.

And also the name of the catalog is being saved as an attributes.

@Arnab-half-blood-prince Arnab-half-blood-prince merged commit f16f70d into main May 15, 2026
7 checks passed
@Arnab-half-blood-prince Arnab-half-blood-prince deleted the feature/fluxcat-pointsource-tasks branch May 15, 2026 19:23
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.

3 participants