#Greathouse is building the pipescript starting on 14th and finished piping all
#the data by the end of the night!

date=19.0814
slitpa = 0.
fitsdir=archive

##################
PI=Antunano
PID=2019B031
##################

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

longslit

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

objtype=target

thr=0.25

wno0=1935.308
flat.2000
jup.2000

wno0=1935.158
flat.2006
jup.2006

wno0=1936.233
flat.2022
jup.2022

#539 cm-1
####################################################################
########strong line on far right hand side is 539.577
######################################################################
thr=0.5

wno0=539.214
flat.2010
jup.2010


#586 cm-1
#####################################################################
########left hand line of the two middle weak lines is 586.2059
#######################################################################

wno0=587.183
flat.2011
jup.2011

#744 cm-1
###################################################################
########tom used left line of middle two narrow features is 744.2074
#####################################################################

wno0=744.486
flat.2012
jup.2012

#762 cm-1
###############################################################
#######used right hand peak of strong dubblet on the left 760.4873
##########################################################

wno0=762.489
flat.2013
jup.2013

#819 cm-1
#####################################################################
########3rd line from the right is 818.7125
######################################################################

wno0=819.748
flat.2014
jup.2014

#1248 cm-1
########################################################################
#### right line of ch4 p9 triplet = 1246.452
###############################################################

wno0=1248.497
flat.2001
jup.2001

wno0=1247.825
flat.2002
jup.2002

wno0=1247.383
flat.2015
jup.2015

#2140
###############################################################
#CO line left hand of the strong doublet, 2135.5466
###############################################################

###############################################################
#first deep line to the right of the central transparent window, 2145.467
###############################################################
thr=0.25

wno0=2141.129
flat.2004
jup.2004

wno0=2141.083
flat.2008
jup.2008

#2035
##############################################################
#narrow line right of strongest line in setting and left of 
#a doublet 2042.9510
##############################################################

wno0=2041.423
flat.2005
jup.2005

wno0=2041.363
flat.2009
jup.2009

#2125
################################################
#left line of strong set of three center right 2127.6829
########################################################################

wno0=2126.776
flat.2003
jup.2003

wno0=2126.824
flat.2007
jup.2007

wno0=2126.777
flat.2023
jup.2023

#966
########################################################################
########used 3rd line right of the weakest featur in the middle is 966.2504
###########################################################
thr=0.5

wno0=966.243
flat.2016
jup.2016

#900
##############################################################################
########strongest line in this setting 908.9538
###################################################################

wno0=899.073
flat.2017
jup.2017
jup.2018
jup.2019

#1165
########################################################################
###strongest line in setting is 1174.55
##################################################################

wno0=1166.856
flat.2020
jup.2020
jup.2021

crossdisp

##################
PI=Tsang
PID=2019B004
##################

shift=true
weight=true
subsky=true


#Callisto 530 cm-1
#530.409,3

objtype=calibration

wno0=529.736
hrr=9.929
flat.2024
cal.2024

#io
objtype=target
sumspec=io.14a
io.2025
io.2026
io.2027
skip= 12 16
io.2028
io.2030
skip = 14
io.2035
skip = 15 16
skip = 11 13
io.2036
storesum

weather = terrible
io.2029  #Garbage
io.2031  #pretty terrible
io.2032 #just terrible
io.2033  #just terrible
io.2034  #pretty terrible, but not much else to work with...
weather =

#Callisto
objtype=calibration
sumspec=cal.14b
skip = 5 6
skip = 13 16
cal.2037
cal.2038
storesum

#Io
objtype=target
sumspec=io.14b
skip = 1 4
skip = 10
io.2039
io.2040
io.2041
skip = 1 2
skip = 12 13
io.2042
skip = 4 10
io.2043
skip = 6 14
io.2044
skip = 13 14
io.2045 
storesum

ffttort = true

weather = terrible
io.2046  #toss this one
io.2047  #toss this one
io.2048  #toss this one
weather =

ffttort = false

#callisto
objtype=calibration
sumspec=cal.14c
cal.2049
cal.2050
storesum

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

shift=true
weight=true
subsky=true

#UY Sct
#557 cm-1 Fe II
#556.119616,1   
objtype=target

wno0=556.873
hrr=9.950
flat.2051
sumspec=uysct.fe2
uysct.2051
skip = 1 3
skip = 11 16
uysct.2052
skip = 1 3
skip = 8
uysct.2053
skip = 15
uysct.2054
skip = 4 6
skip = 10 16
uysct.2055
only = 1 4
uysct.2056
storesum
weather = terrible
uysct.2057 #garbage clouds are too thick
weather =

# Going to NML Cyg because nothing else is up that I think we can see
# through these wonderful clouds
objtype=target
sumspec=nmlcyg.fe2
ncyg.2058
ncyg.2059
storesum

#EP Aqr
objtype=target
sumspec=epaqr.fe2
skip = 4 5
skip = 10 14
epaqr.2060
skip = 3 8
skip = 14 16
epaqr.2061
skip = 6 7
skip = 14 15
epaqr.2062
skip = 8 12
epaqr.2063
skip = 4 8
skip = 14 16
epaqr.2064
epaqr.2066
epaqr.2067
only = 1 4
epaqr.2068
epaqr.2069
storesum

weather = terrible
epaqr.2065  #not worth the trouble
weather =

#PZ Cas
#had to work to get on this one.  Electronics are about 4 inches from yoke.
#We have a n/s slit and the electronics are in the south.  Might be able to go
#farther north if we went with an E/W slit, but i would worry about oscillations
#
objtype=target
sumspec=pzcas.fe2
pzcas.2070
pzcas.2071
pzcas.2072
pzcas.2073
pzcas.2074
storesum

#TZ Cas
objtype=target
sumspec=tzcas.fe2
tzcas.2075
tzcas.2076
tzcas.2077
tzcas.2078
skip = 8 16
tzcas.2079
tzcas.2081
tzcas.2082
tzcas.2085
storesum

weather = terrible
tzcas.2080  #garbage
tzcas.2083  #garbage
tzcas.2084  #garbage
weather =

#Vesta for a divisor
objtype=calibration
sumspec=vesta.fe2
ves.2086
skip = 1 8
ves.2088
ves.2089
skip = 14 16
ves.2090
skip = 1 3
ves.2091
storesum

weather = terrible
ves.2087  #garbage
weather =

kbd
end

