sncosmo.read_griddata_ascii

sncosmo.read_griddata_ascii(name_or_obj)[source]

Read 2-d grid data from a text file.

Each line has values x0 x1 y. Space separated. x1 values are only read for first x0 value. Others are assumed to match.

Parameters
name_or_objstr or file-like object
Returns
x0numpy.ndarray

1-d array.

x1numpy.ndarray

1-d array.

ynumpy.ndarray

2-d array of shape (len(x0), len(x1)).