Skip to content

A fast interface to using the parsec isochrones stored in wsdb at the IoA Cambridge

Notifications You must be signed in to change notification settings

simongibbons/parsec_wsdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

parsec_wsdb

This is a simple class used to query the parsec isochrones that are stored within wsdb, and cache them so they can be used quickly.

Database Credentials

This package gets it's data from wsdb and as such it will need your database credentials. It will look for them in a configuration file .wsdb_config which should be located in your home directory.

The structure of the file should be

[wsdb]
name: wsdb
host: cappc127.ast.cam.ac.uk
user: {your username}
password: {your password}

Once you've created it don't forget to set it's permissions to 600!

Usage

Once installed grabbing you can get the isochrone which is closest to a given metallicity and age by doing

import parsec_wsdb

isodb = parsec_wsdb.ParsecIsochrones()

isochrone = isodb.get_isochrone(feh = -1.5, logage =  9.0)

this will return an astropy table with the requested data.

About

A fast interface to using the parsec isochrones stored in wsdb at the IoA Cambridge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages