<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi James,</p>
<p> I recall that Nick and I worked a bit on extracting spectra
from a fits cube one or two years ago. This may still be
un-merged code in my forked repo.</p>
<p>When you say '<span style="font-family:Calibri, sans-serif"
class="font"><span style="font-size:11pt" class="size">high-resolution
spectrum FITS file' what do you mean with this. A 1D spectrum?
Even a 1D spectrum can be stored with naxis1,2,3 = 1,1,NAXIS3
where the WCS of axis1 and 2 are used to label the
coordinates. That format is really still a 3D cube and
should work in my version.<br>
</span></span></p>
<p><span style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size">- peter<br>
</span></span></p>
<div class="moz-cite-prefix">On 6/28/19 9:52 AM, Nicholas Earl
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:976aa93a-98ed-495a-b55a-56597bb556ea@www.fastmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
<div>Hey James,<br>
</div>
<div><br>
</div>
<div>Specutils dev here. Specutils does not have a FITS loader for
every data file (though we do have an extensive collection). I'd
suggest following the <a
href="https://specutils.readthedocs.io/en/latest/custom_loading.html#creating-a-custom-loader"
moz-do-not-send="true">documentation</a> on creating a custom
data loader for your FITS file. Likewise, if you feel so
inclined, you can submit a PR to the repository with the loader
you create so that others trying to load similar data files
won't have to create their own loaders.<br>
</div>
<div><br>
</div>
<div>If you're still unable to load the data file after having
written your data loader (or need help writing the data loader),
please open an issue on <a
href="https://github.com/astropy/specutils/issues"
moz-do-not-send="true">specutils github repo</a>. We're eager
to make specutils as usable as possible, so please let us know
if you run into trouble.<br>
</div>
<div><br>
</div>
<div>Cheers,<br>
</div>
<div>Nick</div>
<div><br>
</div>
<div>On Thu, Jun 27, 2019, at 5:59 PM, James Dull wrote:<br>
</div>
<blockquote type="cite" id="qt">
<div dir="ltr">
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size">I am currently
trying to open a processed, high-resolution spectrum
FITS file. I have tried many of the methods suggested
online and yet cannot get the file to open without
error. I can get get files to open from other sources.
Depending on the version of the file used I get the
following errors.</span></span><br>
</p>
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size"> </span></span><br>
</p>
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size">InvalidSubimageSpecificationError:
Cannot find a spectral axis in the provided WCS. Are
your 'ctype's correct?</span></span><br>
</p>
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size"> </span></span><br>
</p>
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size">Or</span></span><br>
</p>
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size"> </span></span><br>
</p>
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size">IORegistryError:
Format could not be identified.</span></span><br>
</p>
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size"> </span></span><br>
</p>
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size">The FITS file was
generated using The SkyX Pro. I have also tried to open
the reduced FITS file created by the program ISIS.</span></span><br>
</p>
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size"> </span></span><br>
</p>
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size">Any help would be
greatly appreciated. </span></span><br>
</p>
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size"></span></span><br>
</p>
<p style="margin: 0in 0in 0.0001pt;" class="qt-MsoNormal"><span
style="font-family:Calibri, sans-serif" class="font"><span
style="font-size:11pt" class="size">Tucannon</span></span><br>
</p>
</div>
<div>_______________________________________________<br>
</div>
<div>AstroPy mailing list<br>
</div>
<div><a class="moz-txt-link-abbreviated" href="mailto:AstroPy@python.org">AstroPy@python.org</a><br>
</div>
<div><a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/astropy">https://mail.python.org/mailman/listinfo/astropy</a><br>
</div>
<div><br>
</div>
</blockquote>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
AstroPy mailing list
<a class="moz-txt-link-abbreviated" href="mailto:AstroPy@python.org">AstroPy@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/astropy">https://mail.python.org/mailman/listinfo/astropy</a>
</pre>
</blockquote>
</body>
</html>