INSTRUMENT WFC3
CAMERA IR
GFILTER G141 ; GRISM name (not checked by aXe)
DFILTER F125W ; FILTER used for Direct Imaging (not checked by aXe)
XRANGE -183. 1099. ; Left and Right coordinates of FOV (not used by aXe)
YRANGE -1. 1015. ; Lower and Upper coordinates of FOV (not used by aXe)

SCIENCE_EXT SCI ; Science extension
DQ_EXT DQ       ; DQ extension
ERRORS_EXT ERR  ; Error extension
FFNAME wfc3_ir_2nd.fixed.fits
DQMASK 11775    ; 4096 and 512 taken out

RDNOISE 20.0
EXPTIME EXPTIME
POBJSIZE 1.0
SMFACTOR 1.0

DRZRESOLA  46.5
DRZSCALE  0.128254
DRZLAMB0  10100.0
DRZXINI   15.0
DRZROOT   aXeWFC3_G141

# First order (BEAM A) *******************
BEAMA 15 196
MMAG_EXTRACT_A 30
MMAG_MARK_A 30
#
# Trace description
#
# /Volumes/Comice2/Users/npirzkal/WFC3/IR/trace/G141 Global fit A 40.nb
DYDX_ORDER_A 1
DYDX_A_0 2.19996481352 -0.00019752130624389416 -0.002202066565067532 3.143514082596283e-8 4.3212786880932414e-7 1.210435999122636e-7
DYDX_A_1 0.010205281672977665  -6.06056923866002e-6  -3.2485600412356953e-6  4.2363866304617406e-10  1.230956851333159e-8  1.6123073931033502e-9

#
# X and Y Offsets
#
XOFF_A 0.0
YOFF_A 0.0
#
# Dispersion solution
#
DISP_ORDER_A 1
DLDP_A_0 8949.7222314 0.08044032819916265 -0.009279698766495334 0.000021856641668116504 -0.000011048008881387708 0.00003352712538187608
DLDP_A_1 44.97227893276267  0.0004927891511929662  0.0035782416625653765  -9.175233345083485e-7  2.2355060371418054e-7  -9.258690000316504e-7

DPDL_A_0 -198.97909709239238  0.00022085642768667504  0.015657459895358234  -4.20679688923729e-6  1.2280573229146504e-6  -5.155391423878844e-6
DPDL_A_1 0.022228565039576174  -2.2310680636779698e-7  -1.7250484537749406e-6  4.1766971161196834e-10  -1.0112004248938472e-10  4.956649137022331e-10

#
SENSITIVITY_A WFC3.IR.G141.1st.sens.2.fits


# zero order (BEAM B) *******************
BEAMB -207 -177
MMAG_EXTRACT_B 30.
MMAG_MARK_B 30.
#
# Trace description ~/WFC3/IR/trace/G102 Trace fit B 40.nb
#
DYDX_ORDER_B 0
DYDX_B_0 -0.0790164710212 0.001119940227389483 -0.00040208366824463386 -1.4194849412846487e-7 -1.8676580206140632e-6 4.3309224018307426e-8

#
# X and Y Offsets
#
# N.P. 05/2015 solution
XOFF_B 0.0
YOFF_B 0.0

#
# Dispersion solution
#
DISP_ORDER_B 1
DLDP_B_0 596480.546601 -11.142828121887003 -36.64357684013913 0.011419229673613265 0.006832291128275392 -0.0007734484905564656
DLDP_B_1 3005.100296560758  -0.030048806158424805  0.007875269629428604  0.00001042904281029149  0.00003500270057271983  -0.000029167649909560617

DPDL_B_0 -198.54772435079127  0.0018167722687743144  0.012732046102747235  -3.1545156431674204e-6  -7.78838498521172e-8  -1.5746821630565375e-6
DPDL_B_1 0.00033333333333336466  -7.051596740287148e-20  -4.8635321687450096e-20  4.7199609155642836e-23  5.44539123505613e-23  3.3757517911810997e-23

#
#
SENSITIVITY_B WFC3.IR.G141.0th.sens.1.fits

# Second order (BEAM C) ********************
BEAMC 210 470
MMAG_EXTRACT_C 20.9
MMAG_MARK_C 26.9
#
# Trace description ~/WFC3/IR/trace/G102 Trace fit C 40.nb
#
DYDX_ORDER_C 1 
DYDX_C_0 2.31164598206 0.0002053499056282087 -0.0028890986998572924 -8.019163091656186e-8 5.6009064736782764e-8 7.935005522340984e-8
DYDX_C_1 0.009172580775696514  -7.379982889000743e-6  -8.922302636859713e-7  6.494005825109242e-10  1.3547552886026228e-8  7.852182264344249e-10

#
# X and Y Offsets
#
XOFF_C 0.0
YOFF_C 0.0
#
# Dispersion solution
#
DISP_ORDER_C 1
DLDP_C_0 4473.68321015 0.17615670302851974 0.046354019343767844 -0.00012965161104471222 0.000015130259528362193 -0.000029609357225519504
DLDP_C_1 22.879146691440116  -0.0002159637001652501  0.0013345401677885772  4.277729362247067e-8  -8.522518072953189e-8  6.081251174852997e-8

DPDL_C_0 -195.74285816233404  -0.00877367229464306  0.00968143056562458  6.067600997884182e-6  -2.116469461490746e-6  1.2439925899366164e-6
DPDL_C_1 0.04372067006204363  3.5636626677803345e-7  -2.5681311774860105e-6  -1.0186471129092633e-10  2.128624551062398e-10  2.569172935055368e-11

#
SENSITIVITY_C WFC3.IR.G141.2nd.sens.3.fits


#
# Third order (BEAM D) ********************
#
BEAMD 470 720
MMAG_EXTRACT_D 20.9
MMAG_MARK_D 24.1
#
# Trace description
#
DYDX_ORDER_D 1 
DYDX_D_0 3.17705 0.0 -5.51206E-03
DYDX_D_1 5.65708E-03  0.0 6.87491E-06
#
# X and Y Offsets
#
XOFF_D 0.0
YOFF_D 0.0
#
# Dispersion solution
#
DISP_ORDER_D 1
DLDP_D_0 3001.3055576 1.04205E-01 -1.18134E-03
DLDP_D_1  1.52552E+01  -2.08555E-04   9.55645E-04
#
SENSITIVITY_D WFC3.IR.G141.3rd.sens.3.fits


#
# -1st order (BEAM E) ********************
#
BEAME -575 -370
MMAG_EXTRACT_E 20.1
MMAG_MARK_E 25.5
#
# Trace description ~/WFC3/IR/trace/G102 Trace fit E 40.nb
#
DYDX_ORDER_E 1 
DYDX_E_0 3.61167005165 -0.0015947526919754213 -0.004968770495281089 3.4364540919745736e-7 1.501303081614608e-6 -4.803269747816454e-7
DYDX_E_1 0.014208567148369964  -5.836141711066496e-6  -0.000015047553779490887  -9.979865305458747e-10  1.3327035188026396e-8  -1.0668628123837491e-9


#
# X and Y Offsets
#
XOFF_E 0.0
YOFF_E 0.0
#
# Dispersion solution
#
DISP_ORDER_E 1
DLDP_E_0 -9209.47043412 1.4551915228366852e-11 -0.8732184225029833 -7.275957614183426e-12 -3.637978807091713e-12 0.0009233797457981416
DLDP_E_1 -46.485546843614046  0.  -0.004813894700165786  0.  0.  2.076828666326744e-6

DPDL_E_0 -198.21202610097382  -5.684341886080801e-13  0.0019892632156942743  2.842170943040401e-14  0.  0.000010049079973011342
DPDL_E_1 -0.021496828652292438  0.  2.1228830495551702e-6  0.  0.  -9.402134802523465e-10

#
SENSITIVITY_E WFC3.IR.G141.m1st.sens.2.fits

##########
#### Dummy, +4th
BEAMF 500 1120
MMAG_EXTRACT_F 20.9
MMAG_MARK_F 24.1
#
# Trace description
#
DYDX_ORDER_F 1 
DYDX_F_0 3.17705 0.0 -5.51206E-03
DYDX_F_1 5.65708E-03  0.0 6.87491E-06
#
# X and Y Offsets
#
XOFF_F 0.0
YOFF_F 0.0
#
# Dispersion solution
#
DISP_ORDER_F 1
# DLDP_F_0     3.00187E+03   1.04205E-01  -1.18134E-03
# DLDP_F_1  1.52552E+01  -2.08555E-04   9.55645E-04
DLDP_F_0 4350.667
DLDP_F_1  9E+00

# use +2nd sens curve, but need to scale by 0.35
SENSITIVITY_F WFC3.IR.G141.2nd.sens.3.fits
