sncosmo.write_griddata_ascii

sncosmo.write_griddata_ascii(x0, x1, y, name_or_obj)[source]

Write 2-d grid data to a text file.

Each line has values x0 x1 y. Space separated.

Parameters:
x0numpy.ndarray

1-d array.

x1numpy.ndarray

1-d array.

ynumpy.ndarray

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

name_or_objstr or file-like object

Filename to write to or open file.