#Greathouse is building the pipescript starting on 19th 
#Script is finished and has been completely run

date=19.0819
slitpa = 0.
fitsdir=archive

posfile=satscan2012.pos

##################
PI=Greathouse
PID=2019B022
##################

shift=false
weight=false
subsky=true
skyint=1 3
sumscan = false
objtype=target

longslit

##1935
############################################################
#######narrow line right of double blend in center is 1937.9480
##############################################################
thr=0.25

wno0=1935.763
flat.7000
jup.7000

wno0=1936.150
flat.7011
jup.7011

wno0=1936.070
flat.7022
jup.7022

wno0=1936.103
flat.7040
jup.7040

#1248 cm-1 med mode
########################################################################
#### right line of ch4 p9 triplet = 1246.452
###############################################################
thr=0.5

wno0=1247.777
flat.7001
jup.7001

wno0=1248.015
flat.7012
jup.7012

wno0=1247.723
flat.7023
jup.7023

wno0=1247.727
flat.7041
jup.7041

#1248 cm-1  hi-med
########################################################################
#### right line of ch4 p9 triplet = 1246.452,4
##############################################################

crossdisp

ffttort = true

wno0=1246.983
hrr=9.836
flat.7002
jup.7002
jup.7003
jup.7004
jup.7005
jup.7006
jup.7007
jup.7008
jup.7009
jup.7010

ffttort = false

########################################################################
#### right line of ch4 p9 triplet = 1246.452,3
##############################################################

wno0=1247.633
hrr=9.846
flat.7013
jup.7013
jup.7014
jup.7015
jup.7016
jup.7017
jup.7018
jup.7019
jup.7020
jup.7021

########################################################################
#### right line of ch4 p9 triplet = 1246.452,4
##############################################################

wno0=1246.979
hrr=9.839
flat.7024
jup.7024
jup.7025
jup.7026
jup.7027
jup.7028
jup.7029
jup.7030
jup.7031
jup.7032
jup.7033
jup.7034
jup.7035
jup.7036
jup.7037
jup.7038
jup.7039

wno0=1246.972
hrr=9.843
flat.7042
jup.7042
jup.7043
jup.7044
bounce=0.2
jup.7045
jup.7046
jup.7047
jup.7048
jup.7049
jup.7050
jup.7051
jup.7052
jup.7053
jup.7054
jup.7055
jup.7056
jup.7057
jup.7058

bounce=0.0

########################################################################
#######################################################################

#################
PI=Blake
PID=2019B045
#################

shift=false
weight= false
sumscan=false
subsky=true
skyint = 1 3
objtype=target

#Saturn
#587 hi-med mode
######################################################################
#########588.141,5
#######################################################################

# we have the guider going but did some moving around
wno0=586.858
hrr=9.645
flat.7059
only = 1 3
sat.7059
sumscan=true
only = 4 8
sat.7059
sat.7060
sumscan = false
only = 1 2
sat.7061
sumscan = true
only = 3 8
sat.7061
#southern edge of slit is compromised by saturn being in it in the off
#position.  So for 7062 you need to toss out the bottom 4 pixels of the slit 
#and ignore
sumspec =sat.7062first
only = 1 5
sat.7062
storesum
sumspec= sat.7062last
only = 6 8
sat.7062
storesum


#730 hi-med mode
######################################################################
#########732.478,6
#######################################################################

wno0=730.380
hrr=9.919
flat.7063
sat.7063
sumspec=sat.7064first
only = 1 4
sat.7064
storesum
sumspec=sat.7064last
only = 5 8
sat.7064
storesum

sumspec=sat.7065a
only = 1 2
sat.7065
storesum
sumspec=sat.7065b
only = 3 4
sat.7065
storesum
sumspec=sat.7065c
only = 5 8
sat.7065
storesum

#819 hi-med mode
########################################################################
#########820.2710,6
################################################################

#sat.7066 seems to not ahve happened.
#We think we had the nodwait wrong which made it unhappy and we quit
#early but not after completeing one scan.  Hmmmmm.

sumscan=false
wno0=819.762
hrr=9.933
flat.7067
only = 1 2
sat.7067
sumscan = true
skip = 1 2
sat.7067
sat.7068
#southern edge of slit is compromised by saturn being in it in the off
#position.  So for 7069 you need to toss out the bottom 4 pixels of the slit 
#and ignore
flatmode = old
sat.7069

#############################################################################

################
PI=Harper
PID=2019B035
################

shift=true
weight=true
subsky = true

#V354 Cep
#557 cm-1 Fe2
#556.119616,1
objtype=target
wno0=556.923
hrr=9.861
flat.7070
sumspec=v354cep.fe2
v354cep.7070
v354cep.7071
v354cep.7072
v354cep.7073
v354cep.7074
v354cep.7075
v354cep.7076
v354cep.7077
v354cep.7078
v354cep.7079
v354cep.7080
v354cep.7081
v354cep.7082
storesum

#Vesta
objtype=calibration
wno0=556.927
hrr=9.854
flat.7083
sumspec=vesta.fe2
ves.7083
ves.7084
ves.7085
storesum

#shifted the paraboloid then took another for possible help in 
#figuring out how to flatten orders

wno0=556.8983
hrr=9.912
flat.7086
ves.7086

kbd
end

