sunpy / ndcube

A base package for multi-dimensional contiguous and non-contiguous coordinate-aware arrays.
http://docs.sunpy.org/projects/ndcube/
BSD 2-Clause "Simplified" License
44 stars 48 forks source link

Faster shortcut for working out coordinates values for non-correlated WCS #780

Open nabobalis opened 1 week ago

nabobalis commented 1 week ago

Fixes https://github.com/sunpy/ndcube/issues/585

So in my case, I use a DKIST compound model which has two coupled pixel axes and a time axes. If I want just the time axis, the current code will work out the entire grid leading to a very dense and memory intense results.

So I added a really specific hack which works for my code and seems to not break the rest of the test suite.

TODO:

Unit tests: