[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master b5c9a64 063/125: Science and its tools and Ima
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master b5c9a64 063/125: Science and its tools and ImageCrop corrections in book |
Date: |
Sun, 23 Apr 2017 22:36:38 -0400 (EDT) |
branch: master
commit b5c9a64cf506d734607c5f405a7ae374c3253c45
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Science and its tools and ImageCrop corrections in book
As suggested by David Valls-Gabaud, the following corrections/additions
were made to the "Science and its tools" section of the book:
- The statement that Numerical Recipes is not freely available can be
confusing, so it was removed. Although you can't legally download the
source of the book (in LaTeX for example), or PDF of the latest edition,
on their webpage you can read the book in the browser.
The main complaint in the context of this section is that it doesn't
allow redistribution of code based on its codes, so by removing that
confusing statement, more ephasis can be put on this more clear
point. Just for future reference, this is a quote from an FAQ-style
discussion on their webpage:
You want to distribute, noncommercially and free on the internet, an
application that uses NR routines. You need to distribute source
code, so that your application can be recompiled on different
machines. Can you include Numerical Recipes routines as part of that
source code, including a notice that they are only allowed to be
used with your application?
Sorry, no. We never give permission for Numerical Recipes source
code to be posted on any public server, or distributed with any
freeware or shareware package. If you encounter such a distribution,
we'd be grateful if you'd tell us about it. There are good freely
redistributable numerical libraries on Netlib that can be used,
instead of Numerical Recipes, in such cases.
-- Source: http://numerical.recipes/licenses/redistribute.html
- No reference was given for the statement that Galileo "was
anti-Copernican", so it was removed to avoid mis-conception and a
possibly wrong interpretation.
- An explanation was added to clarify the fact that when the cropped
region is large, the curved nature of the WCS coordinates cannot be
ignored.
---
THANKS | 1 +
doc/gnuastro.texi | 106 ++++++++++++++++++++++++++++--------------------------
2 files changed, 56 insertions(+), 51 deletions(-)
diff --git a/THANKS b/THANKS
index cd57d12..ecf94b3 100644
--- a/THANKS
+++ b/THANKS
@@ -28,6 +28,7 @@ support in Gnuastro. The list is ordered alphabetically.
Yahya Sefidbakht address@hidden
Richard Stallman address@hidden
Ole Streicher address@hidden
+ David Valls-Gabaud address@hidden
Institutions
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index bb7ab03..411846f 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -775,39 +775,35 @@ code and this book are thus intimately linked, and when
considered as
a single entity can be thought of as a real (an actual software
accompanying the algorithms) ``Numerical Recipes'' for astronomy.
-The other major and arguably more important difference is that
-``Numerical Recipes'' does not allow you to distribute any code that
-you have learned from it and the book is not freely available. So while
-it empowers the privileged individual who has access to it, it
-exacerbates social ignorance. For example it does not allow you to
-release your software's source code if you have used their codes, you
-can only publicly release binaries (a black box) to the
-community. Exactly at the opposite end of the spectrum, Gnuastro's
-source code is released under the GNU general public license (GPL) and
-this book is released under the GNU free documentation license. You
-are therefore free to distribute any software you create using parts
-of Gnuastro's source code or text, or figures from this book, see
address@hidden rights}. While developing the source code and this book
-together, the developers of Gnuastro aim to impose the minimum
-requirements on you (in computer science, engineering and even the
-mathematics behind the tools) to understand and modify any step of
-Gnuastro if you feel the need to do so, see @ref{Why C} and
address@hidden design philosophy}.
+The other major and arguably more important difference is that ``Numerical
+Recipes'' does not allow you to distribute any code that you have learned
+from it. So while it empowers the privileged individual who has access to
+it, it exacerbates social ignorance. For example it does not allow you to
+release your software's source code if you have used their codes, you can
+only publicly release binaries (a black box) to the community. Exactly at
+the opposite end of the spectrum, Gnuastro's source code is released under
+the GNU general public license (GPL) and this book is released under the
+GNU free documentation license. You are therefore free to distribute any
+software you create using parts of Gnuastro's source code or text, or
+figures from this book, see @ref{Your rights}. While developing the source
+code and this book together, the developers of Gnuastro aim to impose the
+minimum requirements on you (in computer science, engineering and even the
+mathematics behind the tools) to understand and modify any step of Gnuastro
+if you feel the need to do so, see @ref{Why C} and @ref{Program design
+philosophy}.
@cindex Galileo, G.
Imagine if Galileo did not have the technical knowledge to build a
-telescope. Astronomical objects could not be seen with the Dutch
-military design of the telescope. In the beginning of his ``The
-Sidereal Messenger'' (1610) he cautions the readers on this issue and
-instructs them on how to build a suitable instrument: without a
-detailed description of ``how'' he made his observations, no one would
-believe him. The same is true today, science cannot progress with a
-black box. Before he actually saw the moons of Jupiter, the mountains
-on the Moon or the crescent of Venus, he was an anti-Copernican and
-was “evasive” to address@hidden G. (Translated by Maurice
-A. Finocchiaro). @emph{The essential Galileo}. Hackett publishing
-company, first edition, 2008.}. Science is not independent of its
-tools.
+telescope. Astronomical objects could not be seen with the Dutch military
+design of the telescope. In the beginning of his ``The Sidereal Messenger''
+(1610) he cautions the readers on this issue and instructs them on how to
+build a suitable instrument: without a detailed description of ``how'' he
+made his observations, no one would believe him. The same is true today,
+science cannot progress with a black box. Before he actually saw the moons
+of Jupiter, the mountains on the Moon or the crescent of Venus, he was
+“evasive” to address@hidden G. (Translated by Maurice
+A. Finocchiaro). @emph{The essential Galileo}. Hackett publishing company,
+first edition, 2008.}. Science is not independent of its tools.
@cindex Ken Thomson
@cindex Stroustrup, Bjarne
@@ -6826,30 +6822,29 @@ crops between multiple threads to significantly reduce
the run time.
@cindex COSMOS survey
@cindex Imaging surveys
@cindex Hubble Space Telescope
-Astronomical surveys are usually extremely large. So large in fact,
-that the whole survey will not fit into a reasonably sized
-file. Because of this surveys usually cut the final image into
-separate tiles and store each tile in a file. For example the COSMOS
-survey's Hubble space telescope, ACS F814W image consists of 81
-separate FITS images, with each one having a volume of 1.7 Giga bytes.
+Astronomical surveys are usually extremely large. So large in fact, that
+the whole survey will not fit into a reasonably sized file. Because of
+this, surveys usually cut the final image into separate tiles and store
+each tile in a file. For example the COSMOS survey's Hubble space
+telescope, ACS F814W image consists of 81 separate FITS images, with each
+one having a volume of 1.7 Giga bytes.
@cindex Stitch multiple images
Even though the tile sizes are chosen to be large enough that too many
-galaxies don't fall on the edges of the tiles, inevitably some do and
-if you simply crop the image of the galaxy from that one tile, you
+galaxies/targets don't fall on the edges of the tiles, inevitably some
+do. So when you simply crop the image of such targets from one tile, you
will miss a large area of the surrounding sky (which is essential in
-estimating the noise). Therefore in its WCS mode, ImageCrop will
-stitch parts of the tiles that are relevant for a target (with the
-given width) from all the input images that cover that region into the
-output. Of course, the tiles have to be present in the list of input
-files.
-
-ImageCrop also has facilities to crop arbitrary polygons from a set of
-tiles by stitching the relevant parts of different tiles within the
-polygon, see @option{--polygon} in @ref{Invoking
-astimgcrop}. Alternatively, it can crop out rectangular regions from
-one image which can come in handy when removing the bias pixels in raw
-image processing, see @ref{Crop section syntax}.
+estimating the noise). Therefore in its WCS mode, ImageCrop will stitch
+parts of the tiles that are relevant for a target (with the given width)
+from all the input images that cover that region into the output. Of
+course, the tiles have to be present in the list of input files.
+
+Besides cropping postage stamps around certain coordinates, ImageCrop can
+also crop arbitrary polygons from an image (or a set of tiles by stitching
+the relevant parts of different tiles within the polygon), see
address@hidden in @ref{Invoking astimgcrop}. Alternatively, it can crop
+out rectangular regions through the @option{--section} option from one
+image, see @ref{Crop section syntax}.
@menu
* ImageCrop modes:: Basic ImageCrop modes.
@@ -6861,7 +6856,7 @@ image processing, see @ref{Crop section syntax}.
@node ImageCrop modes, Crop section syntax, ImageCrop, ImageCrop
@subsection ImageCrop modes
In order to be as comprehensive as possible, ImageCrop has two major
-modes of operation listed below.
address@hidden and @emph{WCS} modes as described below.
@table @asis
@item Image
@@ -7107,6 +7102,15 @@ Output and operating mode options. Options that are
common to all
Gnuastro program are listed in @ref{Common options} and will not be
repeated here.
+When you are specifying the crop vertices your self (through
address@hidden, or @option{--polygon}) on relatively small regions
+(depending on the resolution of your images) the outputs from image and WCS
+mode can be approximately equivalent. However, as the crop sizes get large,
+the curved nature of the WCS coordinates have to be considered. For
+example, when using @option{--section}, the right ascension of the bottom
+left and top left corners will not be equal. If you only want regions
+within a given right ascension, use @option{--polygon} in WCS mode.
+
@cartouche
@noindent
@strong{NOTE:} The coordinates are in the FITS format. So the first
- [gnuastro-commits] master eab25b1 059/125: Option descriptions also printed with values, (continued)
- [gnuastro-commits] master eab25b1 059/125: Option descriptions also printed with values, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 909fa0d 050/125: Table info printing in libraries, updates to Table program, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 36bcedd 066/125: Fixed automatic output checking in Arithmetic, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master d2ed7ea 060/125: Options setdirconf and setusrconf implemented, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 08147ce 062/125: All mandatory options not given are listed with error, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master a9092e9 036/125: The table library can read ASCII inputs, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 77b7910 057/125: Program specific global variables for in options library, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 9e553f0 022/125: All old arithmetic operators are now implemented, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master b470ee4 023/125: More efficient macro implementation for binary operators, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 6b51397 077/125: Added -j8 to make examples in book, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master b5c9a64 063/125: Science and its tools and ImageCrop corrections in book,
Mohammad Akhlaghi <=
- [gnuastro-commits] master edd5612 053/125: Single function to read all configuration files, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master acad34c 049/125: Sanity checks for reading txt tables, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 5b61ae3 032/125: Arithmetic functions/macros out of data.h, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 232e059 041/125: First draft of FITS table writing function complete, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 56f8c18 071/125: Cosmetic changes in option printing style, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 07a043c 026/125: Starting to use the new data structure to Table, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master f47a4c2 072/125: MakeProfiles now reads the columns, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master e4c110d 082/125: ConvertType also prints to stdout, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 30c7c07 074/125: CosmicCalculator working with changes in this branch, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 448d31e 092/125: Minor typo corrections in options of Header and Statistics, Mohammad Akhlaghi, 2017/04/23