Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pixell/enmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ def has_wcs(m):
elif isinstance(arr, list) and len(arr) > 0 and has_wcs(arr[0]):
wcs = arr[0].wcs
else:
warnings.warn("An empty WCS with default values is being attached, since no WCS was specified. This may result in unexpected results.")
wcs = wcsutils.WCS(naxis=2)
if copy:
arr = np.asanyarray(arr, dtype=dtype).copy()
Expand Down
Loading