PixInsight Weighted Batch Preprocessing Script Released

Discuss how you are able to get those fantastic images!!!
Post Reply
User avatar
fatboy1271
Pluto Ambassador
Articles: 0
Offline
Posts: 407
Joined: Wed Jun 12, 2019 3:34 pm
4
Location: SoCal
Status:
Offline

PixInsight Weighted Batch Preprocessing Script Released

#1

Post by fatboy1271 »


It appears I missed the release of PixInsight 1.8.8 on 2019-11-08. I installed it today and then I had about 3 rounds of updates afterwards. It looks like one of those updates includes a Weighted Batch Preprocessing Script! I'm reading about it now and I'm quite excited about it. Here is what the email says about it:

We are glad to announce the release of Weighted Batch Preprocessing (WBPP), a new development project led by Roberto Sartori and Tommaso Rubechi. WBPP is a much-evolved version of the classical Batch Preprocessing script (BPP), based on original source code written by Kai Wiechen back in 2012. WBPP is now available as a regular update to version 1.8.8-1 of PixInsight on all supported platforms.

For complete information on WBPP, see the tutorial written by the authors, as well as a description document by Roberto Sartori. See also the announcement post on PixInsight Forum.
OTAs: Explore Scientific ED80 Essential Edition / The Little Guy (Celestron 90SLT)
Mount: Celestron Advanced VX
Gear: Canon 70D / Hutech LPS-D1-48 / ES 2" Field Flattener / QHY PoleMaster / Celestron GPS / ZWO ASI120MC / Orion 50mm Guide Scope / ZWO EAF
Software: CPWI / PHD2 / N.I.N.A / Stellarium/StellariumScope/Remote Control / PI / RegiStax 6 / AutoStakkert!2 / PIPP | Retired? BackyardEOS Premium
EPs: Stock Celestron 9mm and 24mm / Celestron Omni 32mm (I love this one!) / Celestron X-Cel LX 3x Barlow (I think 2X would have been smarter...)
Support Staff (Loved Ones!): CeCe, Ro, and Geno
Let's Go Pens!!!
User avatar
fatboy1271
Pluto Ambassador
Articles: 0
Offline
Posts: 407
Joined: Wed Jun 12, 2019 3:34 pm
4
Location: SoCal
Status:
Offline

Re: PixInsight Weighted Batch Preprocessing Script Released

#2

Post by fatboy1271 »


In the tutorial link above it has a link to download WBPP; however, it looks like it's now been integrated directly into PI. I closed out of PI and when I reopened it, before installing the downloaded version, there were more updates. Now I can choose WBPP from the Scripts menu.
OTAs: Explore Scientific ED80 Essential Edition / The Little Guy (Celestron 90SLT)
Mount: Celestron Advanced VX
Gear: Canon 70D / Hutech LPS-D1-48 / ES 2" Field Flattener / QHY PoleMaster / Celestron GPS / ZWO ASI120MC / Orion 50mm Guide Scope / ZWO EAF
Software: CPWI / PHD2 / N.I.N.A / Stellarium/StellariumScope/Remote Control / PI / RegiStax 6 / AutoStakkert!2 / PIPP | Retired? BackyardEOS Premium
EPs: Stock Celestron 9mm and 24mm / Celestron Omni 32mm (I love this one!) / Celestron X-Cel LX 3x Barlow (I think 2X would have been smarter...)
Support Staff (Loved Ones!): CeCe, Ro, and Geno
Let's Go Pens!!!
User avatar
UlteriorModem
Local Group Ambassador
Articles: 0
Offline
Posts: 2112
Joined: Sat May 11, 2019 1:32 am
4
Location: Florida
Status:
Offline

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#3

Post by UlteriorModem »


Thanks yea I had heard about this. Is the idea it can find and reject 'bad' frames?
Tom

Current Equipment:
Mount: Celestron CGX-L
Scope: 130mm f7 APO
Cam: ASI071mc-pro
User avatar
fatboy1271
Pluto Ambassador
Articles: 0
Offline
Posts: 407
Joined: Wed Jun 12, 2019 3:34 pm
4
Location: SoCal
Status:
Offline

Re: PixInsight Weighted Batch Preprocessing Script Released

#4

Post by fatboy1271 »


UlteriorModem wrote: Tue Nov 19, 2019 9:11 pm Thanks yea I had heard about this. Is the idea it can find and reject 'bad' frames?
Don't quote me on this but I believe it's more of a weighting (think of it as a rating system, sort of) on how "good" of an image is and which are better than others. It then orders them from "good to bad..." It can also select the best reference file to use, based on that weighting.
OTAs: Explore Scientific ED80 Essential Edition / The Little Guy (Celestron 90SLT)
Mount: Celestron Advanced VX
Gear: Canon 70D / Hutech LPS-D1-48 / ES 2" Field Flattener / QHY PoleMaster / Celestron GPS / ZWO ASI120MC / Orion 50mm Guide Scope / ZWO EAF
Software: CPWI / PHD2 / N.I.N.A / Stellarium/StellariumScope/Remote Control / PI / RegiStax 6 / AutoStakkert!2 / PIPP | Retired? BackyardEOS Premium
EPs: Stock Celestron 9mm and 24mm / Celestron Omni 32mm (I love this one!) / Celestron X-Cel LX 3x Barlow (I think 2X would have been smarter...)
Support Staff (Loved Ones!): CeCe, Ro, and Geno
Let's Go Pens!!!
User avatar
UlteriorModem
Local Group Ambassador
Articles: 0
Offline
Posts: 2112
Joined: Sat May 11, 2019 1:32 am
4
Location: Florida
Status:
Offline

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#5

Post by UlteriorModem »


Ah I see. I have had a chance to try it out. Took a few tries but I got it working. But got an odd error when I went to stack the results!

ImagePI Error by Tom Whit, on Flickr

Thing is though it stacked just fine with good results!
Tom

Current Equipment:
Mount: Celestron CGX-L
Scope: 130mm f7 APO
Cam: ASI071mc-pro
User avatar
fatboy1271
Pluto Ambassador
Articles: 0
Offline
Posts: 407
Joined: Wed Jun 12, 2019 3:34 pm
4
Location: SoCal
Status:
Offline

Re: PixInsight Weighted Batch Preprocessing Script Released

#6

Post by fatboy1271 »


It seems to do a heck of a job! My Diagnostics complained about my Lights and Darks. They are all 180sec, but the Properties show Lights as 180.3 and the Darks as 180.5 and 180.6...?

BPP with CosmeticCorrection & calibrate only -> StarAlignment -> ImageIntegration:
PI BPP Integration.png
WBPP = No CosmeticCorrection, Subframe Weighting (all three boxes checked and Galaxy selected), Image Registration:
PI WBPP Integration.png
I'm pretty happy with the results of WBPP!!! What say you?
OTAs: Explore Scientific ED80 Essential Edition / The Little Guy (Celestron 90SLT)
Mount: Celestron Advanced VX
Gear: Canon 70D / Hutech LPS-D1-48 / ES 2" Field Flattener / QHY PoleMaster / Celestron GPS / ZWO ASI120MC / Orion 50mm Guide Scope / ZWO EAF
Software: CPWI / PHD2 / N.I.N.A / Stellarium/StellariumScope/Remote Control / PI / RegiStax 6 / AutoStakkert!2 / PIPP | Retired? BackyardEOS Premium
EPs: Stock Celestron 9mm and 24mm / Celestron Omni 32mm (I love this one!) / Celestron X-Cel LX 3x Barlow (I think 2X would have been smarter...)
Support Staff (Loved Ones!): CeCe, Ro, and Geno
Let's Go Pens!!!
User avatar
UlteriorModem
Local Group Ambassador
Articles: 0
Offline
Posts: 2112
Joined: Sat May 11, 2019 1:32 am
4
Location: Florida
Status:
Offline

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#7

Post by UlteriorModem »


I'm pretty happy with the results of WBPP!!! What say you?
I will let you know when I produce results. Moving slowly … patience :D
Tom

Current Equipment:
Mount: Celestron CGX-L
Scope: 130mm f7 APO
Cam: ASI071mc-pro
User avatar
Stuart United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 247
Joined: Sat Jun 01, 2019 11:12 pm
4
Location: East Bay, California
Status:
Offline

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#8

Post by Stuart »


fatboy1271 wrote: Tue Nov 19, 2019 11:39 pm
UlteriorModem wrote: Tue Nov 19, 2019 9:11 pm Thanks yea I had heard about this. Is the idea it can find and reject 'bad' frames?
Don't quote me on this but I believe it's more of a weighting (think of it as a rating system, sort of) on how "good" of an image is and which are better than others. It then orders them from "good to bad..." It can also select the best reference file to use, based on that weighting.
I can explain.

tl;dr: It brings in the subframe selector script and stacks an image based upon that.

Long explanation
A workflow for preprocessing means that you have to stack your bias and dark frames, calibrate your flat frames, stack your flat frames and calibrate your light frames. You can go further and do cosmetic correction. And it will stack your light frames. That's what the old BPP did for you. For many people that was sufficient. Plugging all your frames, running BPP, getting up and making a sandwich, and finding your master lights all stacked was fine.

The problem with BPP, though, is that you have to manually pick your registration frame--which is actually fine--but it's not necessarily your "best" frame. Also, it stacks using Noise Evaluation which may or may not be the best way to stack images.

What Subframe Selector does for you is that it allows you to do a mathematical measurement to weight your images based upon that expression. It will also calculate and pick your "best" frame depending on the expression. So many of us would do BPP through cosmetic correction and then manually stack using the SFS script.

Now BPP will measure the frames for you, pick the best frame, and stack based upon SFS. You can use the drop down menu to decide the best expression to use based upon your image.

That said, it's REALLY important to blink through ALL your subs (including your calibration subs) to throw out the bad frames before you go into BPP.

Hope that helps. Happy to answer any follow up questions you might have.

Stuart
Personal equipment: TEC 140 F7 on Astro-Physics Mach 1 mount. Camera QSI 683ws7. Guide with Vario guiding scope
Shared equipment through Star Shadows Remote Observatory through PROMPT/ CTIO/Chile 16" RCOS 16803 chip
Shared equipment through San Diego Astronomy Society 14" RC with 16803 chip on a paramount
Software (for my stuff) PemPRO, SGP, PHD, Focus Boss, ASCOM, and Pixinsight on the other end.
User avatar
JimMinCT United States of America
Saturn Ambassador
Articles: 0
Offline
Posts: 393
Joined: Tue May 07, 2019 10:24 pm
4
Location: Ct
Status:
Offline

TSS Awards Badges

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#9

Post by JimMinCT »


UlteriorModem wrote: Tue Nov 19, 2019 11:52 pm Ah I see. I have had a chance to try it out. Took a few tries but I got it working. But got an odd error when I went to stack the results!

ImagePI Error by Tom Whit, on Flickr

Thing is though it stacked just fine with good results!
Tom, You should send that screen shot in to Juan on the PI forums. He really does reply almost instantly about these types of things...
I had an issue with the batch file conversion script and showed him the screenshot. Within hrs, there was a bugfix update posted.

I think the weights are used to determine how much of an image is noise and how much is signal, and then to rank them accordingly.
We had a discussion on here a while back about what exactly PI is doing in the background.

Following this thread closely...
OTA's: Kson 1026-C, 4" Carbon Fiber ED Refractor, Home-built, 6.1", f/2.? APO refractor... (In Progress) 8" Meade LX2 SCT Mounts: CGX Imaging: ZWO ASI 1600MM, Canon 550D (T2i) Software: PixInsight, APT, PHD2, SharpCap, SGP, Stellarium, Registax, Stuff: Astro-Tech 0.8x FR/FF, Hotech SCA FF, ZWO 7nm 31mm LRGB-SHO filter set, ZWO 8 position EFWObsy: "Maybe Spaceship" Observatory
Image
User avatar
UlteriorModem
Local Group Ambassador
Articles: 0
Offline
Posts: 2112
Joined: Sat May 11, 2019 1:32 am
4
Location: Florida
Status:
Offline

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#10

Post by UlteriorModem »


I already have and the issue is more or less resolved. It was stated that this is a long standing 'bug' in the program and is related to site meta data (Lat & Lon) embedded in the .fit frames and should have been corrected in the latest release.

It really has nothing to do with WBPP evidently.

I have to put this on the back burner for a bit as right now I am trying to get the guide camera to work better with the narrow band filter in front of it.
Tom

Current Equipment:
Mount: Celestron CGX-L
Scope: 130mm f7 APO
Cam: ASI071mc-pro
User avatar
fatboy1271
Pluto Ambassador
Articles: 0
Offline
Posts: 407
Joined: Wed Jun 12, 2019 3:34 pm
4
Location: SoCal
Status:
Offline

Re: PixInsight Weighted Batch Preprocessing Script Released

#11

Post by fatboy1271 »


Stuart wrote: Wed Nov 20, 2019 7:55 pm
I can explain.

Stuart
Thanks Stu!
OTAs: Explore Scientific ED80 Essential Edition / The Little Guy (Celestron 90SLT)
Mount: Celestron Advanced VX
Gear: Canon 70D / Hutech LPS-D1-48 / ES 2" Field Flattener / QHY PoleMaster / Celestron GPS / ZWO ASI120MC / Orion 50mm Guide Scope / ZWO EAF
Software: CPWI / PHD2 / N.I.N.A / Stellarium/StellariumScope/Remote Control / PI / RegiStax 6 / AutoStakkert!2 / PIPP | Retired? BackyardEOS Premium
EPs: Stock Celestron 9mm and 24mm / Celestron Omni 32mm (I love this one!) / Celestron X-Cel LX 3x Barlow (I think 2X would have been smarter...)
Support Staff (Loved Ones!): CeCe, Ro, and Geno
Let's Go Pens!!!
User avatar
Stuart United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 247
Joined: Sat Jun 01, 2019 11:12 pm
4
Location: East Bay, California
Status:
Offline

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#12

Post by Stuart »


I'm just running it for the first time myself. I'm not seeing a cosmetic correction option on it. I asked Warren about it.
Personal equipment: TEC 140 F7 on Astro-Physics Mach 1 mount. Camera QSI 683ws7. Guide with Vario guiding scope
Shared equipment through Star Shadows Remote Observatory through PROMPT/ CTIO/Chile 16" RCOS 16803 chip
Shared equipment through San Diego Astronomy Society 14" RC with 16803 chip on a paramount
Software (for my stuff) PemPRO, SGP, PHD, Focus Boss, ASCOM, and Pixinsight on the other end.
User avatar
Stuart United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 247
Joined: Sat Jun 01, 2019 11:12 pm
4
Location: East Bay, California
Status:
Offline

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#13

Post by Stuart »


Oops. Never mind, my bad. I found it.
Personal equipment: TEC 140 F7 on Astro-Physics Mach 1 mount. Camera QSI 683ws7. Guide with Vario guiding scope
Shared equipment through Star Shadows Remote Observatory through PROMPT/ CTIO/Chile 16" RCOS 16803 chip
Shared equipment through San Diego Astronomy Society 14" RC with 16803 chip on a paramount
Software (for my stuff) PemPRO, SGP, PHD, Focus Boss, ASCOM, and Pixinsight on the other end.
User avatar
fatboy1271
Pluto Ambassador
Articles: 0
Offline
Posts: 407
Joined: Wed Jun 12, 2019 3:34 pm
4
Location: SoCal
Status:
Offline

Re: PixInsight Weighted Batch Preprocessing Script Released

#14

Post by fatboy1271 »


Stuart wrote: Thu Nov 21, 2019 7:46 pm I'm just running it for the first time myself. I'm not seeing a cosmetic correction option on it. I asked Warren about it.
Stuart wrote: Thu Nov 21, 2019 8:48 pm Oops. Never mind, my bad. I found it.
My laptop isn't online, but isn't in the same place?
OTAs: Explore Scientific ED80 Essential Edition / The Little Guy (Celestron 90SLT)
Mount: Celestron Advanced VX
Gear: Canon 70D / Hutech LPS-D1-48 / ES 2" Field Flattener / QHY PoleMaster / Celestron GPS / ZWO ASI120MC / Orion 50mm Guide Scope / ZWO EAF
Software: CPWI / PHD2 / N.I.N.A / Stellarium/StellariumScope/Remote Control / PI / RegiStax 6 / AutoStakkert!2 / PIPP | Retired? BackyardEOS Premium
EPs: Stock Celestron 9mm and 24mm / Celestron Omni 32mm (I love this one!) / Celestron X-Cel LX 3x Barlow (I think 2X would have been smarter...)
Support Staff (Loved Ones!): CeCe, Ro, and Geno
Let's Go Pens!!!
User avatar
UlteriorModem
Local Group Ambassador
Articles: 0
Offline
Posts: 2112
Joined: Sat May 11, 2019 1:32 am
4
Location: Florida
Status:
Offline

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#15

Post by UlteriorModem »


Yea it's there.

Something I don't understand about it.

Okay it weighs the subframes and embeds keywords into the images.

When I run it it just spit out 15 out of 15 frames registered. Its as if no sorting or culling had been done?

Also for it to work is it best to run the image integration from within the script, despite the stern warning to not trust the results?
Tom

Current Equipment:
Mount: Celestron CGX-L
Scope: 130mm f7 APO
Cam: ASI071mc-pro
User avatar
Stuart United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 247
Joined: Sat Jun 01, 2019 11:12 pm
4
Location: East Bay, California
Status:
Offline

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#16

Post by Stuart »


Hey UM,
It will spit out all the frames. It doesn't "cull"--i.e. it won't reject images like the regular SFS. You have to blink through them before you run it to throw out the baddies. The weighting comes into play when you stack the image. Normal weighting uses Noise Evaluation as the weighting tool. The SFS in turn uses the SFS weighting instead of noise evaluation.

And yes, you get that warning. That's always been there--I just click the box "Got it, don't show again". I find that the final result out of it is perfectly acceptable as long as I've done my pre-WBPP blink.

And in terms of the cc: I just missed it. I was looking in the wrong box.
Stuart
Personal equipment: TEC 140 F7 on Astro-Physics Mach 1 mount. Camera QSI 683ws7. Guide with Vario guiding scope
Shared equipment through Star Shadows Remote Observatory through PROMPT/ CTIO/Chile 16" RCOS 16803 chip
Shared equipment through San Diego Astronomy Society 14" RC with 16803 chip on a paramount
Software (for my stuff) PemPRO, SGP, PHD, Focus Boss, ASCOM, and Pixinsight on the other end.
User avatar
UlteriorModem
Local Group Ambassador
Articles: 0
Offline
Posts: 2112
Joined: Sat May 11, 2019 1:32 am
4
Location: Florida
Status:
Offline

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#17

Post by UlteriorModem »


Well does it sort the subframes according to its 'score'?

I don't see any indication of the relative weights in the filenames or elsewhere.
Tom

Current Equipment:
Mount: Celestron CGX-L
Scope: 130mm f7 APO
Cam: ASI071mc-pro
User avatar
Stuart United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 247
Joined: Sat Jun 01, 2019 11:12 pm
4
Location: East Bay, California
Status:
Offline

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#18

Post by Stuart »


Hey UM,
The weights should be in the FITS data. You have to open the FITS reader to see it. It won't be in the filename.
Stuart
Personal equipment: TEC 140 F7 on Astro-Physics Mach 1 mount. Camera QSI 683ws7. Guide with Vario guiding scope
Shared equipment through Star Shadows Remote Observatory through PROMPT/ CTIO/Chile 16" RCOS 16803 chip
Shared equipment through San Diego Astronomy Society 14" RC with 16803 chip on a paramount
Software (for my stuff) PemPRO, SGP, PHD, Focus Boss, ASCOM, and Pixinsight on the other end.
User avatar
XCalRocketMan United States of America
Orion Spur Ambassador
Articles: 0
Offline
Posts: 507
Joined: Sun May 12, 2019 8:09 pm
4
Location: Reisterstown, MD USA
Status:
Offline

TSS Awards Badges

TSS Photo of the Day

Re: PixInsight Weighted Batch Preprocessing Script Released

#19

Post by XCalRocketMan »


Something else to keep in mind. I have been getting memory errors (crashes because protected memory is trying to be read/written) using the new PI and WBPP. I'm not the only one either. So far, it is rare. I was able to rerun the script twice and it finally completed. Common factors so far are Windows 10, NVidia graphics card, but these may be totally unrelated - just happens the systems affected have these in common.
Scopes Celestron EdgeHD-11; William Optics GT102; William Optics ZS61; Criterion Dynamax-8 SCT
Mounts AP1100GTO mount w/APCCpro; iOptron iEQ30 Pro; Criterion Dynamax-8 SCT
Lenses Hyperstar-III; Celestron 0.7x FR; WO Flat/Reducer 0.8x
Guiding Celestron OAG w/ASI174mm mini; WO 50mm; Orion ST80
Cameras and Filters ZWO2600mm Pro w/Optolong 3nm NB and RGB; ZWOASI1600mm Pro (ZWO LRGB and Astrodon Ha-5nm, Oiii-3nm, Sii-5nm), QHY10, Canon 50D; ASI174mm mini; ASI462MC; ASI120MC
Misc Moonlite focuser on Edge - Feather-Touch focuser on GT102; ZWO EAF on ZS61; ZWO 2" and 31mm FWs; Kendrick Dew System, Temp-est Fans
Software NINA; PHD; APT; BYE; PI; APP; PSP; Registax; FireCapture; SharpCap
Blog at: SkyAndRockets
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Image processing”