[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 6cc3d25 027/113: No 3D projections in function
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 6cc3d25 027/113: No 3D projections in function to inspect NoiseChisel outputs |
Date: |
Fri, 16 Apr 2021 10:33:36 -0400 (EDT) |
branch: master
commit 6cc3d254838566d7f9b84d163ad36473783fb6c4
Author: Mohammad Akhlaghi <akhlaghi@gnu.org>
Commit: Mohammad Akhlaghi <akhlaghi@gnu.org>
No 3D projections in function to inspect NoiseChisel outputs
Until now, the two 3D frames that opened with the rest of the 2D slices
were projected by 45 degrees to clearly show their 3D nature. But after
using it a while, I noticed that atleast on IFU data that I am testing
with, it is easier to not change the viewing angle and only look at the 3D
dataset with azimuth and elevation of zero. This is because it will be the
same size as the rest of the frames and is a superposition of all the 3rd
dimension information. When the fields are even slightly crowded, the 45
degree viewing angle is not useful at all and is even confusing. If the
user wants to, they may rotate the cube in any way they like.
Also, a recent change in master (commit a8422ee3: "Write access only when
necessary in Fits program") is implemented in this branch with this commit
(just one line).
---
bin/fits/fits.c | 3 ++-
doc/gnuastro.texi | 32 ++++++++++++++++----------------
2 files changed, 18 insertions(+), 17 deletions(-)
diff --git a/bin/fits/fits.c b/bin/fits/fits.c
index 3af2ce5..60db9f6 100644
--- a/bin/fits/fits.c
+++ b/bin/fits/fits.c
@@ -286,7 +286,8 @@ fits_hdu_copy(struct fitsparams *p, int cut1_copy0, int *r)
hdu=gal_list_str_pop(&list);
/* Open the FITS file at the specified HDU. */
- in=gal_fits_hdu_open(p->filename, hdu, READWRITE);
+ in=gal_fits_hdu_open(p->filename, hdu,
+ cut1_copy0 ? READWRITE : READONLY);
/* Copy to the extension. */
if( fits_copy_hdu(in, out, 0, &status) )
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index ed3c08f..ddb4224 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -12928,9 +12928,7 @@ function ds9-nc3d-out @{
ds9 -zscale -geometry 1600x3000 -tile -wcs degrees \
-3d $1 -3d method aip -3d $oname -3d method mip \
-frame delete 1 -frame 4 -frame 5 -multiframe $1 \
- -frame 5 -zoom to fit -match frame image -lock slice image \
- -frame 2 -zoom out -3d view -45 45 \
- -frame 3 -zoom out -3d view -45 45
+ -frame 5 -zoom to fit -match frame image -lock slice image
rm -rf $tdir
fi
@}
@@ -12946,19 +12944,22 @@ $ ds9-nc3d-out cube_labeled.fits
@end example
@noindent
-The two 3D frames of the top row are the input image and the detected
-objects. You can view (project) them from different angles by first
-selecting the proper frame then changing azimuth and elevation values in
-the ``3D'' window (which also opens with DS9). The rest of the frames are
-2D slices of the 3D dataset in each extension as described above. In short,
-you can see the first and second extension in two views, once in 3D and
-once as 2D slices. You can flip through them with the slider (or buttons)
-on the ``Cube'' window (which also opens with DS9). In the @command{ds9}
-call above, all the frames are locked to the slice, so as you go deep into
-the 3D cube, all frames will change simultaneously.
+The two frames of the top row are the input image and the detected objects
+in 3D. You can view (project) them from different angles by first selecting
+the proper frame then changing the azimuth and elevation values in the
+``3D'' window (which also opens with DS9)@footnote{If you want to change
+the viewing/projection angle it is better to first zoom out and make the
+projection smaller so the rotated frame can fit in the frame and it is
+processed faster.}. The rest of the frames are 2D slices of the 3D dataset
+in each extension as described above. Therefore, you can see the first and
+second extension in two frames, once in 3D and once as 2D slices. You can
+flip through them with the slider (or buttons) on the ``Cube'' window
+(which also opens with DS9). In the @command{ds9} call above, all the
+frames are locked to the slice, so as you go deep into the 3D cube, all
+frames will change simultaneously.
To easily view/inspect NoiseChisel's check images, you can add this
-function to your @file{.bashrc}. In many cases, it is similar to the
+function to your @file{.bashrc}. In many ways, it is similar to the
@code{ds9-nc3d-out} function above, but it only shows the input cube in 3D,
then shows all the extensions in the check image as 2D slices.
@@ -12970,8 +12971,7 @@ function ds9-nc3d-check @{
else
ds9 -zscale -geometry 1600x3000 -tile -wcs degrees \
-3d $1 -3d method aip -frame delete 1 -multiframe $1 \
- -frame 2 -zoom to fit -match frame image -lock slice image \
- -frame 2 -zoom out -3d view -45 45
+ -frame 2 -zoom to fit -match frame image -lock slice image
fi
@}
@end example
- [gnuastro-commits] master a11e71c 003/113: Merged with recent changes in master, (continued)
- [gnuastro-commits] master a11e71c 003/113: Merged with recent changes in master, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 3df6490 001/113: Crop works in 3D, except for --polygon, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master d14384a 007/113: Minor corrections in MakeProfiles manual, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 5abb468 008/113: Other minor corrections in the documentation, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 3e76e1f 010/113: MakeProfiles --kernel builds 3D kernels also, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 81f3f65 023/113: More --coordcol options acceptable in Crop, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master e47f8db 024/113: Merged recent work in master, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 8fa5ff1 026/113: Minor edit in book (part added in last commit), Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 40f0a56 013/113: Minor corrections to MakeProfiles continued, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 8372486 020/113: NoiseChisel's detection complete in 3D, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 6cc3d25 027/113: No 3D projections in function to inspect NoiseChisel outputs,
Mohammad Akhlaghi <=
- [gnuastro-commits] master e990860 029/113: Merged recent updates in master, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 6bdc5d6 030/113: Oversegmentation connectivity one less for 3D, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master be3bfd8 033/113: NoiseChisel configuration file in 3D updated, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 3b6c15d 036/113: Merged with recent work in master, no conflicts, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master fb3660f 037/113: MakeCatalog works in 3D, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 73fdf0c 006/113: MakeProfiles builds 3D ellipsoids, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 03d73fe 011/113: Some minor corrections in code and comments, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 87ab805 014/113: Identifiers for integer constants in BZERO comparisons, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master 1483201 009/113: Noised cube created in make check, Mohammad Akhlaghi, 2021/04/16
- [gnuastro-commits] master bdeaba9 012/113: Corrected name of 3D catalog for tarball inclusion, Mohammad Akhlaghi, 2021/04/16