[Dachs-support] iterOtherAxis error with transformation matrix
Ixaka Labadie
ixakalab at iaa.es
Thu Jun 13 17:41:36 CEST 2024
Hello,
I am testing a SODA-like service with 3D data where the spectral one can
be either wavelength or velocity.
I was using "fits_makeWCSParams()" with "axisMetaOverrides" = 3 but with
some new cubes I am getting an error.
I traced the error to "fitstools.WCSAxis.fromHeader()"
inĀ "iterOtherAxisKeys()", which raises a ValueError if the axis is
mentioned in the transformation matrix (CPi_j or PCi_j), which it is.
The transformation matrix is the identity matrix.
I saw that this can be fixed with the "forceSeparable" argument but
there is no way to set it in "fits_makeWCSParams()". I could write a new
"dataFunction" myself or try using "fits_makeBandMeta" and
"fits_VelocityMeta" but with the latter option I do not know how to
differentiate between cubes with velocity or wavelength not to raise an
error.
Is there a proper way to fix this?
Thanks,
Ixaka Labadie
More information about the Dachs-support
mailing list