Learn R Programming

stellaR (version 0.3-4)

interpTrk: Interpolate stellar tracks data

Description

Construct a set of interpolated tracks from the objects in the database.

Usage

interpTrk(z, y, ml, afe, vmass=seq(0.30,1.10, by=0.05),
           baseURL="ftp://cdsarc.u-strasbg.fr/pub/cats/J/A+A/540/A26/")

Arguments

z

the initial metallicity of the models to generate. Allowed values are between 0.0001 and 0.01.

y

the initial helium abundance of the models to generate. Allowed values are between 0.25 and 0.42.

ml

the mixing-length of the model to generate. Allowed values are between 1.7 and 1.9.

afe

the alpha-enhanchment of the model to get. It can be one of afe = 0 for [alpha/Fe] = 0.0 or afe = 1 for [alpha/Fe] = 0.3.

vmass

vector of masses of the stellar model to generate. Default to the whole set in the database. Allowed values are 0.30, 0.35, 0.40, 0.45, 0.50, 0.55, 0.60, 0.65, 0.70, 0.75, 0.80, 0.85, 0.90, 0.95, 1.00, 1.05, 1.10.

baseURL

the URL of the base directory of the database from where get the models.

Value

The function returns an object of class trkset containing the interpolated tracks.

Details

A 3D interpolation is performed on the database to construct the required set of tracks. Interpolation on helium abundance and on mixing-length occur linearly on the variables, while the metallicity is log-transformed before the interpolation procedure.

Examples

Run this code
# NOT RUN {
  ### slow!
  
# }
# NOT RUN {
  iptrk <- interpTrk(0.002, 0.25, 1.74, 0)

  ### get data from local directory /data
  iptrk <- interpTrk(0.002, 0.25, 1.74, 0, baseURL="/data/")
# }

Run the code above in your browser using DataLab