s-goldman / Dusty-Evolved-Star-Kit

SED-fitting python package for fitting evolved stars
https://dusty-evolved-star-kit.readthedocs.io
Other
15 stars 2 forks source link

use hdf5 files for grids #96

Closed s-goldman closed 4 years ago

s-goldman commented 4 years ago

Change the box direct links to something reasonable. Also use hdf5 files. Write the files using

a.write('outputs.hdf5', path='data')

and then read the files using

import h5py filename = "outputs.hdf5" f = h5py.File(filename, "r") key = list(f.keys())[0] data = list(f[key][1:4])

the 4 is the number of rows, use this for reading in a fraction of the grid for testing