Skip to content

Handle files with stokes and channel axes switched (addresses issue #26)#60

Draft
marcinsokolowski wants to merge 1 commit into
devfrom
msok/stokes-freq-order
Draft

Handle files with stokes and channel axes switched (addresses issue #26)#60
marcinsokolowski wants to merge 1 commit into
devfrom
msok/stokes-freq-order

Conversation

@marcinsokolowski
Copy link
Copy Markdown

@marcinsokolowski marcinsokolowski commented Feb 4, 2026

Initial revision of version where swapped order of STOKES and FREQUENCY axis is discovered (3rd axis STOKES and 4th axis FREQ) and program works appropriately to convert FITS to HDF5 file without going through intermediate step of swapaxes in python. This addresses issue #26 where converter does not for new ASKAP data with CTYPE3=STOKES and CTYPE4=FREQ (swapped axis).

The idea is to make a simple fix and I assume that STOKES and FREQ axis can only be 3rd or 4th, and spatial axis are always going to be 1,2. Any more complex axis ordering may be considered in the future (for example after TIME axis is added).

It was already tested on both normal-ordered axis data and swapped-axis data and works fine.

Should not conflict with any other changes, can be reviewed and potentially merged to the main branch.
However, it can potentially live in a separate branch if there are good reasons for it. I've already compiled it on Setonix in Perth and it seems to be working ok there.

TODO in the future
I will look at the same in the smart-converter mode later when I start testing and merging it to the main branch.

…CY axis is discovered (3rd axis STOKES and 4th axis FREQ) and program works appropriately to convert FITS to HDF5 file without going

through interemediate step of swapaxis in python.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants