Example #1
0
	"bitbucket.org/phil-mansfield/halo"
	"bitbucket.org/phil-mansfield/table"
)

const (
	steps  = 200
	simFth = halo.Battaglia2013
	simPpt = halo.BattagliaAGN2012
	valPpt = halo.Planck2012

	tempBt = halo.Corrected
)

var (
	fTh  = halo.FThermalFunc(simFth, halo.MeanCurve)
	fThP = halo.FThermalFunc(simFth, halo.PlusSigmaCurve)
	fThM = halo.FThermalFunc(simFth, halo.MinusSigmaCurve)

	cFunc0 = halo.ConcentrationFunc(halo.Bhattacharya2013, 0.0)
	cFunc5 = halo.ConcentrationFunc(halo.Bhattacharya2013, 0.5)

	colNames = []string{
		"m500c",
		"temp-z=0",
		"temp-z=0+",
		"temp-z=0-",
		"temp-z=0.5",
		"temp-z=0.5+",
		"temp-z=0.5-",
	}
Example #2
0
	"os"
	"path"

	"bitbucket.org/phil-mansfield/halo"
	"bitbucket.org/phil-mansfield/table"
)

const (
	steps = 300

	simFth = halo.Battaglia2013
	simPpt = halo.BattagliaAGN2012
)

var (
	fTh = halo.FThermalFunc(simFth, halo.MeanCurve)

	alphaNames = []string{
		"r/r500",

		"alpha-m=1e14-z=0",
		"alpha-m=5e14-z=0",
		"alpha-m=1e14-z=0.5",
		"alpha-m=5e14-z=0.5",
	}

	betaNames = []string{
		"r/r500c",

		"beta-m=1e14-z=0",
		"beta-m=5e14-z=0",
Example #3
0
import (
	"math"
	"os"
	"path"

	"bitbucket.org/phil-mansfield/halo"
	"bitbucket.org/phil-mansfield/table"
)

const (
	z     = 0
	steps = 300
)

var (
	fTh   = halo.FThermalFunc(halo.Battaglia2013, halo.MeanCurve)
	cFunc = halo.ConcentrationFunc(halo.Bhattacharya2013, z)

	colNames = []string{
		"r/r500c",
		"P-Battaglia-m=1e14-z=0.0",
		"P-Battaglia-m=1e15-z=0.0",
		"P-Battaglia-m=1e14-z=0.2",
		"P-Battaglia-m=1e15-z=0.2",
	}
)

func main() {
	if len(os.Args) != 2 {
		panic("You must give exactly one argument.")
	}