-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Problem
Some priors for systematic parameters will depend on the measured data in the same way the measurement and covariance will. Therefore, I expect that the calibration of said parameters will become a TXPIPE stage. After this calibration, we will have to figure out how to save said priors inside sacc such that it can be passed to the likelihood builder and inference frameworks. In this particular issue I am focusing on the photometric uncertainties generated using the RAIL ecosystem and calibrated by nz_prior.
Proposed solution
From a conversation with Firecrown, it seems like the most intuitive way to achieve this would be by proposing a new sacc tracer that replaces the QPTracer generated by RAIL and that that contains:
- z
- nz
- photoz_params_mean
- photoz_params_cholesky
I tried loading these on the NZTracer extra_columns fields but the dimensionalities are not compatible.
Known problems
- In the above solution, the user will have to remember what parameters they have calibrated although maybe this could be specified in the metadata of the arrays.
- Cross-tomographic bin correlations cannot be implemented using this approach.
- Joe: Do we really want to carry particular photoz uncertainty models information in the sacc?
Alternative solutions
- Instead of completely substituting the NZTracers by another tracer which also contains the prior information, we could add a second tracer per tomographic bin which only contains the mean and covariance.
- Alternatively, we could save the mean and covariance to the sacc file the same way we save the measurement and the covariance. On the one hand, this might make keeping track of what parameters belong to what tomographic bin more complicated. On the other hand, it will allow us to include cross-tomographic bin correlations in the near future more easily once they are needed.