PROFILER
This repository contains the code Profiler, a Python program for decomposing galaxy light profiles in 1D
Install / Use
/learn @BogdanCiambur/PROFILERREADME
Profiler_1D-Decomposition_v1.0
This repository contains the code Profiler, a Python program for decomposing galaxy light profiles in 1D
#COMPATIBILITY:
Tested on Mac OSX Yosemite and Linux Ubuntu 14.04
#REQUIREMENTS:
- Pre-installed Python distribution (Ureka - which contains PyRAF - is good: http://ssb.stsci.edu/ureka/)
- The Python library lmfit (https://pypi.python.org/pypi/lmfit OR if pip is available, then in the terminal $> pip install lmfit)
############## #IMPORTANT: It appears newer versions of lmfit are not compatible. Installing lmfit version 0.8.3 fixes this issue:
$> pip install lmfit==0.8.3 ###############
- A LaTeX distribution, necessary for generating the figures (the special fonts are required). Note, the code fits and generates logfile with results without this, but does not make the plots.
#RECOMMENDED INSTALLATION
- Copy the source files in a directory (e.g. "profiler_1.0")
- Edit the .bashrc (or .cshrc) file to contain the line: alias profiler='python path/to/profiler_1.0/profiler.py' (if using bash terminal) alias profiler python path/to/profiler_1.0/profiler.py (if using cshell)
- In the terminal, type "$> source ~/.bashrc" for bash or "$> source ~/.cshrc" for cshell
#USE
If an alias is created as above, then from the terminal, in any directory, typing "$> profiler" will launch the GUI. The input should be an ASCII file located in the working directory (wherever Profiler was launched from), and should have either the format generated by IRAF Ellipse, IRAF Isofit (http://adsabs.harvard.edu/abs/2015ApJ...810..120C) or a 2-column file (isophote semi-major axis and INTENS).
For details on the use of the code to decompose galaxy profiles, please refer to the accompanying paper (Ciambur 2016, arXiv:1607.08620 or at http://adsabs.harvard.edu/cgi-bin/bib_query?arXiv:1607.08620).
#N.B.
It is recommended to start fitting without the PSF convolution (i.e., set its FWHM to 0). This is done very quickly and the result can be used to update the guesstimate parameter values. Then the fit can be run WITH the PSF convolution to get the exact solution. #ACKNOWLEDGEMENT
If Profiler was useful for your research, please provide an acknowledgement by citing the above paper.
Thank you! Happy decomposing!
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
110.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
351.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
