Problem Saving/Load...
 
Share:
Notifications
Clear all

15th Feb 2024: Astro Pixel Processor 2.0.0-beta29 released - macOS native File Chooser, macOS CMD-Q fixed, read-only Fits on network fixed and other bug fixes

7th December 2023:  added payment option Alipay to purchase Astro Pixel Processor from China, Hong Kong, Macau, Taiwan, Korea, Japan and other countries where Alipay is used.

 

[Solved] Problem Saving/Loading calibrated lights from Fuji X-Trans sensor

8 Posts
2 Users
4 Likes
1,348 Views
(@copper280z)
White Dwarf
Joined: 3 years ago
Posts: 6
Topic starter  

I'm using a Fuji XT-1, which uses the X-Trans sensor, doing the calibration workflow from the RAF files to a final integrated frame works flawlessly. I ran into a problem, where I wanted to save the fully calibrated light files so I don't need to calibrate ALL files again when I capture more data on this subject. I calibrated the lights and saved them (as fits). When I load one of these calibrated lights, the image is not properly debayered. When I open the calibrated fits file in ImageJ, the X-Trans pattern is clearly visible (as expected) and the CFA pattern is correctly called out in the HDU, pasted below for convenience. I believe what might be happening is that there's some ambiguity about which end of the image in the FITS file is pixel #1, which would cause the CFA pattern to be incorrect.

 

Attached is a screenshot of the improperly debayered file in APP.

APP cfa problem screenshot

 

RAF File:

https://drive.google.com/file/d/1JcIvAWfZBwqyGO9u7YaP1WUCudPJBXgT/view?usp=sharing

 

Calibrated Light:

https://drive.google.com/file/d/1NjvXx2nLdQ9FQzK79fm1QOSDKgzRsx3z/view?usp=sharing

 

SIMPLE = T / Java FITS: Tue Dec 15 07:46:34 EST 2020 
BITPIX = 16 / bits per data value
NAXIS = 2 / number of axes
NAXIS1 = 4896 / size of the n'th axis
NAXIS2 = 3264 / size of the n'th axis
EXTEND = T / Extensions are permitted
BSCALE = 1.0 / scaling to 16bit
BZERO = 32768.0 / offset data range to that of unsigned short
DATE = '2020-12-17T00:40:44' / creation date of calibrated-Light
DATE-OBS= '2020-11-09T22:25:24' / observation date of calibrated-Light
SOFTWARE= 'Astro Pixel Processor by Aries Productions' / software
VERSION = '1.082 ' / Astro Pixel Processor version
CALLIGHT= 'calibrated-Light' / calibrated light frame
INSTRUME= 'FUJIFILM X-T1' / instrument name
CFAIMAGE= 'RBGGGGBRGGGGRBGG' / Color Filter Array pattern
EXPTIME = 42.0 / exposure time (s)
GAIN = 1600.0 / gain or ISO depending on instrument
AD-PED = 0.0 / adaptive pedestal from data calibration
FILTNUM = 1 / data combined from 1 filter
FILT-1 = 'RGB ' / filter used
SESSNUM = 1 / data combined from 1 session
SESS-1 = 'session 2' / capture session
END

------------------------------------------------------
(Fiji Is Just) ImageJ 2.0.0-rc-69/1.52p; Java 1.8.0_172 [64-bit]; Windows 10 10.0; 132MB of 24433MB (<1%)

Title: DSCF9894-RGB-session_2-cal.fits
Width: 4896 pixels
Height: 3264 pixels
Size: 30MB
Pixel size: 1x1 pixel^2
ID: -2
Bits per pixel: 16 (unsigned)
Display range: 0 - 65535
No threshold
Magnification: 0.25
ScaleToFit: false
Uncalibrated
Path: F:\Pleiades\DSCF9894-RGB-session_2-cal.fits
Screen location: 0,0 (1920x1080)
No overlay
No selection

   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Dear Bob @copper280z,

Thank you very much for sharing this issue. I will download the original and the calibrated one and I will check what is happening 😉

I will let you know if there is a bug here that needs to be fixed, or if there is another problem..

Mabula


   
ReplyQuote
(@copper280z)
White Dwarf
Joined: 3 years ago
Posts: 6
Topic starter  

Appreciate the fast response, thank you!

 

It's possible I made an error somewhere too, I'm just trying APP out for the first time.


   
Mabula-Admin reacted
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Dear Bob @copper280z,

Thanks, there is a bug indeed with the saved calibrated frame which I need to fix a.s.a.p. Can you share a bias or dark frame in Raf format so I can properly fix this?

Mabula


   
ReplyQuote
(@copper280z)
White Dwarf
Joined: 3 years ago
Posts: 6

   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Thank you Bob @copper280z,

Working on it right now 😉 I will make sure that it works properly in the next release.

Mabula


   
ReplyQuote
(@copper280z)
White Dwarf
Joined: 3 years ago
Posts: 6
Topic starter  

Awesome, thank you @mabula-admin!


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Dear Bob @copper280z,

Thank you very much for bringing this issue to our attention, it is fixed now 😉

Calibrated RAF file Saved as FITS
Calibrated RAF file

So in the next version it will work properly.

Mabula


   
ReplyQuote
Share: