Giter Club home page Giter Club logo

graxpert's Introduction

GraXpert is an astronomical image processing program for extracting and removing gradients in the background of your astrophotos. We provide several methods traditional interpolation methods such as Radial Basis Functions (RBF), Splines and Kriging which require the user to manually select sample points in the background of the image. Our newest addition is an AI method which does not require any user input.

Original Gradients removed with AI
Original Gradients removed
Original Gradients removed

Homepage: https://www.graxpert.com
Download: https://github.com/Steffenhir/GraXpert/releases/latest

Installation

You can download the latest official release of GraXpert here. Select the correct version for your operating system. For macOS, we provide different versions for Intel processors (x86_64) and for apple silicon (arm64).

Windows: After downloading the .exe file, you should be able to start it directly.
Linux: Before you can start GraXpert, you have to make it executable by running chmod u+x ./GraXpert-linux
macOS: After opening the .dmg file, simply drag the GraXpert icon into the applications folder. GraXpert can now be started from the applications folder.

Command-Line Usage

GraXpert comes with a graphical user interface. However, the AI method which does not need the selection of any background sample points can also be executed from the command line. Here are the available command-line arguments and their descriptions:

  • filename: The path of the unprocessed image (required).
  • -cli: This flag always has to be added when using the command line integration of GraXpert. Otherwise, the GUI will start and open the specified file name.
  • -output [output_file_name]: Specify the name of the output image (without file ending). Otherwise the image will be saved with the suffix '_GraXpert' added to the original file name.
  • -ai_version [version]: Specify the version of the AI model to use. If not provided, it defaults to the latest available version. You can choose from locally available versions and remotely available versions.
  • -correction [type]: Select the background correction method. Options are "Subtraction" (default) or "Division."
  • -smoothing [strength]: Adjust the strength of smoothing, ranging from 0.0 (no smoothing) to 1 (maximum smoothing).
  • -bg: Also save the generated background model.

Examples

The following examples show how GraXpert can be used from the command line in Windows. For Linux and macOS, you have to do the following replacements:

Linux: Replace GraXpert-win64.exe by GraXpert-linux
macOS: Replace GraXpert-win64.exe by GraXpert.app/Contents/MacOS/GraXpert

Basic Usage:

GraXpert-win64.exe my_image.fits -cli

Specify AI Model Version '1.1', correction type 'Division', smoothing '0.1', and save background model:

GraXpert-win64.exe my_image.fits -cli -ai_version 1.1 -correction Division -smoothing 0.1 -bg

Installation for Developers

This guide will help you get started with development of GraXpert on Windows, Linux, and macOS. Follow these steps to clone the repository, create a virtual environment with Python, install the required packages, and run GraXpert from the source code.

Clone the repository

Open your terminal or command prompt and use git to clone the GraXpert repository:

git clone https://github.com/Steffenhir/GraXpert
cd GraXpert

Setting up a Virtual Environment

We recommend using a virtual environment to isolate the project's dependencies. Ensure you have Python>=3.10 installed on your system before proceeding. Here's how to set up a virtual environment with Python: Windows:

# Create a new virtual environment with Python 3.10
python -m venv graxpert-env

# Activate the virtual environment
graxpert-env\Scripts\activate

Linux and macOS:

# Create a new virtual environment with Python 3.10
python3 -m venv graxpert-env

# Activate the virtual environment
source graxpert-env/bin/activate

Install required packages

All the requirements can be found in the requirements.txt file. You can install them with:

Windows and Linux:

pip install -r requirements.txt

macOS:

pip3 install -r requirements.txt

"""
For macOS, we have to install tkinter separately.
We use the version provided by brew because it is newer
and solves issues with macOS Sonoma. Please use the version matching with your Python version.
"""
brew install [email protected]

Running GraXpert

Once you have set up the virtual environment and installed the required packages, you can start GraXpert:

python -m graxpert.main

graxpert's People

Contributors

steffenhir avatar schmelly avatar chges100 avatar rikyf3 avatar michael-ring avatar michaelring avatar schreiberste avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.