I realized it makes much more sense to emulate in s8 than in ln10As. I'm going to convert the emulators over to that and re fit them.
In [1]:
import numpy as np
import h5py
from os import path, rename
from shutil import copyfile
from glob import glob
import pandas as pd
In [2]:
orig_param_fname = '~swmclau2/des/LH_eigenspace_lnA_np7_n40_s556.dat'
In [3]:
cosmo_params = pd.read_csv(orig_param_fname, sep = ' ', index_col = None)
In [4]:
cosmo_params.columns
Out[4]:
In [5]:
cosmo_params.iloc[0]
Out[5]:
In [6]:
new_param_fname = '/afs/slac.stanford.edu/u/ki/jderose/public_html/aemulus/phase1/cosmos.txt'
new_test_param_fname = '/afs/slac.stanford.edu/u/ki/jderose/public_html/aemulus/phase1/test_cosmos.txt'
In [7]:
new_cosmo_params = pd.read_csv(new_param_fname, sep = ' ', index_col=0)
new_test_cosmo_params = pd.read_csv(new_test_param_fname, sep = ' ', index_col=0)
In [8]:
%matplotlib inline
from matplotlib import pyplot as plt
In [8]:
new_cosmo_params.iloc[0]
Out[8]:
In [9]:
new_cosmo_params = new_cosmo_params.drop('ln10As', axis = 1)
In [10]:
new_test_cosmo_params = new_test_cosmo_params.drop('ln10As', axis = 1)
In [11]:
new_cosmo_params['sigma8'].as_matrix()
Out[11]:
In [12]:
np.repeat(new_test_cosmo_params['sigma8'].as_matrix(), (5,))
Out[12]:
In [13]:
base_dir = '/u/ki/swmclau2/des/'
orig_fnames = ['wp_zheng07/PearceWpCosmo.hdf5', 'wp_zheng07_test/PearceWpCosmoTest.hdf5',
'wp_hsab/PearceWpHSABCosmo.hdf5', 'wp_hsab_test/PearceWpHSABCosmoTest.hdf5',
'wp_cab/PearceWpCABCosmo.hdf5', 'wp_cab_test/PearceWpCABCosmoTest.hdf5',
'wp_corrab/PearceWpCorrABCosmo.hdf5', 'wp_corrab_test/PearceWpCorrABCosmoTest.hdf5',
'ds_zheng07/PearceDsCosmo.hdf5', 'ds_zheng07_test/PearceDsCosmoTest.hdf5',
'ds_hsab/PearceDsHSABCosmo.hdf5', 'ds_hsab_test/PearceDsHSABCosmoTest.hdf5',
'ds_cab/PearceDsCABCosmo.hdf5', 'ds_cab_test/PearceDsCABCosmoTest.hdf5',
'ds_corrab/PearceDsCorrABCosmo.hdf5', 'ds_corrab_test/PearceDsCorrABCosmoTest.hdf5']
In [14]:
tmp_fname = 'tmp.hdf5'
In [ ]:
In [ ]: