FITS roworder suppo...
 
Share:
Notifications
Clear all

2023-09-16: APP 2.0.0-beta23 has been released !

Improved performance again, CMD-A now works in macOS File Chooser, big improvement for bad column cosmetic correction, solved several bugs

We are very close now to  releasing APP 2.0.0 stable with a complete printable manual...

Astro Pixel Processor Windows 64-bit

Astro Pixel Processor macOS Intel 64-bit

Astro Pixel Processor macOS Apple M Silicon 64-bit

Astro Pixel Processor Linux DEB 64-bit

Astro Pixel Processor Linux RPM 64-bit

FITS roworder support?

13 Posts
3 Users
4 Likes
305 Views
(@raybellis)
White Dwarf
Joined: 8 months ago
Posts: 9
Topic starter  

Can I please get confirmation of the status of support for ROWORDER in FITS files?

The files generated by my Vespera are BOTTOM-UP.  They don't actually say so, so I've written code to add this keyword to my files (and fix some other minor non-conformities).  However when I load such a file it still appears flipped in the image viewer:

Screenshot 2023 01 27 at 00.14.21

M32 should appear on the bottom left of this image, but is in the top left instead.  I'm using a trial license, running 2.0.0-beta13 on Apple silicon.

Thanks! 


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 6 years ago
Posts: 5701
 

I'm not sure but is roworder a standard keyword for the Fits specification?


   
ReplyQuote
(@raybellis)
White Dwarf
Joined: 8 months ago
Posts: 9
Topic starter  

@vincent-mod It's not, but then again the FITS spec itself has very few keywords explicitly defined in it.  Many of the commonly used keywords (even ones like RA / DEC) are defined in agency-specific dictionaries and not in the core spec.

I have searched here and found release notes saying ROWORDER is supported in APP, but yet it doesn't appear to work, hence my puzzlement.


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 6 years ago
Posts: 5701
 

Right, I'll ask Mabula about it. Please note that we're away to Astrofest in London (Mabula from 29-01 and me from 02-02), I hope I can get an answer before that for you.


   
Ray Bellis reacted
ReplyQuote
(@raybellis)
White Dwarf
Joined: 8 months ago
Posts: 9
Topic starter  

Is there any news on this, please?


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 6 years ago
Posts: 5701
 

Not yet unfortunately, Mabula is unavailable at the moment. I'll make sure he gets to the posts when he is.


   
Ray Bellis reacted
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3815
 

Hi Ray @raybellis,

The Fits roworder keyword is fully supported in the latest APP version.

The keyword actually indicates how data with a Bayer Color Filter Array should be debayered. It does not indicate that the image should be shown upside down I think. Depending on the ROWORDER being bottom-up or top-down an inverse Bayer pattern should be use to correctly debayer the data.

https://free-astro.org/index.php?title=Siril:FITS_orientation

Mabula


   
ReplyQuote
(@raybellis)
White Dwarf
Joined: 8 months ago
Posts: 9
Topic starter  

Hi @mabula-admin  !

I believe it's strictly intended to address both.  It happens that Siril always (and IMHO incorrectly) assumes bottom-up for display purposes, but other applications (e.g. PI) do the "right" thing both for Debayer and for display in the presence of the keyword.

As written in the portion of the FITS specification that was quoted in the above link:

we recommend that FITS writers order the pixels so that the first pixel in the FITS file (for each image plane) be the one that would be displayed in the lower-left corner

yet APP always loads and displays the image data such that the first pixel is displayed at top-left.

Ray


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3815
 

Hi Ray @raybellis,

Okay, I will check this behaviour 😉 and fix it then.

It would help me if you can share 1 or 2 of your light frames with me, simply for testing purposes.

Can you upload a couple of frames here:

https://upload.astropixelprocessor.com/

username: upload

password: upload

Please make a folder with your name and issue like: RayBellis-FITS-ROWORDER

and let me know once uploaded 😉 then it will be easy to correct.

Mabula

 


   
Ray Bellis reacted
ReplyQuote
(@raybellis)
White Dwarf
Joined: 8 months ago
Posts: 9
Topic starter  

@mabula-admin I've uploaded two files into RayBellis-VesperaFITS

img-0001.fits is the file straight off the scope (a Vaonis Vespera smart scope).  It's bottom-up data (per FITS recommendations) but doesn't say so.

light-0001.fits is the same file with the FITS headers cleaned up for conformance.

thanks!

Ray

This post was modified 7 months ago by Ray Bellis

   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3815
 

Thanks Ray @raybellis,

Willl keep you updated 😉 !

 


   
Ray Bellis reacted
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3815
 

Posted by: @raybellis

@mabula-admin I've uploaded two files into RayBellis-VesperaFITS

img-0001.fits is the file straight off the scope (a Vaonis Vespera smart scope).  It's bottom-up data (per FITS recommendations) but doesn't say so.

light-0001.fits is the same file with the FITS headers cleaned up for conformance.

thanks!

Ray

Hi @raybellis,

I have fixed this now. FITS images with the ROWORDER tag BOTTOM-UP will also be displayed BOTTOM-UP. I have made sure that calibration is not affected, old calibration masters will still work properly. 2.0.0-beta14 will have this fix and I will probably release it within a couple of days 😉

Mabula

 

 


   
ReplyQuote
(@raybellis)
White Dwarf
Joined: 8 months ago
Posts: 9
Topic starter  

Great, thanks!

Ray


   
ReplyQuote
Share: