Changeset 41608 for branches/eam_branches/relphot.20210521/src/GridOps.c
- Timestamp:
- May 22, 2021, 1:44:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20210521/src/GridOps.c
r41607 r41608 188 188 if (isnan(Mmos)) continue; 189 189 190 float Mflat = getMflat (nm, nc, catalog); 191 if (isnan(Mflat)) continue; 192 190 193 // Mrel* is the average magnitude for this star. For PS1 stacks, we have too much 191 194 // PSF variability. We need to calibrate the PSF magnitudes separately from the … … 200 203 if (isnan(MsysPSF)) continue; 201 204 202 // what about Mflat? 203 float Moff = Mcal + Mgrp + Mmos; 205 float Moff = Mcal + Mgrp + Mmos + Mflat; 204 206 205 207 // Msys = Mrel + Moff + Mgrid … … 307 309 for (off_t j = 0; j < catalog->Nmeasure; j++) { 308 310 float Mgrid = getMgrid (&catalog->measure[j]); 309 catalog->measure[j].Mflat -= Mgrid;310 } 311 } 312 311 catalog->measure[j].Mflat += Mgrid; 312 } 313 } 314
Note:
See TracChangeset
for help on using the changeset viewer.
