
PSASTRO.SAVE.REFSTARS      BOOL FALSE
PSASTRO.ONLY.REFSTARS      BOOL FALSE

# perform single-chip astrometry?
PSASTRO.CHIP.MODE           BOOL     TRUE

# nominal plate scale (microns / pixel)
PSASTRO.PIXEL.SCALE    F32  13.5

# plotting options
PSASTRO.PLOT.INST.MAG.MAX F32 -10.0
PSASTRO.PLOT.INST.MAG.MIN F32 -17.0
PSASTRO.PLOT.REF.MAG.MIN  F32 +10.0
PSASTRO.PLOT.REF.MAG.MAX  F32 +20.0

# extra field for ref stars:
PSASTRO.FIELD.PADDING  F32 0.25

# pmAstromGridMatch:
PSASTRO.GRID.SEARCH    BOOL TRUE

PSASTRO.GRID.MIN.ANGLE F32 -2.0 # start angle (degrees)
PSASTRO.GRID.MAX.ANGLE F32 +2.0
PSASTRO.GRID.DEL.ANGLE F32  0.5

PSASTRO.GRID.MIN.SCALE F32  0.98
PSASTRO.GRID.MAX.SCALE F32  1.04
PSASTRO.GRID.DEL.SCALE F32  0.02

PSASTRO.GRID.MIN.SIGMA F32  5.0

# pmAstromGridAngle
# max grid offset in FP units (microns)
# use plate-scale to make this in pixels?
PSASTRO.GRID.OFFSET    F32  10000.
PSASTRO.GRID.SCALE     F32    500.
PSASTRO.GRID.NSTAR.MAX S32    300 # max stars accepted for fitting

# sources with these mask flags raised should be ignored
PSASTRO.IGNORE         STR    CRLIMIT,SATURATED,DEFECT,SATSTAR,BLEND,FAIL
PSASTRO.ROUGH.MODEL    STR    none

# these tweak are in FP units (pixels, currently)
PSASTRO.TWEAK.SCALE     F32      1
PSASTRO.TWEAK.RANGE     F32     75
PSASTRO.TWEAK.SMOOTH    F32      2
PSASTRO.TWEAK.NSIGMA    F32      3

# single-chip radius match in pixels
PSASTRO.MATCH.RADIUS   F32    8
PSASTRO.MATCH.RADIUS.N0 F32   0
PSASTRO.MATCH.RADIUS.N1 F32   0
PSASTRO.MATCH.RADIUS.N2 F32   0
PSASTRO.MATCH.RADIUS.N3 F32   0
PSASTRO.MATCH.RADIUS.N4 F32   0
PSASTRO.MATCH.RADIUS.N5 F32   0
PSASTRO.MATCH.RADIUS.N6 F32   0
PSASTRO.MATCH.RADIUS.N7 F32   0
PSASTRO.MATCH.FIT.NITER S32   1

# pmAstromMatchFit
PSASTRO.CHIP.ORDER     S32      1  # fit order
PSASTRO.CHIP.NITER     S32      3  # fit clipping iterations
PSASTRO.CHIP.NSIGMA    F32      3  # fit clipping sigmas

PSASTRO.MAX.ERROR      F32      1.5 # max allow error for valid solution (UNITS?)
PSASTRO.MIN.NSTAR      S32      3   # min fitted stars in solution
PSASTRO.MAX.NSTAR      S32      300   # max fitted stars in solution

PSASTRO.MAX.NRAW       S32      0   # max stars accepted for fitting (0 for all)
PSASTRO.MAX.NREF       S32      0   # max stars accepted for fitting (0 for all)

PSASTRO.MIN.INST.MAG.RAW       F32      0.0   # min instrumental magnitude for stars accepted for fitting
PSASTRO.MAX.INST.MAG.RAW       F32      0.0   # max instrumental magnitude for stars accepted for fitting

PSASTRO.MATCH.LUMFUNC  BOOL     FALSE

# option may be MAX, MIN, or VALUE. for VALUE, look up 
# plate scale for each chip in the concepts
PSASTRO.COMMON.SCALE.OPTION	STR	MAX

# mosaic-mode radius match in pixels?
PSASTRO.MOSAIC.RADIUS.N0   F32    8
PSASTRO.MOSAIC.RADIUS.N1   F32    6
PSASTRO.MOSAIC.RADIUS.N2   F32    4
PSASTRO.MOSAIC.RADIUS.N3   F32    0.0

# Mosaic Astrometry options
PSASTRO.MOSAIC.MODE           BOOL     FALSE
PSASTRO.MOSAIC.ORDER          S32      3  # fit order

PSASTRO.MOSAIC.CHIP.ORDER     S32       1 # fit order
PSASTRO.MOSAIC.CHIP.ORDER.N0  S32      -1 # fit order (-1 means use default)
PSASTRO.MOSAIC.CHIP.ORDER.N1  S32      -1 # fit order (-1 means use default)
PSASTRO.MOSAIC.CHIP.ORDER.N2  S32      -1 # fit order (-1 means use default)
PSASTRO.MOSAIC.CHIP.ORDER.N3  S32      -1 # fit order (-1 means use default)

PSASTRO.MOSAIC.CHIP.NITER     S32      3  # fit clipping iterations
PSASTRO.MOSAIC.CHIP.NSIGMA    F32      3  # fit clipping sigmas

PSASTRO.MOSAIC.MAX.ERROR.N0   F32      1.5 # max allow error for valid solution (UNITS?)
PSASTRO.MOSAIC.MAX.ERROR.N1   F32      1.5 # max allow error for valid solution (UNITS?)
PSASTRO.MOSAIC.MAX.ERROR.N2   F32      1.5 # max allow error for valid solution (UNITS?)
PSASTRO.MOSAIC.MAX.ERROR.N3   F32      1.5 # max allow error for valid solution (UNITS?)
PSASTRO.MOSAIC.MIN.NSTAR      S32      6   # min fitted stars in solution

PSASTRO.MOSAIC.GRADIENT.NX    S32      2   # number of x-dir cells per chip
PSASTRO.MOSAIC.GRADIENT.NY    S32      2   # number of y-dir cells per chip

# 2MASS default configuration (use 2MASS_J as ref magnitude)
PSASTRO.CATDIR                STR      2MASS
DVO.GETSTAR                   STR      getstar
DVO.GETSTAR.OUTFORMAT         STR      PS1_DEV_0
DVO.GETSTAR.PHOTCODE          STR      2MASS_J
DVO.GETSTAR.MAG.MAX           F32      22.0

PSASTRO.2MASS                 METADATA
  PSASTRO.CATDIR              STR      2MASS
  DVO.GETSTAR.PHOTCODE        STR      2MASS_J
  DVO.GETSTAR.MAG.MAX         F32      17.0
END

PSASTRO.SYNTH                 METADATA
  PSASTRO.CATDIR              STR      SYNTH.GRIZY
  DVO.GETSTAR.PHOTCODE        STR      r
END

LOAD.REF.ASTROM               BOOL     FALSE
SAVE.REF.ASTROM               BOOL     FALSE

PSASTRO.MODEL.REF.CHIP        STR      NONE

PSASTRO.FIX.CHIPS             BOOL     FALSE
PSASTRO.USE.MODEL             BOOL     FALSE

PSASTRO.PIXEL.TOLERANCE       F32      0.1
PSASTRO.ANGLE.TOLERANCE       F32      0.1

PSASTRO.FINE METADATA
END
