linear_arrays_to_wcs(name_x, name_y, bin_edges_x, bin_edges_y)¶
Make a 2D linear WCS object from arrays of bin edges.
This method gives the correct answer only for linear X, Y binning. X is identified with WCS axis 1, Y is identified with WCS axis 2.
name_x : str
name of X coordinate, to be used as ‘CTYPE’ value
name_y : str
name of Y coordinate, to be used as ‘CTYPE’ value
array with the bin edges for the X coordinate
array with the bin edges for the Y coordinate
WCS object describing the bin coordinates