sncosmo.write_griddata_fits

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

Write a 2-d grid of data to a FITS file

The grid coordinates are encoded in the FITS-WCS header keywords.

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.