Package ivs :: Package catalogs :: Module trilegal
[hide private]
[frames] | no frames]

Module trilegal

source code

Web query of TRILEGAL population synthesis code. Author: Joris De Ridder

Functions [hide private]
 
trilegal(outputFileName, longitude=0, latitude=0, coordinateType="galactic", fieldArea=1, passband=4, magnitudeLimit=26, magnitudeResolution=0.1, IMFtype=3, includeBinaries=True, binaryFraction=0.3, lowerBinaryMassRatio=0.7, upperBinaryMassRatio=1.0, extinctionType=2, extinctionValue=0.0378, extinctionSigma=0.0, useThinDisc=False, useThickDisc=False, useBulge=True)
Query the web interface of the TRILEGAL population synthesis code.
source code
Function Details [hide private]

trilegal(outputFileName, longitude=0, latitude=0, coordinateType="galactic", fieldArea=1, passband=4, magnitudeLimit=26, magnitudeResolution=0.1, IMFtype=3, includeBinaries=True, binaryFraction=0.3, lowerBinaryMassRatio=0.7, upperBinaryMassRatio=1.0, extinctionType=2, extinctionValue=0.0378, extinctionSigma=0.0, useThinDisc=False, useThickDisc=False, useBulge=True)

source code 

Query the web interface of the TRILEGAL population synthesis code.

The TRILEGAL webform is automatically filled and submitted. The computations are done locally on Girardi's computer. As soon as they are finished, the script retrieves the data file.

Example:

>>> trilegal("output.txt", longitude=3, latitude=14, coordinateType="galactic", fieldArea=1, magnitudeLimit=7, useThinDisc=True)
Parameters:
  • outputFileName (string) - name of file wherein trilegal output will be saved
  • longitude (integer) - galactic longitude (degrees) or right ascension (hours)
  • latitude (integer) - galactic latitude (degrees) or declination (degrees)
  • coordinateType (string) - either "galactic", or "equatorial"
  • fieldArea (float) - total field area in square degrees (max. 10 deg^2)
  • passband (integer) - U,B,V,R,I,J,H,K = 1,2,3,4,5,6,7,8 for magnitude limit
  • magnitudeLimit (float) - magnitude limit in specified passband
  • magnitudeResolution (float) - Distance modulus resolution of Galaxy components (mag)
  • IMFtype (integer) - type of Initial Mass Function of single stars 1 = Salpeter with cutoff at 0.01, Msun, 2 = Chabrier exponential, 3 = Chabrier lognormal, 4 = Kroupa corrected for binaries, 5 = Kroupa not corrected for binaries
  • includeBinaries (boolean) - include binaries in the population (True or False)
  • binaryFraction (float) - fraction of binaries
  • lowerBinaryMassRatio (float) - lower limit of binary mass fraction
  • upperBinaryMassRatio (float) - upper limit of binary mass fraction
  • extinctionType (integer) - Type of extinction 0: no dust extinction 1: local calibration 2: calibration at infinity
  • extinctionValue (float) - for a local calibration this is dAv/dr in mag/pc for the calibration at infinity this is Av at infinity in mag.
  • extinctionSigma (float) - 1-sigma extinction dispersion / total extinction (max. 0.3)
  • useThinDisk (boolean) - if True use squared hyperbolic secant along z, if False don't include
  • useThickDisk (boolean) - if True use squared hyperbolic secant along z, if False don't include
  • useBulge (boolean @return None. A file is retrieved) - if True use triaxal bulge, if False don't include