-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from des-science/fitvd
FTR add fitvd pipeline step
- Loading branch information
Showing
6 changed files
with
493 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# same config should work for cosmos and SN | ||
parspace: 'ngmix' | ||
hst_band: null | ||
|
||
# we don't have id yet | ||
match_field: 'number' | ||
|
||
# usually this is to skip the coadd | ||
skip_first_epoch: True | ||
|
||
weight_type: 'uberseg' | ||
|
||
# gaussian aperture weighted fluxes | ||
gap: | ||
# in arcsec | ||
weight_fwhm: 2.5 | ||
|
||
# cosmic ray detection is pretty good now, and outlier rejection | ||
# tends to cause problems for brightish stars | ||
reject_outliers: False | ||
|
||
image_flagnames_to_mask: [ | ||
BPM, | ||
SATURATE, | ||
INTERP, | ||
BADAMP, | ||
CRAY, | ||
TRAIL, | ||
EDGEBLEED, | ||
EDGE, | ||
STREAK, | ||
NEAREDGE, | ||
TAPEBUMP, | ||
] | ||
|
||
|
||
# this is before adding additional masking, e.g. circular mask | ||
# does not apply for uberseg | ||
max_maskfrac: 0.45 | ||
|
||
# minimum number of unmasked pixels to be used in an epoch. this is only | ||
# checked if using uberseg, or in _set_weight, if the weight map is being | ||
# modified, e.g. circular mask | ||
min_npix: 9 | ||
|
||
use_mask: False | ||
|
||
radius_column: "iso_radius" | ||
|
||
max_fof_size: 25 | ||
|
||
mof: | ||
|
||
model: 'bdf' | ||
|
||
subtract_neighbors: False | ||
|
||
# number of times to try the fit if it fails | ||
ntry: 2 | ||
|
||
# for guesses | ||
detband: 2 | ||
|
||
priors: | ||
cen: | ||
type: 'normal2d' | ||
sigma: 0.263 | ||
|
||
g: | ||
type: 'ba' | ||
sigma: 0.2 | ||
|
||
T: | ||
type: 'flat' | ||
pars: [-0.1, 1.e+05] | ||
|
||
flux: | ||
type: 'flat' | ||
pars: [-1000.0, 1.0e+09] | ||
|
||
fracdev: | ||
type: 'normal' | ||
mean: 0.5 | ||
sigma: 0.1 | ||
bounds: [0.0, 1.0] | ||
|
||
psf: | ||
ntry: 4 | ||
|
||
model: 'coellip3' | ||
|
||
lm_pars: | ||
ftol: 1.0e-5 | ||
xtol: 1.0e-5 | ||
|
||
lm_pars: | ||
ftol: 1.0e-5 | ||
xtol: 1.0e-5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
fofs: | ||
# minimum fof size to process | ||
min_fofsize: 1 | ||
|
||
data: | ||
# zero weights for pixels with these bits set in the mask plane | ||
zero_weight_badpix: 1 | ||
|
||
guess: | ||
# the guess for each object will be initially laid out with relative flux and | ||
# sizes for each gaussian based on this model | ||
|
||
# dev uses 10 gaussians | ||
model: 'dev' | ||
|
||
shredding: | ||
# number of gaussians to represent the psf | ||
psf_ngauss: 5 | ||
|
||
# tolerance for coadd and flux fitting. For the main fit it is the | ||
# relative change in the log likelihood. For the flux fit it is the | ||
# relative change in the total flux | ||
# tol: 0.001 | ||
|
||
# min and max number of iterations for the main fit on the coadd of all | ||
# bands | ||
# miniter: 40 | ||
# maxiter: 500 | ||
# miniter: 40 | ||
|
||
# min and max number of iterations for the flux only adjustments for each | ||
# band | ||
# flux_miniter: 20 | ||
# flux_maxiter: 500 | ||
|
||
# fill in zero weight pixels with the model on each iteration | ||
# fill_zero_weight: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.