GNU Astronomy Utilities - Tasks: task #15729, Warp on 3D cubes (at first 2D warp...
You are not allowed to post comments on this tracker with your current authentication level.
task #15729: Warp on 3D cubes (at first 2D warp over third dimension)
Submitter: | Mohammad Akhlaghi <makhlaghi> | ||
Submitted: | Thu 16 Jul 2020 08:05:59 PM UTC | ||
Should Start On: | Wed 15 Jul 2020 11:00:00 PM UTC | Should be Finished on: | Wed 15 Jul 2020 11:00:00 PM UTC |
Category: | Warp | Priority: | 5 - Normal |
Item Group: | Enhancement | Status: | None |
Privacy: | Public | Assigned to: | None |
Percent Complete: | 0% | Open/Closed: | Open |
Effort: | 0.00 |
Fri 17 Jul 2020 12:40:45 AM UTC, comment #1: |
Mohammad Akhlaghi <makhlaghi> |
Thu 16 Jul 2020 08:05:59 PM UTC, original submission:
Currently Warp only works on 2D images. But an increasingly large fraction of astronomical data are being produced as 3D cubes, so it would be very useful if Warp could also be used on them.
|
Mohammad Akhlaghi <makhlaghi> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2020-07-16 | makhlaghi | Carbon-Copy | - | Added -email is unavailable- |
Powered by Savane 3.13-f8d8.
Corresponding source code
As a demonstration of treating each slice as an independent 2D dataset, see crop-3d-as-2d-slices.mk.
In this Makefile we first pull out each slice as a 2D image, do the operation (Crop with options like '--polygon', that aren't yet supported in 3D), then put them back into a cube with Arithmetic. As a Makefile (putting hell scripts in blobs, or Make 'rules'), the job can be done on multiple threads and thus much faster and cleaner than a simple shell script.
Something like this can easily go into the source of Warp for the first step described below.
But until then, if you need any other special Warp operation, it can easily be added to this Makefile, so it supports both Crop and/or Warp. Alternatively, it can easily be modified/duplicated for Warp-only (For example rotating without cropping). So please get in touch if you need such a feature.