Welcome to fidanka’s documentation!
Fidanka
Fiducual line generation along with isochrone fitting.
Installation
From Source
>>> git clone https://github.com/tboudreaux/fidanka.git
>>> cd fidanka
>>> pip install -e .
Simple Examples
Single Isochrone Fitting
Imagine a file called HUGS1.csv which contains photometry and can be read with pandas for the globular cluster NGC 2808 in your current working directory. Also imagine a directory ISO which contains an isochron in the MIST format. We can fit that isochrone to the photometry as follows
>>> from fidanka.isochrone.MIST import read_iso
>>> from fidanka.fiducual import fiducual_line
>>> from fidanka.isofit.fit import optimize
>>> import pandas as pd
>>> photometry = pd.read_csv("HUGS1.csv")
>>> iso = read_iso("ISO/mist.iso")
>>>
>>> filter1 = photometry["F275W"]
>>> filter2 = photometry["F814W"]
>>> error1 = photometry["F275W_RMS"]
>>> error2 = photometry["F814W_RMS"]
>>>
>>> fiducualLine = fiducual_line(filter1, filter2, error1, error2, reverseFilterOrder=True)
>>> bestFitResults = optimize(fiducualLine, iso, ("F275W", "F814W", "F814W"))
>>>
>>> print(bestFitResults)
- Home
- Subpackages
- fidanka.bolometric package
- fidanka.exception package
- fidanka.ext package
- fidanka.fiducial package
- Subpackages
- Submodules
- fidanka.fiducial.fiducial module
MC_convex_hull_density_approximation()
approximate_fiducial_line_function()
color_mag_from_filters()
get_mag_and_color_ranges()
hull_density()
instantaious_hull_density()
instantaious_hull_density_cpp()
load_density()
measure_fiducial_lines()
percentage_within_n_standard_deviations()
renormalize()
shift_photometry_by_error()
verticalize_CMD()
- fidanka.fiducial.fiducialLine module
- fidanka.fiducial.utils module
- Module contents
- fidanka.isochrone package
- fidanka.isofit package
- fidanka.misc package
- fidanka.warn package
- Module contents
- Subpackages
- Fiducial
- Subpackages
- Submodules
- fidanka.fiducial.fiducial module
MC_convex_hull_density_approximation()
approximate_fiducial_line_function()
color_mag_from_filters()
get_mag_and_color_ranges()
hull_density()
instantaious_hull_density()
instantaious_hull_density_cpp()
load_density()
measure_fiducial_lines()
percentage_within_n_standard_deviations()
renormalize()
shift_photometry_by_error()
verticalize_CMD()
- fidanka.fiducial.fiducialLine module
- fidanka.fiducial.utils module
- Module contents
- Isochrone
- Fitting
- Bolometric
- Exceptions
- Warnings
- C-Libs
- Misc