Skip to content

This repository contains the code Profiler, a Python program for decomposing galaxy light profiles in 1D

Notifications You must be signed in to change notification settings

BogdanCiambur/PROFILER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. Pre-installed Python distribution (Ureka - which contains PyRAF - is good: http://ssb.stsci.edu/ureka/)
  2. 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 ###############

  1. 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

  1. Copy the source files in a directory (e.g. "profiler_1.0")
  2. 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)
  3. 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!

About

This repository contains the code Profiler, a Python program for decomposing galaxy light profiles in 1D

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages