So there isn't great news to report. I have a version that extracts spectra but unfortunately the background subtraction is not working well. And by well I mean not better than before. I am not sure what is causing this and decided to step away from it for a while. Not sure when I can get back to it. If/when I do get things working, I will certainly let you and the group know.
-Mike
> --
> You received this message because you are subscribed to the Google Groups "P200 TripleSpec Users" group.
> To post to this group, send email to p200-tripl...@googlegroups.com.
> To unsubscribe from this group, send email to p200-triplespec-...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/p200-triplespec-users?hl=en.
--
i patched together a program today that converts a triplespec image
into a single-order, wavelength vs. slit image. if you use this to
rectify your data, you can then use a simple total() command in IDL to
get a spectrum out. i wrote this because my tedi routines i put
online really only work for tedi-like targets (really bright). this
should work for faint targets. if you want to do further analysis
beyond just the total() command, this could even integrate with the
IRAF long-slit routines, which accept single-order, rectified data.
instructions:
http://astrosun2.astro.cornell.edu/~muirhead/tspec_rectify.pro
you'll also need to put this dat file in the same directory as
tspec_rectify:
http://astrosun2.astro.cornell.edu/~muirhead/tspecdat.idl
and you'll need findex.pro if you don't already have it:
http://hea-www.harvard.edu/PINTofALE/pro/external/findex.pro
take your data, flat-field it, subtract a nod (or subtract the median
of several positions along the slit), save that as a fits, and then do
this:
IDL> tspec_rectify, input='flat_fielded_and_nod_subtracted.fits',
output='rectified.fits', flux_grid=flux_grid, lambda_grid=lambda_grid,
spatial_grid=spatial_grid
that will take about a minute or two. then open 'rectified.fits' in
your favorite fits viewer and find the vertical pixel numbers that
bookend your target. suppose you target is between y = 20 and 50.
then do this:
IDL> plot, lambda_grid[*,0], total(flux_grid[*,20:50],2)
and if you don't like the residual OH lines, you can subtract a nearby
OH spectrum like this:
IDL> plot, lambda_grid[*,0], total(flux_grid[*,20:50],2) -
total(flux_grid[*,51:81],2)
notice i subtracted a nearby region (51 to 81) with the same number of
vertical pixels (31). that is critical. also, don't use pixels that
contain a negative of your target for the OH subtraction! use pixels
that only contain OH lines for a subtraction. i mean..duh.
and if your data still looks like shit you can try smooth() ing it.
anyway, it's not a perfect interpolation, since it uses a fixed
solution for the detector. you'll prob notice your oh lines don't
become perfectly vertical, nevertheless i think this should work for
most science applications. *maybe* in the future i will add something
to recalibrate with the oh lines, but that will have to wait.
feel free to report bugs.
cheers,
phil
On Feb 24, 2:23 pm, Babs <barbara.ro...@gmail.com> wrote:
> Hey Eilat (and all),
>
> I've been using Phil's reduction package ... You can download it from his
> webpage:
>
> http://astrosun2.astro.cornell.edu/~muirhead/#Downloads<http://astrosun2.astro.cornell.edu/%7Emuirhead/#Downloads>
>
> Everything you need to do is explained there BUT if your exposures are of
> 300s (or more) then probably it would not do a good job removing the
> background/skylines ... Since my objects are very bright I have no problem
> with that ... give it a try ...
>
> Cheers,
>
> Babs
>
> --
> "Yesterday is history, tomorrow is a mystery, but today is a gift. That is
> why it is called the present."
> -Oogway
> ----------------------------------------------------------
> Barbara Rojas Ayala
> 208 Space Sciences Building
> Cornell University
> Ithaca, NY 14853
> (607)255-5891
> (607)793-3186
> b...@astro.cornell.edu
> ----------------------------------------------------------
>
> 2010/2/24 Eilat Glikman <eilat.glik...@gmail.com>
>
> > What have people been using to reduce (and publish?) their TSpec data?
>
> > Is there anything available right now that will do a decent job on
> > reasonably well-exposed 2MASS sources?
>
> > Thanks!
> > Eilat
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "P200 TripleSpec Users" group.
> > To post to this group, send email to
> > p200-tripl...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > p200-triplespec-...@googlegroups.com<p200-triplespec-users%2Bunsu...@googlegroups.com>
To unsubscribe from this group, send email to p200-triplespec-...@googlegroups.com.
On Mar 15, 1:45 pm, Babs <barbara.ro...@gmail.com> wrote:
> Hi guys,
>
> once you have the rectified data then you can also (instead of iraf) use the
> idl package REDSPEC
>
> http://www2.keck.hawaii.edu/inst/nirspec/redspec.html
>
> Babs
>
> 2010/3/14 phildelio <philip.muirh...@gmail.com>
>
>
>
>
>
> > hi everyone. phil here.
>
> > i patched together a program today that converts a triplespec image
> > into a single-order, wavelength vs. slit image. if you use this to
> > rectify your data, you can then use a simple total() command in IDL to
> > get a spectrum out. i wrote this because my tedi routines i put
> > online really only work for tedi-like targets (really bright). this
> > should work for faint targets. if you want to do further analysis
> > beyond just the total() command, this could even integrate with the
> > IRAF long-slit routines, which accept single-order, rectified data.
>
> > instructions:
>
> >http://astrosun2.astro.cornell.edu/~muirhead/tspec_rectify.pro<http://astrosun2.astro.cornell.edu/%7Emuirhead/tspec_rectify.pro>
>
> > you'll also need to put this dat file in the same directory as
> > tspec_rectify:
>
> >http://astrosun2.astro.cornell.edu/~muirhead/tspecdat.idl<http://astrosun2.astro.cornell.edu/%7Emuirhead/tspecdat.idl>
> > > > p200-triplespec-...@googlegroups.com<p200-triplespec-users%2B unsub...@googlegroups.com>
> > <p200-triplespec-users%2Bunsu...@googlegroups.com<p200-triplespec-users %252Buns...@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/p200-triplespec-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "P200 TripleSpec Users" group.
> > To post to this group, send email to
> > p200-tripl...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > p200-triplespec-...@googlegroups.com<p200-triplespec-users%2B unsub...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/p200-triplespec-users?hl=en.
>
> --
http://astrosun2.astro.cornell.edu/~muirhead/tspec_rectify.pro
-phil
> To unsubscribe from this group, send email to p200-triplespec-...@googlegroups.com.
Now, I want to use a standard star for telluric corrections. I know
the rough method for doing this, but I have been using SpecTool up
until now. Before I reinvent the wheel for one night of data reduced
with tspec_rectify, I was hoping that somebody might have a piece of
pre-written code. Can anyone help?
Thanks,
Ori
On Mar 25, 11:25 am, Philip Muirhead <muirh...@astro.cornell.edu>
wrote:
How many sources have you observed? If not too many, you can use xtellcor_general in the standard Spextool package (as Kelle's email just said). The only draw back is that currently it can only take a single order at a time. So you would input two text files, with columns of wavelength, flux, error, for each order separately.
The new version of Spextool that I have half working with Tspec data will take multi-order data, but it isn't ready to be released yet.
-Mike
Well, doesn't look like xtellcor_general is liking what I'm giving
it. I've attached my two data files.
http://www.astro.virginia.edu/~odf4n/triplespec/OCTOBER07/SN2007gr/mHD18881.dat
http://www.astro.virginia.edu/~odf4n/triplespec/OCTOBER07/SN2007gr/mSN2007gr.dat
When I try to run xtellcor_general, I keep getting this error. Maybe
having all orders together is throwing it off?
% Tag name STDNAPS is undefined for structure <Anonymous>.
% Error occurred at: XTELLCOR_GENERAL_EVENT 82
/data/odf4n/triplespec/spextool/Spextool2/pro/xtellcor_general.pro
% WIDGET_PROCESS_EVENTS
% $MAIN$
% Execution halted at: $MAIN$
-Ori
On Apr 13, 5:14 pm, Michael Cushing <michael.cush...@gmail.com> wrote:
>> > > > p200-triplespec-users+unsub...@googlegroups.com<p200-triplespec-users%2B unsub...@googlegroups.com>
>> > <p200-triplespec-users%2Bunsu...@googlegroups.com<p200-triplespec-users %252Buns...@googlegroups.com>
>>
>> > > > .
>> > > > For more options, visit this group at
>> > > >http://groups.google.com/group/p200-triplespec-users?hl=en.
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups
>> > "P200 TripleSpec Users" group.
>> > To post to this group, send email to
>> > p200-tripl...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > p200-triplespec-users+unsub...@googlegroups.com<p200-triplespec-users%2B unsub...@googlegroups.com>
>> > .
>> > For more options, visit this group at
>> >http://groups.google.com/group/p200-triplespec-users?hl=en.
>>
>> --
>> "Yesterday is history, tomorrow is a mystery, but today is a gift. That is
>> why it is called the present."
>> -Oogway
>> ----------------------------------------------------------
>> Barbara Rojas Ayala
>> 208 Space Sciences Building
>> Cornell University
>> Ithaca, NY 14853
>> (607)255-5891
>> (607)793-3186
>> b...@astro.cornell.edu
>> ----------------------------------------------------------
>
> --
> You received this message because you are subscribed to the Google Groups "P200 TripleSpec Users" group.
> To post to this group, send email to p200-tripl...@googlegroups.com.
> To unsubscribe from this group, send email to p200-triplespec-users+unsub...@googlegroups.com.
Hi Nate,
I do not have my mac with me but probably it is a function were the "/normalize" option does not exist. Did you check the lines where the error appears? Check if it happens each time the same function is called.
Babs
To unsubscribe from this group and stop receiving emails from it, send an email to p200-triplespec-...@googlegroups.com.
To post to this group, send email to p200-tripl...@googlegroups.com.
Visit this group at http://groups.google.com/group/p200-triplespec-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.