Open keflavich opened 3 years ago
Alright, this is much harder than I thought. The CNGI approach is to evaluate everything at import time, which means there's no serial storage of the WCS. We can only provide an interface to the pre-computed values, which kind of kills all of the coordinate transformations that make spectral-cube nice.
yeah, without a serialization of the WCS, none of the io functions work, so I don't see a point in trying to push this.
CNGI is using
xarr
objects as their main data object, and their plan is to keep the code base entirely functional (not object-oriented).We should make sure that all CNGI functions can either work directly on spectral-cube objects or can be easily interfaced, e.g.,
cngi_function(cube.xarr)
.This page holds the closest thing available to a spec & test right now: https://cngi-prototype.readthedocs.io/en/latest/images.html