############################################
##Pipescript written by Greathouse 
## 10/05/21
##using F90 version of fife
########################################

date = 21.1005
slitpa = 180.
fitsdir = archive

###################
PI = Nordheim
PID = 2021B083
##################
#
#note: some of these have bad fringing

shift = true
weight = true
subsky = true

longslit
#krot = -0.02

##############################################################
####1000 cm-1
###2nd line right of weak line on far left (so third line) 988.9
#I think it is just the second line from the left (i think that weak
#feature fell off for this setup.
#################################################################

objtype = target
wno0 = 999.296
sumspec = cal.1000
cal.9000
cal.9001
storesum

objtype = calibration
wno0 = 999.296
sumspec = pisgr.1000
pisgr.9002
pisgr.9003
pisgr.9004
storesum

#9005 doesn't have any signal in it
weather = bad
pisgr.9005
weather = 

###########################################################
###1108
###4th line from left 1106.744
#no it isn't.  3rd from left 1111.513
#################################

objtype = calibration
wno0 =   1116.15
sumspec = pisgr.1108
pisgr.9006
pisgr.9007
pisgr.9008
pisgr.9010
storesum

weather = bad
pisgr.9009 # mostly garbage
weather = 

objtype = target
wno0 =   1116.15
sumspec = cal.1108
#cal.9011  ignore, garbage
cal.9012
cal.9013
storesum

##########################################################
###1139
###strong line left of doublet on right hand side  1149.4637
#############################################################

objtype = target
wno0 = 1147.40
sumspec = cal.1139
cal.9014
cal.9015
storesum

objtype = calibration
wno0 = 1147.40
sumspec = pisgr.1139
pisgr.9016
pisgr.9017
pisgr.9018
storesum

#################################
PI = Spencer
PID = 2021B091
##############################

crossdisp
shift = true
weight = true
subsky = true

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

objtype = calibration
wno0 = 529.708
hrr = 9.980
#pisgr.9019 is really cal.9019
sumspec = cal.530e
pisgr.9019
storesum

objtype = target
wno0 = 529.708
sumspec = io.530e
io.9021
io.9022
io.9023
only = 14 16
io.9024
io.9025
io.9026
io.9027
only = 11 13
io.9028
io.9030
storesum

weather = bad
io.9020 #nothing worth adding
io.9029 
weather = 

objtype = calibration
wno0 = 529.708
sumspec = cal.530f
only = 1 6
cal.9031
only = 7 13
cal.9032
storesum

objtype = target
wno0 = 529.708
sumspec = io.530f
only = 1 9
io.9033
io.9034
io.9035
only = 1 3
io.9037
only = 12 16
io.9039
io.9042
io.9043
storesum

weather = bad
io.9036  #nothin in this one
io.9038
io.9040
io.9041
weather =

#####################
PI = Lacy
PID = 2021B081
####################

shift = true
weight = true
subsky = true

############################################################
##sharp ozone line 1276.626,6
########################################################

#we currently have cirrus and 2 arcsec seeing.  This is just what i 
#want to be doing in the middle of the night.

objtype = target
wno0 = 1276.622
hrr = 9.960
sumspec = ngc7538.1277b
ngc7538.9044
ngc7538.9045
ngc7538.9046
ngc7538.9047
ngc7538.9048
ngc7538.9049
ngc7538.9050
ngc7538.9051
ngc7538.9052
ngc7538.9053
ngc7538.9054
ngc7538.9055
ngc7538.9056
ngc7538.9057
ngc7538.9058
ngc7538.9059
storesum


#767 cm-1
#############################################
##767.0300,3
#############################################

objtype = target
wno0 = 768.0715
hrr = 9.989
sumspec = ngc7538.767b
ngc7538.9060
ngc7538.9061
ngc7538.9062
storesum

#This setting is futile with these conditions.  Going on to see if we
#can do Harper's stuff, but i'm not anticipating a huge improvement.

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

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 Mauna Kea.
#557.715106,3
##But Lacy model atmo disagrees for integration through atmo
##########################################################################

objtype = calibration

#cer.9063 #on accume ignore
hrr = 9.737
wno0 = 557.661
cer.9064

objtype = target
wno0 = 557.6625
sumspec = yzper.557
yzper.9065
yzper.9066
yzper.9067
storesum

weather = bad
#we either lost it or the weather is just so bad we can't see it anymore
yzper.9068
yzper.9069
yzper.9070
weather = 

objtype = target
wper.9071

weather = bad
wper.9072  #i didn't see it here
weather =

kbd
end
