# pipescript written by Curtis UT 6/28

date= 14.0628
slitpa = 90.
fitsdir=archive

####################
PI=Fletcher
PID=2014A022
####################

longslit
objtype=target

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

# 820.271cm-1 line
#flat.5000
wno0=819.754
sat.5000  #starting saturn maps
sat.5001

bounce=0.1
wno0=539.261
sat.5002
sat.5003
sat.5004

subsky=true
skyint=1 3
wno0=587.883
sat.5005

subsky=true
skyint=1 3
wno0=587.477
sat.5006
sat.5007

wno0=819.612
#flat.5008
sat.5008  

# 1248 methane
shift=false
weight=false
subsky=true
skyint= 1 7 
crossdisp
hrr=9.940
wno=1247.513
bounce=-0.2

#I think we are set up guiding on a moon instead of a star by accident.
#saturn was drifting off even when guideing.  We're not sure why at the moment
#sumspec=sat.1248
sat.5009
sat.5010
sat.5011
#storesum

#optistare1 scans
sat.5012
sat.5013
sat.5014

#went back to fowler scan
sat.5015
#during this file I realized saturn was probably drifting due to us guiding off a moon instead of a star

sat.5016  # only one scan as the star we found didn't stay in the field for the scan we were doing.

#okay, i think we have squared all of this away.  We are guiding now and scanning in fowlscan mode.  Should be able to add everythjing together from here on out.
#sumspec=sat.1248
sat.5017
sat.5018
only = 1
sat.5019
#storesum

#sumspec=sat.1248b
bounce = -0.4
only = 2
sat.5019
skip = 1 2
sat.5019
only = 1
sat.5020
#storesum

#sumspec=sat.1248c
skip=1
sat.5020
sat.5021
sat.5022
#bad shift middle scan 3 in 5023
skip=3   #play with this later to see if you can still use it.
sat.5023
sat.5024
sat.5025
sat.5026
sat.5027
#storesum

#####################
PI=Engineering
PID=2014A999
#####################

objtype=target

#going to play at AFGL 2591  (any methane?)
#
subsky=true
shift=true
weight=true

wno0=-1247.5129

afgl2591.5028  #had nsum 4 in fowler which appears to be a no no
afgl2591.5029  # ditto
afgl2591.5030   #this worked good nwrite and nsum=1

afgl2591.5031   #this had nwrite=4, qlook didn't like that does pipe?
afgl2591.5032   #nwrite=1 nsum=1 nnod 32.  I think this should work
afgl2591.5033   #nod wat was to short causing our spacing between pos and neg to vary crazily
afgl2591.5034   #didn't load the new nod wait so it is as bad as 5033
afgl2591.5035   #it won't let me change the nod wait?

#i restarted folwer mode and then things seem to be working!
afgl2591.5036

#going to neptune
#
#never felt I knew what was happening here.  never confident on source.

#1248
#hi-med neptune
#first two are scan
#last three are fowler
crossdisp
wno0=1247.5215
shift=false
weight=false
subsky=true
skyint = 1 3
sumscan = false
nep.5038.hd
nep.5037.hd

shift=false
weight=false
subsky=true
nep.5039.hd
nep.5040.hd
nep.5041.hd

#####################
PI=Trafton
PID=2014A064
#####################

#Uranus   nodding off the slit so should only be positive beam
#we are guiding
subsky= false
shift=false
weight=false
wno0=730.390
hrr=9.905
flat.5042
bounce=0

objtype=target
sumspec=uran.c2h2
uran.5042
uran.5043
uran.5044
uran.5045
uran.5046
uran.5047
uran.5048
uran.5049
storesum

#now nodding along the slit
bounce=-.2
sumspec=uran.c2h2b
uran.5050
uran.5051
uran.5052
uran.5053
uran.5054
uran.5055
#uran.5056  grabage, the guide camera died.
#now taking data hoping for good tracking rates (still see the signal)
uran.5057
uran.5058
storesum


end
