############################################
##Archival Pipescript written by Greathouse 
## 11/8/2021
##using F90 version of fife
##Finished by Greathouse on 03/14/2022
########################################

date = 21.1108
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,3
############################################################################

wno0=1344.914
hrr=9.894
ven.3000
flatmode = old
ven.3001
ven.3002
ven.3003
ven.3004
ven.3005
ven.3006

wno0=1344.915
hrr=9.893
ven.3017
ven.3018
ven.3019

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

wno0=529.824
hrr=9.768
ven.3007
ven.3008
ven.3009

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

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

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

wno0=793.344
hrr=9.849
flat.3010
ven.3010
ven.3011
ven.3012
ven.3013
ven.3014
ven.3015
ven.3016

##############################
PI=Sinclair
PID=2021B077
##############################

slitpa = 339.
shift=false
subsky=true
skyint = 1 3
sumscan=false
weight=false

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

thr=0.25
longslit

wno0=1934.6976
flat.3020
jup.3020

wno0=1934.6647
flat.3034
jup.3034

wno0=1934.5981
flat.3050
jup.3050

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

crossdisp

wno0=1246.865
hrr=9.929
flat.3021
jup.3021
jup.3022

####################################################################
#####hi-med
#####1248
##### right line of ch4 p9 triplet = 1246.452,5
##################################################################

wno0=1246.312
hrr=9.843
flat.3035
jup.3035

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

wno0=1246.851
hrr=9.940
flat.3036
jup.3036
jup.3037

####################################################################
#####hi-med
#####1248
##### right line of ch4 p9 triplet = 1246.452,3
##################################################################

wno0=1247.515
hrr=9.938
flat.3051
jup.3051
jup.3052

#####################################################################
#####hi-med
#####587
#############################################################################
##############588.1418,5
############################################################################

wno0=586.857
hrr=9.647
flat.3024
jup.3024
jup.3025

wno0=586.851
hrr=9.656
flat.3038
jup.3038
jup.3039

#################################
#######606 cm-1 CH3 hi med
#######strong line on left side 606.7415,6
######################################

wno0=605.524
hrr=9.471
flat.3026
jup.3026
jup.3027

wno0=605.519
hrr=9.478
flat.3040
jup.3040
jup.3041
jup.3042
jup.3043

wno0=605.523
hrr=9.471
flat.3053
jup.3053
jup.3054

##########################################
###731 cm-1
##ozone line is   730.6444,3
#############################################

wno0=730.434
hrr=9.847
flat.3028
jup.3028
jup.3029

wno0=730.427
hrr=9.856
flat.3044
jup.3044
jup.3045

#########################################
##819
##820.271,7
#########################################

wno0=819.151
hrr=9.872
flat.3030
jup.3030
jup.3031

wno0=819.1424
hrr=9.8826
flat.3046
jup.3046
jup.3047

##############################################
##950
##951.1923,5
##############################################

wno0=950.944
hrr=9.8575
flat.3032
jup.3032
jup.3033

##############################################
##950
##951.1923,5
##############################################

wno0=950.866
hrr=9.938
flat.3048
jup.3048
jup.3049

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


shift=true
weight=true
subsky = true

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

slitpa = 0.
objtype=calibration
wno0=557.5936
hrr=9.846
cer.3055
skip = 1 6
cer.3056
#the Two Ceres are taken at slightly different positions along the slit
#I think 3056 is more centered.

#V411 Per
objtype=target
sumspec=v411per.557
v411per.3057
v411per.3058
v411per.3059
v411per.3060
v411per.3061
v411per.3062
v411per.3063
v411per.3064
v411per.3065
storesum

#NO Aur
objtype=target
sumspec=noaur.557
noaur.3066
noaur.3067
noaur.3068
noaur.3069
noaur.3070
skip = 1 8
noaur.3071
noaur.3072
noaur.3073
noaur.3074
noaur.3075
storesum

objtype=calibration
cer.3076
skip 1 3
cer.3077

################################################################
PI = Fuchs
PID = 2021B059
##########################################################

subsky=true
weight=true 
shift=true

#893.2

objtype=calibration
#cer.3078  #garbage, wrong integration time
#cer.3079 #left chopper in the way, garbage

#891.3069,1

wno0=893.343
hrr=9.845
cer.3080

objtype=target
shift=false
weight=false
subsky=true
skyint = 1 3
vycma.3081

objtype=calibration
#Went to ACMA, but didn't see it in the scan .3082.
acma.3082

#since i didn't se acma i was worried it was too faint so went to 
#Ceres instead
#so 3083 is actually scans of Ceres
#I was adjusting the focus on each consecutive scan and got it better
acma.3083

shift=true
weight=true
subsky = true

cer.3084
sumspec=cer.893
cer.3084
storesum

objtype=target
sumspec=vycma.893
vycma.3085
storesum

#898 cm-1

ffttort=true
#897.6920,4

wno0=897.976
hrr=9.848
sumspec=vycma.897a
vycma.3086
storesum
sumspec=vycma.897b
skip = 1 3
vycma.3087
storesum

objtype=calibration
sumspec=cer.897
cer.3088
storesum

ffttort=false
#958
#957.8006,4

wno0=958.214
hrr=9.872
sumspec=cer.958
cer.3089
storesum

objtype=target
sumspec=vycma.958
vycma.3090
storesum

#972 cm-1
#973.2885,6

wno0=973.4500
hrr=9.8673
sumspec=vycma.972
vycma.3091
storesum

objtype=calibration
sumspec=acma.972
acma.3092
storesum

#979 cm-1
#979.7054,6

wno0=979.409
hrr=9.873
sumspec=acma.979
acma.3093
storesum

objtype=target
sumspec=vycma.979
vycma.3094
storesum

#952 cm-1

####################################
#952.8809,7
###################################

wno0=951.600
hrr=9.865
vycma.3095
sumspec=vycma.952
vycma.3096
storesum
vycma.3097

objtype=calibration
sumspec=acma.952
acma.3098
acma.3099
storesum

objtype=target
skyint=1 3
shift=false
vycma.3100

kbd
end

