How to convert .mt file with a spectrum to a more convenient format, please? I am able to display that in fv: Fits Viewer, but I am lost in converting. Thank you

  • 3
    $\begingroup$ Can you please edit your question to include a link to an example file ? $\endgroup$ – astrosnapper Apr 9 at 22:01
  • $\begingroup$ Sure, I have added it. $\endgroup$ – Elena Greg Apr 10 at 3:24

.mt files are the output files (or possibly intermediate ones as the final products in the ESO archive have .fits extensions) produced by the ESO-MIDAS data reduction system for the (in this case) FEROS echelle spectrograph. The individual echelle orders have been extracted from the original 2D CCD images, flattened, wavelength calibrated and joined together into a 1D spectrum.

The .mt files are FITS files however the fact that they are 1D can cause some issues for normal image viewers; the ESO archive has some help on how to setup various tools (including fv) for displaying 1D spectra. In this case, since the file is a standard FITS file, regular FITS tools e.g. AstroPy, IRAF, MIDAS etc will work to convert the file and the ESO archive link above has info on how to do this in Python, IDL and IRAF.

One relatively pain-free option could to use Splat-VO to do the plotting, investigation and conversion. (When loading the .mt spectrum you will need to either rename the extension to .fits or tell Splat-VO the file format is FITS as it won't be auto-recognized). Once it's loaded in, you can convert to a variey of formats, including ASCII/text.

  • $\begingroup$ Thank you very much. And is it possible en masse in Splat-VO? $\endgroup$ – Elena Greg Apr 10 at 19:23
  • 1
    $\begingroup$ Not really, Splat-VO is meant as an interactive investigation tool. Not knowing the level of FITS spectra experience of you or future readers of this question, it seemed a good starting point. For en-masse data conversion/manipulation, a data reduction environment such as Starlink, IRAF or MIDAS (ordering based on my level of knowledge) or programming language such as Python+specutils or IDL would be better with choice based on preference and current and future use $\endgroup$ – astrosnapper Apr 10 at 19:32
  • $\begingroup$ Thank you very much $\endgroup$ – Elena Greg Apr 10 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.