import lsst.meas.mosaic.mosaicTask
assert type(root)==lsst.meas.mosaic.mosaicTask.MosaicConfig, 'config is of type %s.%s instead of lsst.meas.mosaic.mosaicTask.MosaicConfig' % (type(root).__module__, type(root).__name__)
'''Use Chebyshev polynomials for flux fitting? '''
root.chebyshev=True

'''Fit to catalog flux? '''
root.fluxFitAbsolute=True

'''Minimum number of sources to be merged.
	Valid Range = [0,inf) '''
root.numSourceMerge=2

'''flux fitting order
	Valid Range = [0,inf) '''
root.fluxFitOrder=7

'''Solve flux correction? '''
root.doSolveFlux=True

'''number of stars used for fitting per exposure '''
root.nBrightest=0

'''Solve CCD alignment? '''
root.solveCcd=True

'''If True, saturated objects will also be used for mosaicking. '''
root.includeSaturated=False

'''If True, ignore CCDs that don't overlap the current tract '''
root.requireTractOverlap=True

'''Use stars without catalog matching for fitting? '''
root.internalFitting=True

'''Minimum number of matches in CCD to be used.
	Valid Range = [0,inf) '''
root.minNumMatch=0

'''Saturated flag for star selection '''
root.saturatedForStarSelection='flags.pixel.saturated.any'

'''fitting order
	Valid Range = [2,inf) '''
root.fittingOrder=9

'''Positional error in reference catalog (degree) '''
root.catRMS=1.1111111111111112e-05

'''If True, unmatched sources outside of tract will not be used as constraints '''
root.clipSourcesOutsideTract=True

'''number of stars per cell '''
root.nStarPerCell=5

'''radius to cross-match objects between expsoures in arcsec
	Valid Range = [0.1,inf) '''
root.radXMatch=1.0

'''Extendedness for star selection '''
root.extendednessForStarSelection='classification.extendedness'

'''Allow multiple filters in input? '''
root.allowMixedFilters=False

'''size of cell used to select stars (pixels) '''
root.cellSize=512

'''Sigma-clipping parameter in sip/cleanBadPoints.py
	Valid Range = [0.0,inf) '''
root.astrom.cleaningParameter=3.0

'''Range of pixel scales, around the value in the WCS header, to search.  If the value of this field is X and the nominal scale is S, the range searched will be  S/X to S*X
	Valid Range = [1.001,inf) '''
root.astrom.pixelScaleUncertainty=1.1

'''Use the parity (flip / handedness) of the image from the input exposure's WCS headers? '''
root.astrom.useWcsParity=True

'''Maximum CPU time to spend solving, in seconds
	Valid Range = [0.0,inf) '''
root.astrom.maxCpuTime=0.0

'''Polynomial order of SIP distortion terms
	Valid Range = [2,inf) '''
root.astrom.sipOrder=4

'''Use the RA,Dec center information from the input exposure's WCS headers? '''
root.astrom.useWcsRaDecCenter=True

'''Matching threshold for Astrometry.net solver (log-odds)
	Valid Range = [13.815510558,inf) '''
root.astrom.matchThreshold=27.631021115928547

'''Use the pixel scale from the input exposure's WCS headers? '''
root.astrom.useWcsPixelScale=True

'''Maximum number of stars to use in Astrometry.net solving
	Valid Range = [10,inf) '''
root.astrom.maxStars=50

'''Compute polynomial SIP distortion terms? '''
root.astrom.calculateSip=True

'''Retrieve all available fluxes (and errors) from catalog? '''
root.astrom.allFluxes=True

'''When matching image to reference catalog stars, how big should
        the matching radius be?
	Valid Range = [0.0,inf) '''
root.astrom.catalogMatchDist=1.0

'''When useWcsRaDecCenter=True, this is the radius, in degrees, around the RA,Dec center specified in the input exposure's WCS to search for a solution.
	Valid Range = [0.0,inf) '''
root.astrom.raDecSearchRadius=1.0

'''Mapping from input filter to catalogue filter '''
root.astrom.filterMap={'B': 'g', 'r2': 'r', 'G': 'g', 'N816': 'i', 'I': 'i', 'N387': 'g', 'i2': 'i', 'R': 'r', 'N921': 'z', 'N515': 'g', 'V': 'r', 'N1010': 'z'}

'''PSF star flag for star selection '''
root.psfStarForStarSelection='calib.psf.used'

'''Coadd name: typically one of deep or goodSeeing. '''
root.coaddName='deep'

root.colorterms.library={}
root.colorterms.library['hsc*']=lsst.meas.photocal.colorterms.ColortermGroupConfig()
root.colorterms.library['hsc*'].group={}
root.colorterms.library['hsc*'].group['i']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['hsc*'].group['i'].c2=0.0

'''First-order parameter '''
root.colorterms.library['hsc*'].group['i'].c1=0.0

'''Constant parameter '''
root.colorterms.library['hsc*'].group['i'].c0=0.0

'''Primary band '''
root.colorterms.library['hsc*'].group['i'].primary='i'

'''Secondary band '''
root.colorterms.library['hsc*'].group['i'].secondary='i'

root.colorterms.library['hsc*'].group['y']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['hsc*'].group['y'].c2=0.0

'''First-order parameter '''
root.colorterms.library['hsc*'].group['y'].c1=0.0

'''Constant parameter '''
root.colorterms.library['hsc*'].group['y'].c0=0.0

'''Primary band '''
root.colorterms.library['hsc*'].group['y'].primary='y'

'''Secondary band '''
root.colorterms.library['hsc*'].group['y'].secondary='y'

root.colorterms.library['hsc*'].group['r']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['hsc*'].group['r'].c2=0.0

'''First-order parameter '''
root.colorterms.library['hsc*'].group['r'].c1=0.0

'''Constant parameter '''
root.colorterms.library['hsc*'].group['r'].c0=0.0

'''Primary band '''
root.colorterms.library['hsc*'].group['r'].primary='r'

'''Secondary band '''
root.colorterms.library['hsc*'].group['r'].secondary='r'

root.colorterms.library['hsc*'].group['z']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['hsc*'].group['z'].c2=0.0

'''First-order parameter '''
root.colorterms.library['hsc*'].group['z'].c1=0.0

'''Constant parameter '''
root.colorterms.library['hsc*'].group['z'].c0=0.0

'''Primary band '''
root.colorterms.library['hsc*'].group['z'].primary='z'

'''Secondary band '''
root.colorterms.library['hsc*'].group['z'].secondary='z'

root.colorterms.library['hsc*'].group['g']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['hsc*'].group['g'].c2=0.0

'''First-order parameter '''
root.colorterms.library['hsc*'].group['g'].c1=0.0

'''Constant parameter '''
root.colorterms.library['hsc*'].group['g'].c0=0.0

'''Primary band '''
root.colorterms.library['hsc*'].group['g'].primary='g'

'''Secondary band '''
root.colorterms.library['hsc*'].group['g'].secondary='g'

root.colorterms.library['sdss*']=lsst.meas.photocal.colorterms.ColortermGroupConfig()
root.colorterms.library['sdss*'].group={}
root.colorterms.library['sdss*'].group['r2']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['sdss*'].group['r2'].c2=-0.0284842

'''First-order parameter '''
root.colorterms.library['sdss*'].group['r2'].c1=-0.00830543

'''Constant parameter '''
root.colorterms.library['sdss*'].group['r2'].c0=0.00074087

'''Primary band '''
root.colorterms.library['sdss*'].group['r2'].primary='r'

'''Secondary band '''
root.colorterms.library['sdss*'].group['r2'].secondary='i'

root.colorterms.library['sdss*'].group['g']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['sdss*'].group['g'].c2=-0.00726883

'''First-order parameter '''
root.colorterms.library['sdss*'].group['g'].c1=-0.08366937

'''Constant parameter '''
root.colorterms.library['sdss*'].group['g'].c0=-0.00816446

'''Primary band '''
root.colorterms.library['sdss*'].group['g'].primary='g'

'''Secondary band '''
root.colorterms.library['sdss*'].group['g'].secondary='r'

root.colorterms.library['sdss*'].group['N816']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['sdss*'].group['N816'].c2=-0.05474862

'''First-order parameter '''
root.colorterms.library['sdss*'].group['N816'].c1=-0.63558358

'''Constant parameter '''
root.colorterms.library['sdss*'].group['N816'].c0=0.00927133

'''Primary band '''
root.colorterms.library['sdss*'].group['N816'].primary='i'

'''Secondary band '''
root.colorterms.library['sdss*'].group['N816'].secondary='z'

root.colorterms.library['sdss*'].group['i']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['sdss*'].group['i'].c2=-0.01374245

'''First-order parameter '''
root.colorterms.library['sdss*'].group['i'].c1=-0.16922042

'''Constant parameter '''
root.colorterms.library['sdss*'].group['i'].c0=0.00130204

'''Primary band '''
root.colorterms.library['sdss*'].group['i'].primary='i'

'''Secondary band '''
root.colorterms.library['sdss*'].group['i'].secondary='z'

root.colorterms.library['sdss*'].group['i2']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['sdss*'].group['i2'].c2=-0.01067212

'''First-order parameter '''
root.colorterms.library['sdss*'].group['i2'].c1=-0.20739606

'''Constant parameter '''
root.colorterms.library['sdss*'].group['i2'].c0=0.00124676

'''Primary band '''
root.colorterms.library['sdss*'].group['i2'].primary='i'

'''Secondary band '''
root.colorterms.library['sdss*'].group['i2'].secondary='z'

root.colorterms.library['sdss*'].group['r']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['sdss*'].group['r'].c2=-0.03068248

'''First-order parameter '''
root.colorterms.library['sdss*'].group['r'].c1=0.01284177

'''Constant parameter '''
root.colorterms.library['sdss*'].group['r'].c0=0.0023181

'''Primary band '''
root.colorterms.library['sdss*'].group['r'].primary='r'

'''Secondary band '''
root.colorterms.library['sdss*'].group['r'].secondary='i'

root.colorterms.library['sdss*'].group['N921']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['sdss*'].group['N921'].c2=-0.05451118

'''First-order parameter '''
root.colorterms.library['sdss*'].group['N921'].c1=0.0986353

'''Constant parameter '''
root.colorterms.library['sdss*'].group['N921'].c0=0.00752972

'''Primary band '''
root.colorterms.library['sdss*'].group['N921'].primary='z'

'''Secondary band '''
root.colorterms.library['sdss*'].group['N921'].secondary='i'

root.colorterms.library['sdss*'].group['y']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['sdss*'].group['y'].c2=0.00574408

'''First-order parameter '''
root.colorterms.library['sdss*'].group['y'].c1=0.35652971

'''Constant parameter '''
root.colorterms.library['sdss*'].group['y'].c0=0.01739708

'''Primary band '''
root.colorterms.library['sdss*'].group['y'].primary='z'

'''Secondary band '''
root.colorterms.library['sdss*'].group['y'].secondary='i'

root.colorterms.library['sdss*'].group['z']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['sdss*'].group['z'].c2=0.01479369

'''First-order parameter '''
root.colorterms.library['sdss*'].group['z'].c1=0.01353969

'''Constant parameter '''
root.colorterms.library['sdss*'].group['z'].c0=-0.0068062

'''Primary band '''
root.colorterms.library['sdss*'].group['z'].primary='z'

'''Secondary band '''
root.colorterms.library['sdss*'].group['z'].secondary='i'

root.colorterms.library['ps1*']=lsst.meas.photocal.colorterms.ColortermGroupConfig()
root.colorterms.library['ps1*'].group={}
root.colorterms.library['ps1*'].group['r2']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['ps1*'].group['r2'].c2=-0.01667794

'''First-order parameter '''
root.colorterms.library['ps1*'].group['r2'].c1=3.996e-05

'''Constant parameter '''
root.colorterms.library['ps1*'].group['r2'].c0=0.0011769

'''Primary band '''
root.colorterms.library['ps1*'].group['r2'].primary='r'

'''Secondary band '''
root.colorterms.library['ps1*'].group['r2'].secondary='i'

root.colorterms.library['ps1*'].group['g']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['ps1*'].group['g'].c2=-0.0151057

'''First-order parameter '''
root.colorterms.library['ps1*'].group['g'].c1=0.06508481

'''Constant parameter '''
root.colorterms.library['ps1*'].group['g'].c0=0.00730066

'''Primary band '''
root.colorterms.library['ps1*'].group['g'].primary='g'

'''Secondary band '''
root.colorterms.library['ps1*'].group['g'].secondary='r'

root.colorterms.library['ps1*'].group['N816']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['ps1*'].group['N816'].c2=-0.10781564

'''First-order parameter '''
root.colorterms.library['ps1*'].group['N816'].c1=-0.68757034

'''Constant parameter '''
root.colorterms.library['ps1*'].group['N816'].c0=0.01191062

'''Primary band '''
root.colorterms.library['ps1*'].group['N816'].primary='i'

'''Secondary band '''
root.colorterms.library['ps1*'].group['N816'].secondary='z'

root.colorterms.library['ps1*'].group['i']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['ps1*'].group['i'].c2=-0.03034094

'''First-order parameter '''
root.colorterms.library['ps1*'].group['i'].c1=-0.13944659

'''Constant parameter '''
root.colorterms.library['ps1*'].group['i'].c0=0.00166891

'''Primary band '''
root.colorterms.library['ps1*'].group['i'].primary='i'

'''Secondary band '''
root.colorterms.library['ps1*'].group['i'].secondary='z'

root.colorterms.library['ps1*'].group['i2']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['ps1*'].group['i2'].c2=-0.02675511

'''First-order parameter '''
root.colorterms.library['ps1*'].group['i2'].c1=-0.18483562

'''Constant parameter '''
root.colorterms.library['ps1*'].group['i2'].c0=0.00180361

'''Primary band '''
root.colorterms.library['ps1*'].group['i2'].primary='i'

'''Secondary band '''
root.colorterms.library['ps1*'].group['i2'].secondary='z'

root.colorterms.library['ps1*'].group['r']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['ps1*'].group['r'].c2=-0.01877566

'''First-order parameter '''
root.colorterms.library['ps1*'].group['r'].c1=0.02093734

'''Constant parameter '''
root.colorterms.library['ps1*'].group['r'].c0=0.00279757

'''Primary band '''
root.colorterms.library['ps1*'].group['r'].primary='r'

'''Secondary band '''
root.colorterms.library['ps1*'].group['r'].secondary='i'

root.colorterms.library['ps1*'].group['N921']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['ps1*'].group['N921'].c2=-0.25059679

'''First-order parameter '''
root.colorterms.library['ps1*'].group['N921'].c1=-0.59278367

'''Constant parameter '''
root.colorterms.library['ps1*'].group['N921'].c0=0.00142051

'''Primary band '''
root.colorterms.library['ps1*'].group['N921'].primary='z'

'''Secondary band '''
root.colorterms.library['ps1*'].group['N921'].secondary='y'

root.colorterms.library['ps1*'].group['y']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['ps1*'].group['y'].c2=0.02880125

'''First-order parameter '''
root.colorterms.library['ps1*'].group['y'].c1=0.14747401

'''Constant parameter '''
root.colorterms.library['ps1*'].group['y'].c0=-0.00156858

'''Primary band '''
root.colorterms.library['ps1*'].group['y'].primary='y'

'''Secondary band '''
root.colorterms.library['ps1*'].group['y'].secondary='z'

root.colorterms.library['ps1*'].group['z']=lsst.meas.photocal.colorterms.ColortermConfig()
'''Second-order parameter '''
root.colorterms.library['ps1*'].group['z'].c2=-0.00316369

'''First-order parameter '''
root.colorterms.library['ps1*'].group['z'].c1=-0.28840221

'''Constant parameter '''
root.colorterms.library['ps1*'].group['z'].c0=-0.00907517

'''Primary band '''
root.colorterms.library['ps1*'].group['z'].primary='z'

'''Secondary band '''
root.colorterms.library['ps1*'].group['z'].secondary='y'

'''Apply color terms as part of solution? '''
root.doColorTerms=True

'''Solve for per CCD flux scale? '''
root.fluxFitSolveCcd=True

'''Is flux correction common between exposures? '''
root.commonFluxCorr=False

'''Solve rotation? '''
root.allowRotation=True

'''Solve distortion and wcs? '''
root.doSolveWcs=True

