View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

ERROR: MWCS: dimension mismatch (mw_open)

hplana wrote on May 08, 2010

Hi

I am getting this mismatch type error when trying to average GMOS IFU spectra
with "gscombine". Why IRAF is doing that now and not previously remains a mystery. As mention before on the forum I tried to do a wcsreset image wcs=world, but IRAF is giving the same error when trying to do that.

Many thanks

Henri

Mike Fitzpatrick wrote on May 08, 2010

The dimension mismatch error usually comes about by copying out a section of the image (e.g. taking a 2-D slice of a 3-D image but the WCSDIM keyword still says '3'), or mismatched WCS systems (e.g. an equatorial WCS for spectral data). The WCSRESET should have worked but keep in mind if the WCS is inherited you may need to execute it on the primary header and/or the extension in question.

Otherwise, you'll need to post the image header (primary and extn) so we can see what's going on.

Last post on May 08, 2010