Skip to content

asgr/libprofit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libprofit

libprofit is a low-level C library that produces images based on different luminosity profiles.

The currently supported profiles (and their parameters) are:

  • sersic: X/Y center, sersic number, magnitude, angle, effective radius, axes ratio, boxing
  • sky: background
  • psf: xcen, ycen, magnitude

With time we intend to add more profiles to the library. Users can also provide their own profiles.

Any number of profiles can be given, all of which are calculated and summed up, resulting in a final image. Profiles can optionally specify whether the resulting image should be convolved or not. If that is the case, then a common PSF convolution matrix must be provided.

libprofit has no compiling dependencies other than libc and libm; however some profiles require some high-level functions that can be found in third-party mathematical packages like R or GSL.

These functions must thus be provided when linking libprofile into the resulting library or program.

Example of hwo to run it:

./profit-cli -f libprofittest.fits -p sersic:xcen=50:ycen=50:mag=15:re=10:nser=1:ang=30:axrat=0.4 -p sersic:xcen=50:ycen=50:mag=15:re=3:nser=8

This will produce a bulge/disk system.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published