[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 79dbe4ed: Book: corrected two minor typos in n
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 79dbe4ed: Book: corrected two minor typos in newly added example |
Date: |
Sun, 30 Oct 2022 12:54:13 -0400 (EDT) |
branch: master
commit 79dbe4ed05fd29c1da7cc0af406dfdf306738553
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Book: corrected two minor typos in newly added example
Until now, the example in the book for cropping multiple HDUs of a FITS
file had two typos: the 'hdu' variable was read as '$$hdu' and there was no
'--width'. Both would cause a crash.
With this commit, a single '$' has been used for the 'hdu' variable and a
width has been added.
---
doc/gnuastro.texi | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index 0bb1d33c..1791f14d 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -15658,8 +15658,9 @@ $ astcrop --mode=img --center=568.342,2091.719
--width=201 image.fits
## Crop all HDUs within a FITS file at a certain coordinate, while
## preserving the names of the HDUs in the output.
$ for hdu in $(astfits input.fits --listimagehdus); do \
- astcrop input.fits --hdu=$$hdu --append --output=crop.fits \
- --metaname=$$hdu --mode=wcs --center=189.16704,62.218203
+ astcrop input.fits --hdu=$hdu --append --output=crop.fits \
+ --metaname=$hdu --mode=wcs --center=189.16704,62.218203 \
+ --width=10/3600
done
@end example
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master 79dbe4ed: Book: corrected two minor typos in newly added example,
Mohammad Akhlaghi <=