You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This image shows the stars in the focal plane of all exposures for tile 224.295. Left: training set; middle: test set; right: validation set.
In blue all stars are plotted. In green (red) only stars with CCD ID 0 (38).
There seems to be a mismatch of CCD ID and coordinates for the validation set.
Code to reproduce plot:
candide:/automnt/n17data/mkilbing/astro/Runs/shapepipe/CFIS/one_tile_W3/mccd_v1_test/mccd_test.ipynb
@martinkilbinger I just opened a PR from the CosmoStat:debug_mccd branch to @sfarrens The Big Clean PR #498 that includes a fix for the issue with the validation CCDs. The bug fix has been integrated in the new MCCD release 1.2.1. Using this new version should be enough to fix the issue.
Concerning the issue: STAR_THRES in config:[MCCD_INTERP_RUNNER] is not read by mccd_interp_runner.
The STAR_THRES:[MCCD_INTERP_RUNNER] parameter is not taken into account as MCCD rejects CCDs based on the number of stars at the preprocessing time. The right parameter to use is MIN_N_STARS that is present in the MCCD configuration file, instead of STAR_THRES .
There is a difference with PSFEx behaviour. In PSFEx the model is calculated always, and then at interpolation time we discriminate between models that used less than the minimum number of stars. In MCCD if the CCD does not has the minimum number of stars we don't use it for the modelling as it will affect the focal plane model, and therefore of surrounding CCDs.
Similar story with the parameter CHI2_THRESH:[MCCD_INTERP_RUNNER]. MCCD is doing the rejection before saving the model, and not after as all the CCDs belong to the same focal plane model. The parameters to use are RMSE_THRESH and CCD_STAR_THRESH from the MCCD configuration file. See the default config_MCCD.ini for description about the parameters.
Activity
martinkilbinger commentedon Jan 12, 2022
This image shows the stars in the focal plane of all exposures for tile 224.295. Left: training set; middle: test set; right: validation set.
In blue all stars are plotted. In green (red) only stars with CCD ID 0 (38).
There seems to be a mismatch of CCD ID and coordinates for the validation set.
Code to reproduce plot:
candide:/automnt/n17data/mkilbing/astro/Runs/shapepipe/CFIS/one_tile_W3/mccd_v1_test/mccd_test.ipynb
tobias-liaudat commentedon Jan 12, 2022
Thanks @martinkilbinger
Just to be sure, could you check what MCCD and shapepipe version you used to reproduce that?
It will help on the debugging.
martinkilbinger commentedon Jan 12, 2022
shapepipe: 0.0.4
mccd: 1.1.1
I believe the reprocessed test tile was running with the
v1branch, more or less the same as for the big v1 run.tobias-liaudat commentedon Jan 25, 2022
@martinkilbinger I just opened a PR from the
CosmoStat:debug_mccdbranch to @sfarrens The Big Clean PR #498 that includes a fix for the issue with the validation CCDs. The bug fix has been integrated in the new MCCD release 1.2.1. Using this new version should be enough to fix the issue.Concerning the issue:
STAR_THRES in config:[MCCD_INTERP_RUNNER] is not read by mccd_interp_runner.The
STAR_THRES:[MCCD_INTERP_RUNNER]parameter is not taken into account as MCCD rejects CCDs based on the number of stars at the preprocessing time. The right parameter to use isMIN_N_STARSthat is present in the MCCD configuration file, instead ofSTAR_THRES.There is a difference with PSFEx behaviour. In PSFEx the model is calculated always, and then at interpolation time we discriminate between models that used less than the minimum number of stars. In MCCD if the CCD does not has the minimum number of stars we don't use it for the modelling as it will affect the focal plane model, and therefore of surrounding CCDs.
Similar story with the parameter
CHI2_THRESH:[MCCD_INTERP_RUNNER]. MCCD is doing the rejection before saving the model, and not after as all the CCDs belong to the same focal plane model. The parameters to use areRMSE_THRESHandCCD_STAR_THRESHfrom the MCCD configuration file. See the defaultconfig_MCCD.inifor description about the parameters.tobias-liaudat commentedon Jan 25, 2022
By the way, @martinkilbinger thanks for the documentation here and the notebook. It was easier to find the problem with the example you provided :)