Sovereign 8s.is mirror of standardgalactic/Galaxy-Morphology
  • Jupyter Notebook 99.8%
  • Python 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Michael Petersen a4fb4d5668
Some checks failed
testing / test (macos-latest, 3.10) (push) Has been cancelled
testing / test (macos-latest, 3.11) (push) Has been cancelled
testing / test (macos-latest, 3.12) (push) Has been cancelled
testing / test (ubuntu-latest, 3.10) (push) Has been cancelled
testing / test (ubuntu-latest, 3.11) (push) Has been cancelled
testing / test (ubuntu-latest, 3.12) (push) Has been cancelled
testing / test (windows-latest, 3.10) (push) Has been cancelled
testing / test (windows-latest, 3.11) (push) Has been cancelled
testing / test (windows-latest, 3.12) (push) Has been cancelled
Merge pull request #29 from CarrieFilion/main
Updates to tests + coverage integration
2025-11-25 14:30:58 +00:00
.github/workflows Replace Coveralls upload command with GitHub Action 2025-11-24 12:07:36 -05:00
notebooks up to date with paper 2025-11-20 16:16:29 +00:00
PlotsPaper up to date with paper 2025-11-20 16:16:29 +00:00
SGA_catalogue updated statistics 2025-11-22 11:41:29 +00:00
src fixing tests, adding missing imports 2025-11-23 16:00:19 -05:00
tests updating tests to increase coverage 2025-11-24 12:20:53 -05:00
.gitignore Moving and tidying files 2025-11-02 16:54:04 +00:00
PaperPlots.ipynb Remove old notebooks and PlotsPaper, add updated plots and notebooks 2025-11-20 14:20:01 +00:00
pyproject.toml I'm losing it 2025-11-24 11:55:29 -05:00
README.md Simplify installation instructions in README 2025-11-20 16:18:47 +00:00
requirements.txt I'm losing it 2025-11-24 11:55:29 -05:00

Galaxy-Morphology

FLEX-enabled Galaxy Inclination & Morphology Calculator

This repository contains tools and workflows to measure the inclination and other morphological parameters of disc galaxies from imaging data. The methods follow the Fourier–Laguerre (FLEX)–based description in Martinez et al. (2025), enabling a robust, model-based extraction of:

  • Inclination via a dimensionless metric \eta
  • Position angle
  • Scale Length

The code is designed to be used both as a Python package and through Jupyter notebooks for exploratory analysis and figure generation.

Applying the methods outlined in HowTo.ipynb and PaperPlots.ipynb, you can compare any .fits galaxy image and analyse its orientation visually producing a graph similar to the figure below. Applying galaxymorphology to a single file or a set of files reproduces a table of corresponding measurements.

Inclination comparison

The repository is sectioned as follows:

Notebooks folder contains ipynb files which were used in analysis during the project

SGA_catalogue folder contains intstructions and sample data for reproducible results comparible to those which are published

PlotsPaper folder contains the relevant plots for the paper

PaperPlots.ipynb file contains instructions on producing the small sample analysis and disc generation

src folder contains the galaxymorphology function


Features

  • Measurement of disc galaxy inclinations and position angles from imaging data by use of FLEX and a defined metric
  • Support for generating and regenerating publication-grade plots (e.g. inclination comparisons, error distributions)
  • Applying a DiscModel to simulate a disc galay of any inclination and position angle
  • FLEX / Fourier–Laguerre based fitting framework, following Martinez et al. (2025)
  • Notebooks including analysis on inclination inversion relations

Installation

Clone the repository and install package

git clone https://github.com/ObservationalExpansions/Galaxy-Morphology.git
cd Galaxy-Morphology
pip install .