Be aware of capture...
 
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.

 

[Sticky] Be aware of capture programs and what they write to the FITS headers

23 Posts
3 Users
3 Likes
2,770 Views
(@regpratt)
Red Giant
Joined: 4 years ago
Posts: 52
Topic starter  

I am trying to stack data from different image trains as done in this video:

https://www.astropixelprocessor.com/registration-normalization-integration-using-ddc-lnc-mbb/

 

Both data sets are pre-calibrated in APP (but by different people. I loaded the Ha sets as Ha filter but gave them their own session. Same with the Oiii sets. When I get to the normalization step, I get this error immediately. All the data sets have been successfully stacked on their own, this only happens when trying to stack the 2 data sets together. Any help would be greatly appreciated.

Annotation 2020 08 13 185644

 

I copied all the settings to be the same as the video:

 

 

 

 

flip desciprtors in x/y (tried both checked and unchecked)

use dynamic distortion correction checked

same camera and optics unchecked

 

Normalize Mode: Advanced

Multiply-scale

BMV

 

Integrate: Average

Weights: Quality

Local Normalization Rejection checked

Filter: sigma clipping

 

LNC: 2nd degree LNC

 

MBB 10%

 


   
ReplyQuote
(@regpratt)
Red Giant
Joined: 4 years ago
Posts: 52
Topic starter  

Update:

 

I tired unchecking multi-filter and multi-session and loaded all the Ha subs as a single session. This time normalization got to 54% before giving the same error as before but this time with no cause.

 

Annotation 2020 08 13 194439

   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 7 years ago
Posts: 5707
 

Strange. The fact you have pre-calibrated data is interesting though, I'm wondering if one of those is causing an issue for some reason. Could you check if it works with combining just 2 (in the hope you miss the possible wrong one)?


   
ReplyQuote
(@regpratt)
Red Giant
Joined: 4 years ago
Posts: 52
Topic starter  

I tried combining 2 subs (one from each set) and got the same issue. I just noticed that one set is showing a bayer pattern in the CFA column while the other isnt. This is weird because both sets are from a mono camera. Could this have something to do with it?

 

Annotation 2020 08 14 073055

   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 7 years ago
Posts: 5707
 

Might be, as the crash happens in the normalization this usually is the case when combining broadband data with mono. This may also have been done by the one who precalibrated the data, can you ask him for his un-calibrated mono and his calibration frames so you can test with at least the exact same settings?


   
ReplyQuote
(@regpratt)
Red Giant
Joined: 4 years ago
Posts: 52
Topic starter  

@vincent-mod

 

So I use Astrophotography Tool to capture my data. There is a setting that debayers the captured fits files so that you can see OSC subs in color on the preview screen. Turns out by leaving that setting on while capturing mono data, it appears to add the Bayer matrix in anyway.

 

I tested this by plugging in my Asi183mm and taking single sub with Bayer preview enabled. I loaded that sub into APP and it shows RGGB under the CFA tab no matter what setting I changed in tab 0. I deselected Bayer preview in APP and took another sub, loaded it into APP, no CFA reports "None". So I think APP was seeing my subs as color even though they weren't because of the ATP setting. I won't be able to verify this with actual data for a few more nights when I get clear skies but I'm pretty sure that was the problem. 


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 7 years ago
Posts: 5707
 

Ah yes, that might be the issue then. APP does look at the FITS headers to see what type of data was taken. Nice one you thought of that!


   
ReplyQuote
(@regpratt)
Red Giant
Joined: 4 years ago
Posts: 52
Topic starter  

That stinks because that means 11 hours of data is now unusable 😩. It's OK though I'm just glad to have figured it out, we've been working on figuring this out all week. I didn't think that ATP setting mattered because it's called "Bayer preview" implying it only effects the preview and not the actual fits file. Lesson learned. When I verify this with actual data I'll report back, maybe this information can be stickied or something so that other ATP users are aware. 


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 7 years ago
Posts: 5707
 

Well, maaaaaaybe there is a way to remove that pattern from the headers? Never done that myself, but there must be something to do that... I asked Mabula.


   
ReplyQuote
(@regpratt)
Red Giant
Joined: 4 years ago
Posts: 52
Topic starter  

Yeah, my next step is to see if I can somehow wipe the Bayer pattern off the files. I tried doing an extract Ha on them in APP but that didn't work 


 


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 7 years ago
Posts: 5707
 

Just made you a sticky, I think it's a good general warning.


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 7 years ago
Posts: 5707
 

Ok, so talked with Mabula. Both him and me never saw this before, so there's no super easy solution yet (unless you can find a meta data editor). He's thinking about making this possible in the batch modify tool, so don't throw away the data and don't recapture just yet (unless you want even more data). In batch modify there is a way to edit the header, but not to switch off a bayer pattern, it's likely never needed but will solve your issue. He added it to his to-do list.


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 7 years ago
Posts: 5707
 

Oh and he offered to fix this in between for you to speed things up, so if you want you can upload the data to our server, he'll fix it and you can download it again.

Go to https://upload.astropixelprocessor.com and use upload1 (or upload2 till 5) as username and password will then be the same as the username.

Create a directory named “regpratt-bayerpatterninmono” and upload in there. Thank you!

 


   
ReplyQuote
(@regpratt)
Red Giant
Joined: 4 years ago
Posts: 52
Topic starter  

@vincent-mod

 

I really appreciate the help. The files are uploading now but its 9gb of data so its going to take a few hours 🤣 


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 7 years ago
Posts: 5707
 

Oh no worries. 🙂 So there is maybe another way, you can also select "no interpolation" as option. That might work as well, can you try?


   
ReplyQuote
(@regpratt)
Red Giant
Joined: 4 years ago
Posts: 52
Topic starter  

I tried that last night and it didn't work. I'm actually going to cancel the upload when I get home because I found an Windows application that allows you to strip the Bayer info out of the header. I tested it on a single sub and after loading it in APP it was no longer showing anything under CFA so worse case scenario that will work I just have to change them one by one. 


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 7 years ago
Posts: 5707
 

Ok we can do that in 1 go if you want, but whatever you find easiest.

Did you reload the data after you changed to the "no interpolation" setting? I'm not talking about the "force cfa" option, to be clear.


   
ReplyQuote
(@regpratt)
Red Giant
Joined: 4 years ago
Posts: 52
Topic starter  
Posted by: @vincent-mod

Ok we can do that in 1 go if you want, but whatever you find easiest.

Did you reload the data after you changed to the "no interpolation" setting? I'm not talking about the "force cfa" option, to be clear.

That would be great, I just got home and noticed the upload was done anyway. Thanks!


   
ReplyQuote
(@xsnrg)
Red Giant
Joined: 7 years ago
Posts: 35
 

Greetings all. I stumbled upon this same error. In my case, I have data that was captured with an OSC camera, 1600MC, and a Luminance filter on a 1600MM at a later time.  I load each of these into a session and get to the normalization and then get the exact error above.

I have multi-session and multi-filter checked, and all the defaults on the normalize tab. On trying to re-run it, I can also get this error:

Encountered error in module:
OverlapBetweenTwoImageObjectsCreatorWorker

Error message:
java.lang.ArrayIndexOutOfBoundsException

Cause:
null
no trace

I did have same camera and optics selected though, so I cleared this and ran it again but had the same error.

 

This post was modified 4 years ago by xsnrg

   
ReplyQuote
(@regpratt)
Red Giant
Joined: 4 years ago
Posts: 52
Topic starter  

@xsnrg

You need to convert the 1600MC data to mono before combining with the 1600mm data. This error happens when you try and combine color and mono data. Use extract Ha or extract Ha-Oiii mono if you want lum then combine that with the 1600mm data. 


   
ReplyQuote
(@xsnrg)
Red Giant
Joined: 7 years ago
Posts: 35
 

I was hoping to add the MC data as color to the MM data for Lum. Perhaps this is not a thing though.


   
ReplyQuote
(@regpratt)
Red Giant
Joined: 4 years ago
Posts: 52
Topic starter  

@xsnrg

 

So to get around the issue of not being able to register OSC and mono data together, you can load the OSC data, split it into RGB data which would give you 3 sets of data (red, blue, and green) those 3 sets of data would be mono.

Take one set, and register the 1600mm data to the red channel set of the OSC data. Now you'll have R G B and L with the same alignment.

 

How you proceed from there depends on how you want the process the data. You can combine it all as LRGB in APP, Pi, Ps or whatever you use for post processing. 


   
ReplyQuote
(@xsnrg)
Red Giant
Joined: 7 years ago
Posts: 35
 

Thanks Reginald, that is the path I was going down next.

 

Jim


   
ReplyQuote
Share: