gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master f578179 2/3: New function index, updated hosti


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master f578179 2/3: New function index, updated hosting institutions
Date: Sun, 18 Sep 2016 20:23:51 +0000 (UTC)

branch: master
commit f578179577bbc3bea31ec33893d022e6c87c6545
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    New function index, updated hosting institutions
    
    The functions index is now separated from the other indexes so users can
    easily get to the function they want. The output type of the function is
    now also writen on a separate line before the function to be similar to the
    actual code. The functions in `box.h' have been documented and some other
    index entries were also corrected. The hosting institutions were also
    updated in `THANKS' and also added in the acknowledgements section of the
    book.
---
 THANKS            |    5 ++-
 doc/gnuastro.texi |  128 ++++++++++++++++++++++++++++++++++++++---------------
 2 files changed, 97 insertions(+), 36 deletions(-)

diff --git a/THANKS b/THANKS
index dafdc07..05fe141 100644
--- a/THANKS
+++ b/THANKS
@@ -32,5 +32,8 @@ institutions. These institutions have either funded, 
supported and most
 importantly provided a productive environment for the developers of
 Gnuastro. The list is in chronological order.
 
+    Ministry of education, culture, sports, science and technology, Japan.
     Tohoku University, Sendai, Japan.
-    University of Salento, Lecce, Italy.
\ No newline at end of file
+    University of Salento, Lecce, Italy.
+    Centre de Recherche Astrophysique de Lyon, France
+    Centre national de la recherche scientifique, France
\ No newline at end of file
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index 94462f0..1ab7f6d 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -13,11 +13,13 @@
 @c So dashes and underscores can be used in HTMLs
 @allowcodebreaks true
 
address@hidden So function output type is printed on first line
address@hidden on
+
 @c Use section titles in cross references, not node titles.
 @xrefautomaticsectiontitle on
 
 @c For the indexes:
address@hidden fn cp
 @syncodeindex vr cp
 @syncodeindex pg cp
 
@@ -507,7 +509,8 @@ Review of library fundamentals
 
 Gnuastro library
 
-* Overall package (gnuastro.h)::  Macros related to the whole package.
+* Overall package (gnuastro.h)::  Related to the whole package.
+* Bounding box (box.h)::        Finding bounding boxes in an image.
 
 Developing
 
@@ -682,8 +685,7 @@ was changed.
 @end quotation
 
 @cindex Anscombe's quartet
address@hidden Good statistical analysis
address@hidden Statistical analysis, good
address@hidden Statistical analysis
 Anscombe's quartet
 @address@hidden://en.wikipedia.org/wiki/Anscombe%27s_quartet}}
 demonstrates how four data sets with widely different shapes (when
@@ -1029,7 +1031,7 @@ fully explained, easy and (hopefully) entertaining.
 @cindex Linux
 @cindex GNU/Linux
 @cindex GNU C library
address@hidden GNU compiler collection
address@hidden GNU Compiler Collection
 You might have already noticed that we are not using the name ``Linux'',
 but ``GNU/Linux''. Please take the time to have a look at the following
 essays and FAQs for a complete understanding of this very important
@@ -1454,10 +1456,17 @@ We would also like to gratefully thank Mohammad-reza 
Khellat, Alan Lefor,
 and Yahya Sefidbakht for their useful and constructive comments and
 suggestions. Finally we should thank all the (sometimes anonymous)
 developers in various online forums which patiently answered all our small
-(but important) technical questions.
-
-
+(but important) technical questions. All work on Gnuastro has been
+voluntary, but we are most grateful to the following institutions (in
+chronological order) for hosting us in our research:
 
address@hidden
+Ministry of education, culture, sports, science and technology (MEXT), 
address@hidden
+Tohoku University Astronomical Institute, Sendai, address@hidden
+University of Salento, Lecce, address@hidden
+Centre national de la recherche scientifique (CNRS), address@hidden
+Centre de Recherche Astrophysique de Lyon, University of Lyon 1, address@hidden
address@hidden quotation
 
 
 
@@ -2487,11 +2496,11 @@ package manager.
 @table @asis
 
 @item GNU Portability Library (Gnulib)
address@hidden Gnulib
 @cindex GNU C library
address@hidden GNU Portability Library
address@hidden Gnulib: GNU Portability Library
address@hidden GNU Portability Library (Gnulib)
 To ensure portability for a wider range of operating systems (those that
-don't include GNU C Library, namely glibc), Gnuastro depends on the GNU
+don't include GNU C library, namely glibc), Gnuastro depends on the GNU
 portability library, or Gnulib. Gnulib keeps a copy of all the functions in
 glibc, implemented (as much as possible) to be portable to other operating
 systems. The @file{bootstrap} script can automatically clone Gnulib (as a
@@ -2754,7 +2763,8 @@ with the main repository see @ref{Synchronizing}.
 
 @cindex Bootstrapping
 @cindex GNU Autoconf Archive
address@hidden GNU Portability Library
address@hidden Gnulib: GNU Portability Library
address@hidden GNU Portability Library (Gnulib)
 @cindex Automatically created build files
 @noindent
 The version controlled source code lacks the source files that we have not
@@ -2765,8 +2775,6 @@ to immediately configure, build, and install Gnuastro. 
However from the
 perspective of version control, they are just bloatware and sources of
 confusion (since they are not changed by Gnuastro developers).
 
address@hidden Gnulib
address@hidden GNU Portability Library (Gnulib)
 The process of automatically building and importing necessary files into
 the cloned directory is known as @emph{bootstrapping}. All the instructions
 for an automatic bootstrapping are available in @file{bootstrap} and
@@ -2818,16 +2826,18 @@ $ cd $TOPGNUASTRO/gnuastro
 $ ./bootstrap --copy --gnulib-srcdir=$DEVDIR/gnulib
 @end example
 
+
 @cindex GNU Texinfo
 @cindex GNU Libtool
 @cindex GNU Autoconf
 @cindex GNU Automake
address@hidden GNU C library
 @cindex GNU build system
 Since Gnulib and Autoconf archives are now available in your local
 directories, you don't need an internet connection every time you decide to
 remove all untracked files and redo the bootstrap (see box below). You can
 also use the same command on any other project that uses Gnulib. All the
-necessary GNU C Library functions, Autoconf macros and Automake inputs are
+necessary GNU C library functions, Autoconf macros and Automake inputs are
 now available along with the book figures. The standard GNU build system
 (@ref{Quick start}) will do the rest of the job.
 
@@ -3059,11 +3069,12 @@ very similar to the @option{--enable-progname}, but 
will build and
 install all the other programs except this one.
 
 @item --enable-gnulibcheck
address@hidden GNU C Library
address@hidden GNU Portability Library
address@hidden GNU C library
address@hidden Gnulib: GNU Portability Library
address@hidden GNU Portability Library (Gnulib)
 Enable checks on the GNU Portability Library (Gnulib). Gnulib is used
 by Gnuastro to enable users of non-GNU based operating systems (that
-don't use GNU C Library or glibc) to compile and use the advanced
+don't use GNU C library or glibc) to compile and use the advanced
 features that this library provides. We make extensive use of such
 functions. If you give this option to @command{$ ./configure}, when
 you run @command{$ make check}, first the functions in Gnulib will be
@@ -3536,9 +3547,9 @@ written by hand) there is no problem in this and this 
feature can be
 considered as an automatic cleanup.
 
 @cindex Linux kernel
address@hidden GNU C Library
address@hidden GNU Build System
-The modern GNU C Library (and thus the Linux kernel) define the
address@hidden GNU C library
address@hidden GNU build system
+The modern GNU C library (and thus the Linux kernel) define the
 @file{/dev/shm} directory for this purpose (POSIX shared memory). So using
 GNU Build System's ability to build in a separate directory (not
 necessarily in the source directory), we can configure and build the
@@ -3710,8 +3721,9 @@ for @file{LD_LIBRARY_PATH} explained below.
 @end itemize
 
 @item
address@hidden GNU Portability Library
 @vindex --enable-gnulibcheck
address@hidden Gnulib: GNU Portability Library
address@hidden GNU Portability Library (Gnulib)
 @command{$ make}: @emph{Complains about an unknown function on a
 non-GNU based operating system.} In this case, please run @command{$
 ./configure} with the @option{--enable-gnulibcheck} option to see if
@@ -4110,7 +4122,7 @@ To facilitate the job of the users and developers, all 
the programs in
 Gnuastro share some basic command-line options for the same
 operations where they are relevant. The list of options is provided
 below. It is noteworthy that these similar options are hard-wired into
-the programming of all of Gnuastro programs using GNU C Library's
+the programming of all of Gnuastro programs using GNU C library's
 argument parser merging ability.
 
 @cindex Irrelevant options
@@ -5032,10 +5044,10 @@ this manner:
 $ export ARGP_HELP_FMT=rmargin=100,opt-doc-col=20
 @end example
 @cindex @file{.bashrc}
-This will affect all GNU programs using GNU C Library's @file{argp.h}
+This will affect all GNU programs using GNU C library's @file{argp.h}
 facilities as long as the environment variable is in memory. You can
 see the full list of these formatting parameters in the ``Argp User
-Customization'' part of the GNU C Library manual. If you are more
+Customization'' part of the GNU C library manual. If you are more
 comfortable to read the @option{--help} outputs of all GNU software in
 your customized format, you can add your customizations (similar to
 the line above, without the @command{$} sign) to your @file{~/.bashrc}
@@ -5099,7 +5111,7 @@ provided in Info, your whole GNU/Linux life will 
significantly
 improve.
 
 @cindex GNU Emacs
address@hidden GNU C Library
address@hidden GNU C library
 Once you've become an efficient navigator in Info, you can go to any
 part of this book or any other GNU software or library manual, no
 matter how long it is, in a matter of seconds. It also blends nicely
@@ -9348,7 +9360,7 @@ the histogram. But the image pixels can have any 
distribution, and the
 histogram results are very inaccurate (there is a large dispersion)
 and depend on bin-widths.
 
address@hidden @mymath{\sigma}-clipping
address@hidden sigma-clipping
 @item
 Another approach was to iteratively clip the brightest pixels in the
 image (which is known as @mymath{\sigma}-clipping, since the reference
@@ -14282,7 +14294,7 @@ CPP) is @command{CPPFLAGS}. By giving 
@command{CPPFLAGS} a value once, you
 can be sure that each call to the compiler will be affected. See @ref{Known
 issues} for an example of how to set this variable at configure time.
 
address@hidden GNU Build system
address@hidden GNU build system
 As described in @ref{Installation directory}, you can select the top
 installation directory of a software using the GNU build system, when you
 @command{./configure} it. All the separate components will be put in their
@@ -14714,10 +14726,11 @@ for changes in the interface.
 @end cartouche
 
 @menu
-* Overall package (gnuastro.h)::  Macros related to the whole package.
+* Overall package (gnuastro.h)::  Related to the whole package.
+* Bounding box (box.h)::        Finding bounding boxes in an image.
 @end menu
 
address@hidden Overall package (gnuastro.h),  , Gnuastro library, Gnuastro 
library
address@hidden Overall package (gnuastro.h), Bounding box (box.h), Gnuastro 
library, Gnuastro library
 @subsection Overall package (@file{gnuastro.h})
 
 The @file{gnuastro/gnuastro.h} header contains information about the full
@@ -14746,6 +14759,48 @@ char *gnuastro_version=GAL_GNUASTRO_VERSION;
 @end example
 @end deffn
 
+
+
+
+
address@hidden Bounding box (box.h),  , Overall package (gnuastro.h), Gnuastro 
library
address@hidden Bounding box (@file{box.h})
+
+Functions related to reporing a the bouding box of certain inputs are
+declared in @file{gnuastro/box.h}. All coordinates in this header are in
+the FITS format (first axis is the horizontal and the second axis is
+vertical).
+
address@hidden void gal_box_ellipse_in_box (double @var{A}, double @var{B}, 
double @var{theta_rad}, long @var{*width})
+Any ellipse can be enclosed into a rectangular box. The purpose of this
+function is to give the height and width of that box. @var{A} is the
+ellipse major axis, @var{B} is the minor axis, @var{theta_rad} is the
+position angle in radians. The @var{width} array will contain the output
+size in long integer type. @code{width[0]}, and @code{width[1]} are the
+number of pixels along the first and second FITS axis.
address@hidden deftypefun
+
address@hidden void gal_box_border_from_center (double @var{xc}, double 
@var{yc}, long @var{*width}, long @var{*fpixel}, long @var{*lpixel})
+Given the center (@var{xc} and @var{yc}) and width (two element array) of a
+box, return the coordinates of the first @var{fpixel} and last @var{lpixel}
+pixels (both are two element arrays.
address@hidden deftypefun
+
address@hidden int gal_box_overlap (long @var{*naxes}, long @var{*fpixel_i}, 
long @var{*lpixel_i}, long @var{*fpixel_o}, long @var{*lpixel_o})
+We have an image of size @var{naxes} and want to get the overlap of the
+image with a box. This function will return 1 if there is an overlap and 0
+if there isn't. The input and output box are specified by their first and
+last pixels. When there is an overlap, the coordinates of the first and
+last pixels of the overlap will be put in @var{fpixel_o} and
address@hidden
address@hidden deftypefun
+
+
+
+
+
+
+
 @node The TEMPLATE utility,  , Gnuastro library, Libraries
 @section The TEMPLATE utility
 
@@ -14947,14 +15002,14 @@ usage and ``high speed'' is desired.
 
 The core processing functions of each program are written mostly with
 the basic ISO C90 standard. We do make lots of use of the GNU
-additions to the C language in the GNU C Library, but these additional
+additions to the C language in the GNU C library, but these additional
 functions are mainly used in the user interface functions (reading
 your inputs and preparing them prior to or after the analysis). The
 actual algorithms, which most scientists would be more interested in,
 are much more closer to ISO C90. For this reason, the source files
 containing user interface code and those containing actual processing
 code are clearly separated, see @ref{Program source}. If anything
-particular to the GNU C Library is used in the processing functions,
+particular to the GNU C library is used in the processing functions,
 it is explained in the comments in between the code.
 
 @cindex GNU Coreutils
@@ -15339,7 +15394,7 @@ int verb=p->cp.verb;
 
 @item args.h
 @cindex Argp argument parser
-The argument parser structures (which are used by GNU C Library's
+The argument parser structures (which are used by GNU C library's
 Argp) for each program are defined in @file{args.h}. They are separate
 global variables and function definitions that will be used by
 Argp. We recommend going through the appropriate section in GNU C
@@ -15508,7 +15563,8 @@ The headers should be classified (by an empty line) 
into separate
 groups:
 
 @enumerate
address@hidden GNU Portability Library
address@hidden Gnulib: GNU Portability Library
address@hidden GNU Portability Library (Gnulib)
 @item
 @code{#include <config.h>}: This must be the first code line (not
 commented or blank) in each source file. It sets macros that the GNU
@@ -16506,7 +16562,7 @@ SAO ds9 window: @address@hidden address@hidden
 Multi Ext Cube} and then choose the Multi extension FITS file in your
 computer's file structure.
 
address@hidden ds9 -mecube
address@hidden @option{-mecube} (ds9)
 The method above is a little tedious to do every time you want view a
 multi-extension FITS file. Fortunately SAO ds9 also provides options
 that you can use to specify a particular behavior. One of those
@@ -16727,6 +16783,8 @@ $ ./pgdemoXX
 
 @c Print the index and finish:
 @node Index,  , GNU Free Documentation License, Top
address@hidden Function index
address@hidden fn
 @unnumbered Index
 @printindex cp
 



reply via email to

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