Rebrand to Python Imaging, still hoping to process astro-pics
Just process the image
List of packages used in this project can be found here
- Python3: [download link] | [Windows setup] | [Mac setup]
We recommend creating a python environment
-
Clone the repository
git clone https://github.com/JAVA-IMAGING/python-imaging.git -
Navigate to project directory
cd ./python-imaging -
Install required packages
pip install -r requirements.txt -
Install PySiril
python -m pip install pysiril-0.0.15-py3-none-any.whlThis is a separate step because the package needs to be downloaded directly from the .whl file within this repository, provided by Siril
-
Build project dependencies
pip install -e .This step fixes issues when sibling packages try to import from one another.
Consider a project management tool in the future, but this should suffice for now.
Extra notes:
If your IDE reports missing imports after performing the above steps, clear your Python cache and reload. We've come across this issue several times when using Visual Studio Code
-
Navigate to project directory
cd ./python-imaging -
Execute the help command
python src/app.py --helporpython src/app.py -h -
Usage:
app.py [-h] [-dt] [-ft] [-w] drk_path flt_path trg_pathpositional arguments:
drk_pathpath to directory containing dark framesflt_pathpath to directory containing flat framestrg_pathpath to target image for processing
options:
-h,--helpshow this help message and exit-dt,--dark_typefilter dark frames fromdrk_path-ft,--flat_typefilter flat frames fromflt_path-w,--writewrite every FITS file created to disk
Link of images for testing can be found here