Replies: 6 comments
-
Sure, this sounds reasonable. As you say, FITS is a very powerful and flexible format and libvips certainly does not support all of its features. |
Beta Was this translation helpful? Give feedback.
-
Much appreciated! |
Beta Was this translation helpful? Give feedback.
-
Yes, libvips images have three dimensions and all can have any number of elements, up to 2**31. |
Beta Was this translation helpful? Give feedback.
-
In this case I would like to suggest following enhancements: vips_fitsload:
vips_fitssave:
Any specific handling of metadata/FITS headers should be left to the application because there is too many different requirements. It is sufficient if the vips library would just apply a simple conversion: reading and writing header keywords from/to first image HDU (as it is most likely the case already). Would be awesome to get the multi-extension FITS images supported by vips, as required by my image reduction project. Please let me know if I can help by testing any new implementation. |
Beta Was this translation helpful? Give feedback.
-
I should provide an example multi-extension FITS file ... |
Beta Was this translation helpful? Give feedback.
-
Thanks for this -- let's leave this open as an enhancement issue. |
Beta Was this translation helpful? Give feedback.
-
The FITS file standard allows for very different arrangement of image data within the file. In the case of storing multiple 2D images of the same size - e.g. from observations of an astronomical target in multiple color bands - there are two typical layouts found:
A special case is the storage of 3 image planes, which could represent a red, green and blue color image. For the variants A and B this will result in
As far as I can see from first testing, vips does support the case A - FITS image cubes - only. I'd like to kindly ask to add additional support of the widely used multi-extension FITS image format for reading and writing (the latter might probably need an additional option in vips_fitssave() to distinguish from the default).
Thanks,
Thomas
Beta Was this translation helpful? Give feedback.
All reactions