############################################
##Pipescript written by Greathouse 
## 11/10/2021
##using F90 version of fife
##Finished by Greathouse on 11/11/2021
########################################

date = 21.1110
slitpa = 0.
fitsdir = archive

######################
PI=Encrenaz
PID=2021B007
######################

objtype=target

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

########################################################################
###1345 cm-1
#####strong middle line in order 3 is 1344.0646,4
############################################################################

wno0=1344.285
hrr=9.870
flat.5000
ven.5000
ven.5001
ven.5002
ven.5003
ven.5004
ven.5005
ven.5006

########################################################################
###530 cm-1
###530.409,3
#########################################################################

wno0=529.830
hrr=9.756
flat.5014
ven.5014
ven.5015
ven.5016


##############
PI=Giles
PID=2021B071
###############

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

#######################################################################
####793 cm-1
####794.5851,7
#######################################################################

wno0=793.323
hrr=9.874
flat.5008
ven.5008
flatmode = old
ven.5007
ven.5009
ven.5010
ven.5011
ven.5012
ven.5013

###########################
PI=Antunano
PID=2021B010
###########################

thresh = 0.25
longslit

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

###1935
##############################################################
#1932.11 left hand peak of strong triplet in center  1932.11 
################################################################

wno0=1935.501
flat.5034
jup.5034

wno0=1935.454
flat.5046
jup.5046

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

wno0=2126.683
flat.5035
jup.5035

thr=0.5  #otherwise fife breaks
wno0=2126.690
flat.5047
jup.5047

##2140
#################################################################
###first deep line to the right of the central transparent window, 2145.467
#################################################################

wno0=2141.164
flat.5017
jup.5017

wno0=2141.162
flat.5036
jup.5036

wno0=2140.928
flat.5048
jup.5048

#539 cm-1
######################################################################
##########strong line in the middle  539.577
########################################################################
thr=0.5

wno0=539.216
flat.5018
jup.5018
jup.5019

wno0=539.207
flat.5037
jup.5037

wno0=539.211
flat.5049
jup.5049
jup.5050

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

wno0=587.023
flat.5020
jup.5020
jup.5021

wno0=587.056
flat.5038
jup.5038

wno0=587.156
flat.5051
jup.5051
jup.5052

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

wno0=744.402
flat.5022
jup.5022
jup.5023

wno0=744.397
flat.5039
jup.5039

wno0=744.459
flat.5053
jup.5053
jup.5054
jup.5055

#762 cm-1
#################################################################
#########used left hand peak of strong dubblet in middle 761.7561
############################################################

wno0=762.550
flat.5024
jup.5024
jup.5025
jup.5026

wno0=762.465
flat.5040
jup.5040

wno0=762.468
flat.5056
jup.5056
jup.5057
jup.5058
jup.5059
jup.5060

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

wno0=819.969
flat.5027
jup.5027

wno0=819.909
flat.5041
jup.5041

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

wno0=1248.349
flat.5028
jup.5028

wno0=1248.375
flat.5042
jup.5042

wno0=1248.028
flat.5061
jup.5061
jup.5062
jup.5063

#966
##########################################################################
##########used 3rd line right of the weakest featur in the middle is 966.2504
#############################################################
###changed to lowres
###KROT nominally set to -0.010

#krot=-0.015

wno0=970.314
flat.5029
jup.5029
jup.5030

wno0=970.655
flat.5043
jup.5043

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

wno0=903.176 
flat.5031
jup.5031
jup.5032

wno0=903.200
flat.5044
jup.5044

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

wno0=1173.588
flat.5033
jup.5033

wno0=1174.168
flat.5045
jup.5045

##############################
PI=Harper
PID=2021B016
###############

crossdisp
shift=true
weight=true
subsky = true

###########################################################################
########hi-med
########557 cm-1
######The right hand line in order 4 is CO2 and the wavenumber below
######is the correct one accounting for shifting due to being atop
######of Mauna Kea.
########557.715106,4
################################################################################

objtype=calibration
wno0=556.907
hrr=9.890
cer.5064

objtype=target
sumspec=super.557
super.5065
super.5066
skip = 5 6
skip = 14 18
super.5067
skip = 23 24
super.5068
skip = 1 10
super.5069
super.5070
skip = 8 16
super.5071
skip = 5 7
super.5072
super.5073
storesum

sumspec=rsper.557
rsper.5074
rsper.5075
skip = 1 9
rsper.5076
rsper.5077
#Nothing worth integrating in 5078
#rsper.5078
rsper.5079
skip = 1 20
rsper.5080
only = 1 12
rsper.5081
only = 18 21
rsper.5082
storesum


kbd
end

