astropy / astropy/specutils

Create method to extract "minimal bounding" region

Open
#746 2 comments 0 reactions 0 assignees View on GitHub
spectral-cube
Dominant language
Python
Stars
204
Forks
134
Avg merge
12h 55m
Merged PRs (30d)
1

Description

`spectral-cube` has a method to extract the minimal valid sub-cube, see the docs [here](https://spectral-cube.readthedocs.io/en/latest/manipulating.html#extract-the-minimal-valid-subcube). If I recall correctly one can currently extract multiple regions from a `Spectrum1D` object with `extract_spectral_region`, but that cuts out any data in between the regions. It would be good to have a method to extract the minimum bounding cube (or lower dimensional equivalent) of any provided regions.

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked spectral-cube minimal-valid-subcube documentation and the existing Spectrum1D.extract_spectral_region behavior. Define the API for computing the minimum bounding region across supplied regions, including lower-dimensional equivalents, and verify that intervening data is retained; the issue names no repository files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.