gnuastro-commits
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]