Error in longslit.go

22 views
Skip to first unread message

roi...@gmail.com

unread,
Aug 18, 2014, 4:53:15 PM8/18/14
to mosfi...@googlegroups.com
I'm trying to reduce longslit data using most recent pipeline (2014.6.10). When I get to the last step (longslit.go) the pipeline crashes with

==========================================================
File "LH1n_H_str.py", line 45, in <module>
Longslit.go(maskname,band,obsfiles,'lambda_solution_wave_stack_H_m140109_0396-0398.fits',waveops,longslit)
File "/Users/iBonBon/Observation/Keck_MOSFIRE/MOSDRP/MOSFIRE/Longslit.py", line 169, in go
raise Exception("I currently expect only one file per position. Remove multiple entries and try again")
Exception: I currently expect only one file per position. Remove multiple entries and try again
==========================================================

The obsfiles are ['Offset_5.txt', 'Offset_-5.txt']

Offset_5.txt includes [m140109_0384.fits, m140109_0387.fits]
Offset_-5.txt includes [m140109_0385.fits, m140109_0386.fits]

Thanks!
Hyewon

J. Sebastian Pineda

unread,
Aug 18, 2014, 5:06:59 PM8/18/14
to mosfi...@googlegroups.com
It's just as the error states.

"I currently expect only one file per position. Remove multiple entries
and try again"

The longslit reduction is only setup to reduce a single AB pair, so you
have to run it twice, once for frames 384 and 385 and again from frames
386 and 387. Split the text files so you only have a single file name in
each (you'll have a text file for each frame). If you're using the
skylines for the wavlength solution you'll probably want to do the
fit_lambda steps again as well but if you're using the Neon arcs then
you'll use the same wavelength solution.


-Sebastian
--
J. Sebastian Pineda
Cahill Center for Astronomy and Astrophysics
California Institute of Technology
1200 California Blvd. MC 249-17
Pasadena CA, 91125

Office: (626) 395-6857

roi...@gmail.com

unread,
Aug 18, 2014, 9:06:33 PM8/18/14
to mosfi...@googlegroups.com, jspi...@astro.caltech.edu
Thanks a lot!

I run it for frames 384(A) and 385(B), and outputs are

longslit_Str53735_H_A-A_0384-0385.fits
longslit_Str53735_H_A-A_0385-0384.fits

I was wondering if the longslit pipeline reduces a AA pair, not a AB dither pattern.

J. Sebastian Pineda

unread,
Aug 20, 2014, 1:03:16 PM8/20/14
to mosfi...@googlegroups.com
I don't think it can. The longslit pipeline takes the two frames you
give it, subtracts them and rectifies them with the wavelength
calibration. If the trace is in the same place on the detector in both
frames, that won't give you anything useful.


-Sebastian
Reply all
Reply to author
Forward
0 new messages