×
INDI Library v1.8.6 Released (21 Aug 2020)

August 2020 release of INDI Library v1.8.6 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Live stacking with Siril and Ekos

2 years 2 weeks ago 2 years 2 weeks ago by Gilles.
Gilles
Expert Boarder
Expert Boarder
Posts: 144
Karma: 2
More
Topic Author
Live stacking with Siril and Ekos #29047
Hi

Nothing really new here, i just want to share my attempt to put things together.

I don't know if people here use Siril :
www.siril.org/
Hot here in France :
www.webastro.net/forums/topic/163775-siril-099/
"Siril,
A free astronomical image processing software"


This version introduced a new feature : scripting !
More : Siril scripts can be called inside a shell script.
See where i'm going ?

I've tried the dirty way (my way...), and it works quite well :
Create an Ekos sequence (200 exp x1s for example)
This sequence is calling a script after each frame
Shell script makes a few operations to copy/rename the image wich was taken
Then it calls Siril to make allignement between previous result and current frame
And finally Siril stacks "previous result" and "current frame" (only "sum" operation can be taken this way...)
This is giving "current result", wich will be available for next iteration.
This "current result" is converted "on the go" to be viewed by any imaging software (i've used jpeg with "Eye Of Mate", wich reloads picture each time it is replaced by a new version.

here is my quick and dirty script, many things to say but it works :
#!/bin/bash

#recherche du nombre d'images dispo
NB=$(find ~/ekos/live/Light/Luminance/*.fits -maxdepth 1 -type f | wc -l)

if   [ $NB = "1" ] #première image, on se contente de renommer
then
mv ~/ekos/live/Light/Luminance/Light_001.fits ~/ekos/live/Light/Luminance/Main_001.fits #>> ~/ekos/live/log.txt

elif [ $NB = "2" ]  #seconde image, on se contente de renommer
then
mv ~/ekos/live/Light/Luminance/Light_001.fits ~/ekos/live/Light/Luminance/Main_002.fits #>> ~/ekos/live/log.txt
siril -s ~/ekos/live/live.ssf -d ~/ekos/live/Light/Luminance   #>> ~/ekos/live/log.txt
rm ~/ekos/live/Light/Luminance/Main_001.fits >> ~/ekos/live/log.txt
rm ~/ekos/live/Light/Luminance/Main_002.fits >> ~/ekos/live/log.txt
rm ~/ekos/live/Light/Luminance/*.seq >> ~/ekos/live/log.txt
mv ~/ekos/live/Light/Luminance/Main_stacked.fits ~/ekos/live/Light/Luminance/Main_001.fits >> ~/ekos/live/log.txt
rm ~/ekos/live/Light/Luminance/r_Main*.fits >> ~/ekos/live/log.txt
#rm ~/ekos/live/Light/Luminance/Main.png >> ~/ekos/live/log.txt
convert -flatten ~/ekos/live/Light/Luminance/Main_001.fits ~/ekos/live/Light/Luminance/Main.jpeg >> ~/ekos/live/log.txt
cp ~/ekos/live/Light/Luminance/Main.jpeg ~/ekos/live/Light/Luminance/live.jpeg

else
echo "OVERFLOW" >> ~/ekos/live/log.txt
fi

And the Siril script, very simple :
setext fits
#register Main_
#stack r_Main_ sum -nonorm
stack Main_ sum -nonorm
(alignment is commented here for tests purpose)

you can see this in action here, with real stars (in french) :


At the moment, i'm trying to manage colors, as my fits->jpg conversion looses them.
About performance :
With Stellarmate fresh install on RPi3, onto wich i've added Siril install,
Siril calls are short enought to produce a new image every second
(at least with my ASI224MC)

Voilà !
It's just a first step, i'm sure there are many ways to do much better :
My script is very uggly.
I've seen that a Python script could watch a folder for new files :
This way, it wouldn't be necessary to call a script in Ekos...
Siril can do much more :
if DOF are taken before, each frame could be preprocessed before stacking, this would be really nice !

Gilles.
The following user(s) said Thank You knro, bilbo-le-hobbit, tseckler, Gonzothegreat, T-Studio, dolguldur, james_lan, munnecke

Please Log in or Create an account to join the conversation.

2 years 2 weeks ago
Gonzothegreat
Administrator
Administrator
Posts: 1814
Karma: 6
More
Live stacking with Siril and Ekos #29084
I used Siril a while ago and it's quite good, I got good results back then.
Do think that stacking should be be a feature in Ekos/Kstars, that would be a great addition.

Thanks Gilles for sharing your work.

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5L-II-M (OAG) / Atik 314L+ / Gerd Neumann drawer

Please Log in or Create an account to join the conversation.

2 years 2 weeks ago
Gilles
Expert Boarder
Expert Boarder
Posts: 144
Karma: 2
More
Topic Author
Live stacking with Siril and Ekos #29097

Gonzothegreat wrote: I used Siril a while ago and it's quite good, I got good results back then.
Do think that stacking should be be a feature in Ekos/Kstars, that would be a great addition.

Thanks Gilles for sharing your work.


well... of course !
I've seen it on new webcam driver, very nice
(too bad it's not available for 16.04 to use it with Raspberry Camera...)

Doing that with Siril might be overkill, but i also like it that way :
Each layer doign its own job.

BTW, who can help me to make a simple python script to display RGB fits ?
I've tried with astropy, but i'm lost...

Please Log in or Create an account to join the conversation.

Time to create page: 0.576 seconds