[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 4e78514 3/4: Top level src/ directory renamed
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 4e78514 3/4: Top level src/ directory renamed to bin/ |
Date: |
Fri, 23 Sep 2016 15:28:00 +0000 (UTC) |
branch: master
commit 4e78514940e09cb2389022dae56770a33aa35102
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Top level src/ directory renamed to bin/
From this commit, the top level `src/' directory is called `bin/' and all
occurances of `src/' within the Gnuastro files were also corrected. This
change was done since `src' is too generic and could cause confusion: is it
the source of the programs and utilities? How does it relate to `lib/'?
This new name was chosen based on the final installation directory of its
(main) contents: the executables of the programs within this directory are
installed in `prefix/bin/', similar to how the libraries (in the top level
`lib/' directory) are installed in `prefix/lib/'.
---
ChangeLog | 250 +++++++++++++-------------
Makefile.am | 30 ++--
{src => bin}/TEMPLATE/Makefile.am | 0
{src => bin}/TEMPLATE/TEMPLATE.c | 0
{src => bin}/TEMPLATE/TEMPLATE.h | 0
{src => bin}/TEMPLATE/args.h | 0
{src => bin}/TEMPLATE/astTEMPLATE.conf | 0
{src => bin}/TEMPLATE/cite.h | 0
{src => bin}/TEMPLATE/main.c | 0
{src => bin}/TEMPLATE/main.h | 0
{src => bin}/TEMPLATE/ui.c | 0
{src => bin}/TEMPLATE/ui.h | 0
{src => bin}/arithmetic/Makefile.am | 0
{src => bin}/arithmetic/args.h | 0
{src => bin}/arithmetic/arithmetic.c | 0
{src => bin}/arithmetic/arithmetic.h | 0
{src => bin}/arithmetic/astarithmetic.conf | 0
{src => bin}/arithmetic/cite.h | 0
{src => bin}/arithmetic/main.c | 0
{src => bin}/arithmetic/main.h | 0
{src => bin}/arithmetic/ui.c | 0
{src => bin}/arithmetic/ui.h | 0
{src => bin}/convertt/Makefile.am | 0
{src => bin}/convertt/args.h | 0
{src => bin}/convertt/astconvertt.conf | 0
{src => bin}/convertt/cite.h | 0
{src => bin}/convertt/convertt.c | 0
{src => bin}/convertt/convertt.h | 0
{src => bin}/convertt/eps.c | 0
{src => bin}/convertt/eps.h | 0
{src => bin}/convertt/jpeg.c | 0
{src => bin}/convertt/jpeg.h | 0
{src => bin}/convertt/main.c | 0
{src => bin}/convertt/main.h | 0
{src => bin}/convertt/ui.c | 0
{src => bin}/convertt/ui.h | 0
{src => bin}/convolve/Makefile.am | 0
{src => bin}/convolve/args.h | 0
{src => bin}/convolve/astconvolve.conf | 0
{src => bin}/convolve/cite.h | 0
{src => bin}/convolve/convolve.c | 0
{src => bin}/convolve/convolve.h | 0
{src => bin}/convolve/main.c | 0
{src => bin}/convolve/main.h | 0
{src => bin}/convolve/ui.c | 0
{src => bin}/convolve/ui.h | 0
{src => bin}/cosmiccal/Makefile.am | 0
{src => bin}/cosmiccal/args.h | 0
{src => bin}/cosmiccal/astcosmiccal.conf | 0
{src => bin}/cosmiccal/cite.h | 0
{src => bin}/cosmiccal/cosmiccal.c | 0
{src => bin}/cosmiccal/cosmiccal.h | 0
{src => bin}/cosmiccal/main.c | 0
{src => bin}/cosmiccal/main.h | 0
{src => bin}/cosmiccal/ui.c | 0
{src => bin}/cosmiccal/ui.h | 0
{src => bin}/header/Makefile.am | 0
{src => bin}/header/args.h | 0
{src => bin}/header/astheader.conf | 0
{src => bin}/header/cite.h | 0
{src => bin}/header/header.c | 0
{src => bin}/header/header.h | 0
{src => bin}/header/main.c | 0
{src => bin}/header/main.h | 0
{src => bin}/header/ui.c | 0
{src => bin}/header/ui.h | 0
{src => bin}/imgcrop/Makefile.am | 0
{src => bin}/imgcrop/args.h | 0
{src => bin}/imgcrop/astimgcrop.conf | 0
{src => bin}/imgcrop/cite.h | 0
{src => bin}/imgcrop/crop.c | 0
{src => bin}/imgcrop/crop.h | 0
{src => bin}/imgcrop/imgcrop.c | 0
{src => bin}/imgcrop/imgcrop.h | 0
{src => bin}/imgcrop/main.c | 0
{src => bin}/imgcrop/main.h | 0
{src => bin}/imgcrop/ui.c | 0
{src => bin}/imgcrop/ui.h | 0
{src => bin}/imgcrop/wcsmode.c | 0
{src => bin}/imgcrop/wcsmode.h | 0
{src => bin}/imgstat/Makefile.am | 0
{src => bin}/imgstat/args.h | 0
{src => bin}/imgstat/astimgstat.conf | 0
{src => bin}/imgstat/cite.h | 0
{src => bin}/imgstat/imgstat.c | 0
{src => bin}/imgstat/imgstat.h | 0
{src => bin}/imgstat/main.c | 0
{src => bin}/imgstat/main.h | 0
{src => bin}/imgstat/ui.c | 0
{src => bin}/imgstat/ui.h | 0
{src => bin}/imgwarp/Makefile.am | 0
{src => bin}/imgwarp/args.h | 0
{src => bin}/imgwarp/astimgwarp.conf | 0
{src => bin}/imgwarp/cite.h | 0
{src => bin}/imgwarp/imgwarp.c | 0
{src => bin}/imgwarp/imgwarp.h | 0
{src => bin}/imgwarp/main.c | 0
{src => bin}/imgwarp/main.h | 0
{src => bin}/imgwarp/ui.c | 0
{src => bin}/imgwarp/ui.h | 0
{src => bin}/mkcatalog/Makefile.am | 0
{src => bin}/mkcatalog/args.h | 0
{src => bin}/mkcatalog/astmkcatalog.conf | 0
{src => bin}/mkcatalog/cite.h | 0
{src => bin}/mkcatalog/columns.c | 0
{src => bin}/mkcatalog/columns.h | 0
{src => bin}/mkcatalog/main.c | 0
{src => bin}/mkcatalog/main.h | 0
{src => bin}/mkcatalog/mkcatalog.c | 2 +-
{src => bin}/mkcatalog/mkcatalog.h | 0
{src => bin}/mkcatalog/ui.c | 0
{src => bin}/mkcatalog/ui.h | 0
{src => bin}/mknoise/Makefile.am | 0
{src => bin}/mknoise/args.h | 0
{src => bin}/mknoise/astmknoise.conf | 0
{src => bin}/mknoise/cite.h | 0
{src => bin}/mknoise/main.c | 0
{src => bin}/mknoise/main.h | 0
{src => bin}/mknoise/mknoise.c | 0
{src => bin}/mknoise/mknoise.h | 0
{src => bin}/mknoise/ui.c | 0
{src => bin}/mknoise/ui.h | 0
{src => bin}/mkprof/Makefile.am | 0
{src => bin}/mkprof/args.h | 0
{src => bin}/mkprof/astmkprof.conf | 0
{src => bin}/mkprof/cite.h | 0
{src => bin}/mkprof/main.c | 0
{src => bin}/mkprof/main.h | 0
{src => bin}/mkprof/mkprof.c | 0
{src => bin}/mkprof/mkprof.h | 0
{src => bin}/mkprof/oneprofile.c | 0
{src => bin}/mkprof/oneprofile.h | 0
{src => bin}/mkprof/profiles.c | 0
{src => bin}/mkprof/profiles.h | 0
{src => bin}/mkprof/ui.c | 0
{src => bin}/mkprof/ui.h | 0
{src => bin}/noisechisel/Makefile.am | 0
{src => bin}/noisechisel/args.h | 0
{src => bin}/noisechisel/astnoisechisel.conf | 0
{src => bin}/noisechisel/binary.c | 0
{src => bin}/noisechisel/binary.h | 0
{src => bin}/noisechisel/cite.h | 0
{src => bin}/noisechisel/clumps.c | 0
{src => bin}/noisechisel/clumps.h | 0
{src => bin}/noisechisel/detection.c | 0
{src => bin}/noisechisel/detection.h | 0
{src => bin}/noisechisel/label.c | 0
{src => bin}/noisechisel/label.h | 0
{src => bin}/noisechisel/main.c | 0
{src => bin}/noisechisel/main.h | 0
{src => bin}/noisechisel/noisechisel.c | 0
{src => bin}/noisechisel/noisechisel.h | 0
{src => bin}/noisechisel/segmentation.c | 0
{src => bin}/noisechisel/segmentation.h | 0
{src => bin}/noisechisel/sky.c | 0
{src => bin}/noisechisel/sky.h | 0
{src => bin}/noisechisel/thresh.c | 0
{src => bin}/noisechisel/thresh.h | 0
{src => bin}/noisechisel/ui.c | 0
{src => bin}/noisechisel/ui.h | 0
{src => bin}/subtractsky/Makefile.am | 0
{src => bin}/subtractsky/args.h | 0
{src => bin}/subtractsky/astsubtractsky.conf | 0
{src => bin}/subtractsky/cite.h | 0
{src => bin}/subtractsky/main.c | 0
{src => bin}/subtractsky/main.h | 0
{src => bin}/subtractsky/subtractsky.c | 0
{src => bin}/subtractsky/subtractsky.h | 0
{src => bin}/subtractsky/ui.c | 0
{src => bin}/subtractsky/ui.h | 0
{src => bin}/table/Makefile.am | 0
{src => bin}/table/args.h | 0
{src => bin}/table/asttable.conf | 0
{src => bin}/table/cite.h | 0
{src => bin}/table/main.c | 0
{src => bin}/table/main.h | 0
{src => bin}/table/table.c | 0
{src => bin}/table/table.h | 0
{src => bin}/table/ui.c | 0
{src => bin}/table/ui.h | 0
configure.ac | 28 +--
doc/Makefile.am | 28 +--
doc/gnuastro.texi | 24 +--
genauthors | 34 ++--
tests/arithmetic/onlynumbers.sh | 2 +-
tests/arithmetic/or.sh | 2 +-
tests/arithmetic/snimage.sh | 2 +-
tests/arithmetic/where.sh | 2 +-
tests/convertt/blankch.sh | 2 +-
tests/convertt/fitstojpeg.sh | 2 +-
tests/convertt/fitstojpegcmyk.sh | 2 +-
tests/convertt/fitstopdf.sh | 2 +-
tests/convertt/fitstotxt.sh | 2 +-
tests/convertt/jpegtofits.sh | 2 +-
tests/convertt/jpegtotxt.sh | 2 +-
tests/convolve/frequency.sh | 2 +-
tests/convolve/spatial.sh | 2 +-
tests/cosmiccal/simpletest.sh | 2 +-
tests/during-dev.sh | 4 +-
tests/header/delete.sh | 2 +-
tests/header/print.sh | 2 +-
tests/header/update.sh | 2 +-
tests/header/write.sh | 2 +-
tests/imgcrop/imgcat.sh | 2 +-
tests/imgcrop/imgoutpolygon.sh | 2 +-
tests/imgcrop/imgpolygon.sh | 2 +-
tests/imgcrop/radec.sh | 2 +-
tests/imgcrop/section.sh | 2 +-
tests/imgcrop/wcscat.sh | 2 +-
tests/imgcrop/wcspolygon.sh | 2 +-
tests/imgcrop/xcyc.sh | 2 +-
tests/imgcrop/xcycnoblank.sh | 2 +-
tests/imgstat/basicstats.sh | 2 +-
tests/imgwarp/homographic.sh | 2 +-
tests/imgwarp/imgwarp_scale.sh | 2 +-
tests/mkcatalog/aperturephot.sh | 2 +-
tests/mkcatalog/simple.sh | 2 +-
tests/mknoise/addnoise.sh | 2 +-
tests/mkprof/ellipticalmasks.sh | 2 +-
tests/mkprof/inputascanvas.sh | 2 +-
tests/mkprof/mosaic1.sh | 2 +-
tests/mkprof/mosaic2.sh | 2 +-
tests/mkprof/mosaic3.sh | 2 +-
tests/mkprof/mosaic4.sh | 2 +-
tests/mkprof/radeccat.sh | 2 +-
tests/noisechisel/noisechisel.sh | 2 +-
tests/prepconf.sh | 2 +-
tests/subtractsky/subtractsky.sh | 2 +-
tests/table/asciitobinary.sh | 2 +-
tests/table/binarytoascii.sh | 2 +-
230 files changed, 245 insertions(+), 245 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5b2dc9f..6de0b71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,7 +31,7 @@
2015-10-18 Mosè Giordano <address@hidden>
- * src/imgcrop/imgcrop.c (imgcrop): Do not use modefunction to set
+ * bin/imgcrop/imgcrop.c (imgcrop): Do not use modefunction to set
the function, run the functions manually instead. Fixes
bug#45380.
@@ -42,15 +42,15 @@
* doc/forwebpage.sh: Use canonical path for bash shell.
- * doc/plotsrc/conversions.sh: Ditto.
+ * doc/plotbin/conversions.sh: Ditto.
2015-10-02 Mohammad Akhlaghi <address@hidden>
- * src/noisechisel/noisechisel.c (makeoutput): Added a "raw" term
+ * bin/noisechisel/noisechisel.c (makeoutput): Added a "raw" term
in the comments of the noise statistics so emphasize that this is
from the raw mesh grid and not the interpolated and smoothed grid.
- * src/mkcatalog/mkcatalog.c (makeoutput): As explained below.
+ * bin/mkcatalog/mkcatalog.c (makeoutput): As explained below.
* doc/gnuastro.texi (Depth and limiting magnitude): Changed the
sigma which representes depth from the maximum to the median. The
@@ -61,7 +61,7 @@
2015-10-01 Mohammad Akhlaghi <address@hidden>
- * src/imgcrop/ui.c (checkifset): Removed the hstartwcs and hendwcs
+ * bin/imgcrop/ui.c (checkifset): Removed the hstartwcs and hendwcs
options as mandatory arguments.
* lib/fitsarrayvv.c (readfitswcs): Now applies the hstartwcs and
@@ -77,7 +77,7 @@
explanations in for the depth and limiting magnitude to be more
realistic.
- * src/mkcatalog/mkcatalog.c (makeoutput): Removed the limiting
+ * bin/mkcatalog/mkcatalog.c (makeoutput): Removed the limiting
magnitude calculation that was previously defined since it's
physical meaning is very unclear (it was mainly put as a
test). Also changed the surface brightness limit to a per-pixel
@@ -86,39 +86,39 @@
2015-09-17 Mohammad Akhlaghi <address@hidden>
- * src/mkprof/mkprof.c (mkprof): Only print a log file if the
+ * bin/mkprof/mkprof.c (mkprof): Only print a log file if the
`--nolog' option is not called.
- * src/imgcrop/imgcrop.c (imgcrop): Only print a log file if the
+ * bin/imgcrop/imgcrop.c (imgcrop): Only print a log file if the
`--nolog' option is not called.
- * src/mkprof/main.h (mkprofparams): Removed the p->dir0file1
+ * bin/mkprof/main.h (mkprofparams): Removed the p->dir0file1
parameter from the main structure.
* tests/mkprof/mosaic1.sh: Corrected the name of the first output
for the new individual name configuration (where the output file
name is suffixed to the row number).
- * src/mkprof/ui.c (sanitycheck): Now everything based on the
+ * bin/mkprof/ui.c (sanitycheck): Now everything based on the
situation the basic information for the next steps is set here.
- * src/mkprof/mkprof.c (saveindividual): Removed the name checking
+ * bin/mkprof/mkprof.c (saveindividual): Removed the name checking
here. All the necessary information is now set in ui.c.
2015-09-13 Mohammad Akhlaghi <address@hidden>
- * src/imgwarp/imgwarp.c (imgwarponthread): Now calculates the
+ * bin/imgwarp/imgwarp.c (imgwarponthread): Now calculates the
fraction of area that is blank (NaN) and if that fraction is
larger than a user defined value, then the output pixel will be
blank. Before the blank fraction was ignored.
- * src/imgstat/imgstat.c (reportsimplestats): Now uses the value to
+ * bin/imgstat/imgstat.c (reportsimplestats): Now uses the value to
the `--mirrordist' option instead of the fixed value of 1.5.
(reportsimplestats): Report the `NOT ACCURATE' warning in a
separate line to make reading by AWK easier, also removed comma
between outputs for the same reason.
- * src/*/ui.c (readconfig): Now uses macros for common options.
+ * bin/*/ui.c (readconfig): Now uses macros for common options.
(printvalues): Similarly uses macros for common options.
* lib/statistics.c (sigmaclip_converge): Removed commas between
@@ -136,17 +136,17 @@
2015-08-16 Mohammad Akhlaghi <address@hidden>
- * src/noisechisel/thresh.c (snthresh): The check on the number of
+ * bin/noisechisel/thresh.c (snthresh): The check on the number of
objects in finding the S/N threshold is now done before sorting
the S/N table.
- * src/convolve/convolve.c (removepaddingcorrectroundoff): When the
+ * bin/convolve/convolve.c (removepaddingcorrectroundoff): When the
maximum radius is smaller than the input images, then the final
kernel will be shrinked to have no only-zero column or row.
2015-08-05 Mohammad Akhlaghi <address@hidden>
- * src/convolve/convolve.c (frequencyconvolve): Divide the arrays
+ * bin/convolve/convolve.c (frequencyconvolve): Divide the arrays
when the kernel should be made, multiply them when convolution is
to be done.
(frequencyconvolve): When in deconvolution mode, it will go to
@@ -154,22 +154,22 @@
2015-07-31 Mohammad Akhlaghi <address@hidden>
- * src/convolve/convolve.c (makepaddedcomplex): Added a check to
+ * bin/convolve/convolve.c (makepaddedcomplex): Added a check to
make the padded image size an even number in both dimensions by
adding one pixel if it is odd. This was done because FFT
operations work much faster on even sized arrays.
2015-07-22 Mohammad Akhlaghi <address@hidden>
- * src/noisechisel/thresh.c (snthresh): Had mistakenly used
+ * bin/noisechisel/thresh.c (snthresh): Had mistakenly used
`p->detquant', for both detection and segmentation! This is now
corrected.
- * src/mkcatalog/mkcatalog.c (secondpass): Sets the river flux to
+ * bin/mkcatalog/mkcatalog.c (secondpass): Sets the river flux to
Sky for when the grown clumps are used, see the explanation
bellow.
- * src/mkcatalog/columns.c (brightnessmag): Corrected the
+ * bin/mkcatalog/columns.c (brightnessmag): Corrected the
definition of brightness. It was incorrectly dividing the total
brightness by the area when the user asked for brightness.
(sncol): Can now work accurately when grown clumps are also
@@ -179,10 +179,10 @@
2015-07-18 Mohammad Akhlaghi <address@hidden>
- * src/noisechisel/segmentation.c (nextavailablelabel): Now
+ * bin/noisechisel/segmentation.c (nextavailablelabel): Now
accounts for the `--grownclumps' option.
- * src/noisechisel/args.h (options): Corrected the type of output
+ * bin/noisechisel/args.h (options): Corrected the type of output
for `--gthresh'. I had forgot to include any for it!
2015-07-17 Mohammad Akhlaghi <address@hidden>
@@ -191,13 +191,13 @@
pixelsteradians. Changed the units to arcsec^2 because it is more
useful.
- * src/noisechisel/detection.c (detlabelsn): Now using a new sum of
+ * bin/noisechisel/detection.c (detlabelsn): Now using a new sum of
pixel values for flux weighted center of profile. The values are
stored as one column in the
2015-07-07 Mohammad Akhlaghi <address@hidden>
- * src/mkcatalog/mkcatalog.c (firstpass): Use only positive (after
+ * bin/mkcatalog/mkcatalog.c (firstpass): Use only positive (after
subtracting sky) fluxes as weights for the flux weighted
center. Also calculate the geometric center (irrespective of
flux), so in case there are no positive pixels, the geometric
@@ -219,8 +219,8 @@
(makeoutput): The magnitude and S/N information is printed even if
the user has not asked for magnitudes and S/Ns.
- * src/mkcatalog/columns.c (sncol): Renamed variables to fit the
- clumpsntable function in src/noisechisel/clumps.c. Also, the river
+ * bin/mkcatalog/columns.c (sncol): Renamed variables to fit the
+ clumpsntable function in bin/noisechisel/clumps.c. Also, the river
flux is subtracted here, not before.
* lib/fitsarrayvv.c: The numblank variable did not actually store
@@ -231,7 +231,7 @@
2015-07-06 Mohammad Akhlaghi <address@hidden>
- * src/noisechisel/noisechisel.c (noisechisel): After dilation, 4
+ * bin/noisechisel/noisechisel.c (noisechisel): After dilation, 4
connectivity was used to find the labels of the connected
components. However, when we are looking around the river pixels
in the segmentation process, we are looking in their 8-connected
@@ -241,7 +241,7 @@
clump that is touching it. It took me several frustrating hours to
find this very simple bug!
- * src/noisechisel/clumps.c (oversegment): NaN (masked) pixels are
+ * bin/noisechisel/clumps.c (oversegment): NaN (masked) pixels are
no longer fed into this function. So the conditions to check for
them, especially in setting the top index are removed.
(getclumpinfo): Now uses a different number for the sum of flux
@@ -254,11 +254,11 @@
2015-07-05 Mohammad Akhlaghi <address@hidden>
- * src/mkcatalog/columns.c (brightnessfluxmag): Previously
+ * bin/mkcatalog/columns.c (brightnessfluxmag): Previously
fluxmag. Now this function gives the brightness, flux and
magnitude depending on its input parameters.
- * src/mkcatalog/args.h (options): Corrected all usage of "flux"
+ * bin/mkcatalog/args.h (options): Corrected all usage of "flux"
and "brightness".
* doc/gnuastro.texi: Corrected all usage of "flux" and
@@ -273,29 +273,29 @@
2015-07-02 Mohammad Akhlaghi <address@hidden>
- * src/mkcatalog/mkcatalog.c (firstpass): Now accounts for blank
+ * bin/mkcatalog/mkcatalog.c (firstpass): Now accounts for blank
labeled pixels.
(setcpscorr): Now finds both the minimum and maximum of the STD,
maximum for finding the 5sigma magnitude.
- * src/mkcatalog/main.h (CATUNITMAG): Changed unit for magnitudes.
+ * bin/mkcatalog/main.h (CATUNITMAG): Changed unit for magnitudes.
2015-06-26 Mohammad Akhlaghi <address@hidden>
- * src/noisechisel/thresh.c (qthreshonmesh): Only sort and find the
+ * bin/noisechisel/thresh.c (qthreshonmesh): Only sort and find the
quantile if there actually is any pixels!
(applydetectionthresholdskysub): Now accounts for blank pixels.
- * src/noisechisel/segmentation.c (segmentation): Now only works on
+ * bin/noisechisel/segmentation.c (segmentation): Now only works on
non-blank pixels.
- * src/noisechisel/label.c (BF_concmp): Now accounts for blank
+ * bin/noisechisel/label.c (BF_concmp): Now accounts for blank
pixels in both unsigned char and long arrays.
(labareas): Accounts for blank pixels.
(removesmallarea_relabel): Accounts for blank pixels.
(labindexs): Accounts for blank pixels.
- * src/noisechisel/detection.c (detlabelsn): Now also removes
+ * bin/noisechisel/detection.c (detlabelsn): Now also removes
detections in the sky area that cover a detection after filling
holes.
(removefalsedetections): Changed to applydetsn.
@@ -311,7 +311,7 @@
(dbytolaboverlap): Now accounts for masked unsigned char and long
arrays.
- * src/noisechisel/clumps.c (clumpsntableonmesh): Previously
+ * bin/noisechisel/clumps.c (clumpsntableonmesh): Previously
clumpsnthreshonmesh. Moved all the countings and conditionals to
another function to find the S/N threshold from one distribution
over the image and not in the large meshs.
@@ -320,7 +320,7 @@
S/N threshold using a fixed function for both detection and
segmentation (snthresh in thresh.c).
- * src/noisechisel/binary.c: The fixed value of 2 is changed
+ * bin/noisechisel/binary.c: The fixed value of 2 is changed
BINARYNAN which is defined in binary.h. This makes managing the
special values to use more easy, especially now that FITSBYTEBLANK
is also being used from fitsarrayvv.h.
@@ -330,7 +330,7 @@
accounts for blank pixels and completely ignores them.
(fillboundedholes): Similar to fh_makeinv.
- * src/noisechisel/: The mesh based signal to noise calculations
+ * bin/noisechisel/: The mesh based signal to noise calculations
are now gone and one value is calculated for the full image. This
allows for much better accuracy. Most of the steps in NoiseChisel
were modified to take this into account. Also blank pixels are now
@@ -341,15 +341,15 @@
2015-06-25 Mohammad Akhlaghi <address@hidden>
- * src/imgcrop/args.h (options): Changed inpolygon to
+ * bin/imgcrop/args.h (options): Changed inpolygon to
outpolygon. Everywhere that inpolygon appeared, it is now
outpolygon.
- * src/imgcrop/wcsmode.c (wcscheckprepare): Check for both axises
+ * bin/imgcrop/wcsmode.c (wcscheckprepare): Check for both axises
having the same pixel scale now incorporates floating point
errors.
- * src/imgcrop/crop.c (imgpolygonflpixel): Now gets the vertices
+ * bin/imgcrop/crop.c (imgpolygonflpixel): Now gets the vertices
and their number instead of the cropparams structure. This was
done to make it be more general and use it in both Image mode and
WCS mode.
@@ -362,7 +362,7 @@
function. This was done to be a generic check, for all kinds of
input, not just the mask.
- * src/ : All the functions to make a copy of an input and print
+ * bin/ : All the functions to make a copy of an input and print
string values were changed. These were mainly in ui.c and args.h
for each program. Until now, for each option, I would allocate,
check and set the proper values, but now, I wrote a small function
@@ -371,17 +371,17 @@
2015-06-12 Mohammad Akhlaghi <address@hidden>
- * src/subtractsky/args.h (options): Removed the
+ * bin/subtractsky/args.h (options): Removed the
--checkinterpolation option.
- * src/subtractsky/subtractsky.c (subtractsky): Similar to below.
+ * bin/subtractsky/subtractsky.c (subtractsky): Similar to below.
- * src/noisechisel/thresh.c (findapplyqthreshold): Similar to
+ * bin/noisechisel/thresh.c (findapplyqthreshold): Similar to
below.
- * src/noisechisel/sky.c (findavestdongrid): Similar to below.
+ * bin/noisechisel/sky.c (findavestdongrid): Similar to below.
- * src/noisechisel/detection.c (findsnthreshongrid): Now using
+ * bin/noisechisel/detection.c (findsnthreshongrid): Now using
meshvaluefile from mesh.h instead of checking its self. Once the
--meshbasedcheck was added, doing all the checks in each function
was too long and repetative. So I just made this function to do
@@ -389,7 +389,7 @@
2015-06-11 Mohammad Akhlaghi <address@hidden>
- * src/noisechisel/args.h (options): `minbfrac' and `minnumfalse'
+ * bin/noisechisel/args.h (options): `minbfrac' and `minnumfalse'
options moved under the `Input' category from the detections
category. This move was because these two options are used by both
the detection and segmentation steps and thus keeping them under
@@ -399,12 +399,12 @@
2015-06-10 Mohammad Akhlaghi <address@hidden>
- * src/mknoise/astmknoise.conf: Default background magnitude
+ * bin/mknoise/astmknoise.conf: Default background magnitude
changed to -10 and zeropoint to 0.0.
2015-06-09 Mohammad Akhlaghi <address@hidden>
- * src/noisechisel/clumps.c: All functions now use the
+ * bin/noisechisel/clumps.c: All functions now use the
clumpsthreadparams structure as input instead of a list of
arguments.
(oversegment): ctp->topinds now keeps a good value when the clump
@@ -415,41 +415,41 @@
2015-06-08 Mohammad Akhlaghi <address@hidden>
- * src/noisechisel/thresh.c (applydetectionthresholdskysub):
+ * bin/noisechisel/thresh.c (applydetectionthresholdskysub):
Similar to below, uses p->imgss for sky subtracted image.
- * src/noisechisel/sky.c (subtractskyimg): Does not touch the input
+ * bin/noisechisel/sky.c (subtractskyimg): Does not touch the input
image, puts the sky subtracted value in p->imgss.
- * src/noisechisel/noisechisel.c (noisechisel): Removed the
+ * bin/noisechisel/noisechisel.c (noisechisel): Removed the
allocation of the mesh structures to ui.c
- * src/noisechisel/detection.c (detlabelsn): Uses p->imgss for the
+ * bin/noisechisel/detection.c (detlabelsn): Uses p->imgss for the
sky subtracted image.
2015-06-07 Mohammad Akhlaghi <address@hidden>
- * src/mkprof/oneprofile.c (randompoints): The random number
+ * bin/mkprof/oneprofile.c (randompoints): The random number
generator is now allocated (cloned) with the build thread and for
every profile the seed is independently set once. Before each
pixel would allocate and seed the random number generator
individually!
- * src/mkprof/astmkprof.conf: Changed default zeropoint magnitude
+ * bin/mkprof/astmkprof.conf: Changed default zeropoint magnitude
to 0.00.
- * src/mknoise/mknoise.c (mknoise): moved the random number
+ * bin/mknoise/mknoise.c (mknoise): moved the random number
generator to ui.c to make things faster and more easier to
understand.
- * src/mknoise/args.h (argp_option): Removed the `backgroundinmean'
+ * bin/mknoise/args.h (argp_option): Removed the `backgroundinmean'
option, because I couldn't figure out what use it would have. If
it is needed we can add it again later!
- * src/imgstat/args.h (argp_option): Changed `binonzero' option to
+ * bin/imgstat/args.h (argp_option): Changed `binonzero' option to
the more general `onebinvalue' option.
- * src/convolve/convolve.c (removepaddingcorrectroundoff):
+ * bin/convolve/convolve.c (removepaddingcorrectroundoff):
Corrected bug: would return *d in both cases! It is corrected now.
2015-06-06 Mohammad Akhlaghi <address@hidden>
@@ -461,12 +461,12 @@
mature enough but now it seems to be very nicely working. All the
functions that used this were also changed.
- * src/noisechisel/astnoisechisel.conf: Changed default
+ * bin/noisechisel/astnoisechisel.conf: Changed default
lastmeshfrac to 0.51 from 0.6.
2015-06-04 Mohammad Akhlaghi <address@hidden>
- * src/subtractsky/subtractsky.c (avestdonthread): No more need for
+ * bin/subtractsky/subtractsky.c (avestdonthread): No more need for
setnan. Since all the meshes are initialized to NaN anyway.
* lib/mesh.c: Previously, the garrays would be allocated and freed
@@ -482,7 +482,7 @@
2015-06-03 Mohammad Akhlaghi <address@hidden>
- * src/noisechisel/astnoisechisel.conf: Changed default dthresh to
+ * bin/noisechisel/astnoisechisel.conf: Changed default dthresh to
-0.1.
* lib/statistics.c (histogram): Corrected the function. Until now,
@@ -514,7 +514,7 @@
2015-05-27 Mohammad Akhlaghi <address@hidden>
- * src/convolve/args.h (options): Remove the `noedgecorrection'
+ * bin/convolve/args.h (options): Remove the `noedgecorrection'
option. Since it was useless. Also changed the old short option
for spatial (`s') to `p'. Because `s' is now needed for the mesh
size option. Also changed the old short option for khdu (`H') to
@@ -535,7 +535,7 @@
2015-05-24 Mohammad Akhlaghi <address@hidden>
- * src/imgcrop/crop.c (sectionparser): When only a `*' was given
+ * bin/imgcrop/crop.c (sectionparser): When only a `*' was given
with no positive or negative following number, a segmentation
fault would happen. This bug is now fixed.
@@ -547,7 +547,7 @@
* lib/mode.c (modesymmetricity): Corrrected topi to account for
the case when 2*mi is larger than size.
- * src/subtractsky/args.h: --numnearest and --kernelwidth moved to
+ * bin/subtractsky/args.h: --numnearest and --kernelwidth moved to
the `Mesh grid' part of the help output. --checksmoothing and
--checkinterpolation also moved to the `Mesh grid' part.
@@ -565,12 +565,12 @@
2015-05-18 Mohammad Akhlaghi <address@hidden>
- * src/convolve/convolve.c (complextoreal): Changed the two states
+ * bin/convolve/convolve.c (complextoreal): Changed the two states
to three to add only conerting the real part of an array.
2015-05-15 Mohammad Akhlaghi <address@hidden>
- * src/convolve/convolve.c (removepaddingcorrectroundoff): The
+ * bin/convolve/convolve.c (removepaddingcorrectroundoff): The
limit to check for floating point errors is now set by a macro and
changed to 1e-10 instead of 1e-17.
@@ -608,7 +608,7 @@
2015-05-05 Mohammad Akhlaghi <address@hidden>
- * src/subtractsky/ui.c (preparearrays): Moved the function that
+ * bin/subtractsky/ui.c (preparearrays): Moved the function that
reads any input as float and incorporates the mask into it.
* include/fixedstringmacros.h (MOREHELPINFO): Removed long
@@ -625,32 +625,32 @@
2015-04-24 Mohammad Akhlaghi <address@hidden>
- * src/mkprof/oneprofile.c (makepixbypix): When in circumference
+ * bin/mkprof/oneprofile.c (makepixbypix): When in circumference
mode, if the truncation radius is reached, it is filled with the
profile value. This is done so very elongated profiles can at
least show a one pixel circumference.
- * src/mkprof/main.h (MINCIRCUMWIDTH): Changed to 0.5f.
+ * bin/mkprof/main.h (MINCIRCUMWIDTH): Changed to 0.5f.
* lib/checkset.c (doublelvalue): Corrected bad value report when
options are called.
2015-04-21 Mohammad Akhlaghi <address@hidden>
- * src/mkprof/ui.c (freeandreport): Avoided double-free by only
+ * bin/mkprof/ui.c (freeandreport): Avoided double-free by only
freeing mergeedimgname when it is not equal to output.
- * src/mkprof/oneprofile.c (makepixbypix): Will only do monte carlo
+ * bin/mkprof/oneprofile.c (makepixbypix): Will only do monte carlo
integration when the profile is not a constant value.
(setprofparams): Changed the function of point to `Fixed'.
- * src/mkprof/mkprof.c (write): Changed to replace and read from an
+ * bin/mkprof/mkprof.c (write): Changed to replace and read from an
image and add profiles on that.
* lib/statistics.c: All float and double functions can now work
with NaN too.
- * src/mkprof/ui.c (setparams): Catalog is always given, no need to
+ * bin/mkprof/ui.c (setparams): Catalog is always given, no need to
check.
* doc/gnuastro.texi: Removed all "Future updates ..." subsections
@@ -665,11 +665,11 @@
2015-04-06 Mohammad Akhlaghi <address@hidden>
- * src/mkprof/mkprof.c: Corrected condition when a thread would
+ * bin/mkprof/mkprof.c: Corrected condition when a thread would
finish `build' profiles but the last set of its profiles wouldn't
pass onto `write'.
- * src/mknoise/: Changed background flux unit to magnitudes, not
+ * bin/mknoise/: Changed background flux unit to magnitudes, not
flux.
* THANKS: Added institutions which also helped.
@@ -691,7 +691,7 @@
(arraytofitsimg): Added numblank as a variable, to deal with blank
pixels.
- * src/imgwarp/imgwarp.c (imgwarppreparations): Coorected the point
+ * bin/imgwarp/imgwarp.c (imgwarppreparations): Coorected the point
(1.0f, 1.0f) to be center of the first pixel, not zero.
* lib/fitsarrayvv.c (copyrightandend): Removed the Copyright
@@ -700,15 +700,15 @@
2015-04-01 Mohammad Akhlaghi <address@hidden>
- * src/imgwarp/args.h: Temporarily removed the wrap option. Will be
+ * bin/imgwarp/args.h: Temporarily removed the wrap option. Will be
added later.
2015-03-24 Mohammad Akhlaghi <address@hidden>
- * src/imgcrop/ui.c (preparearrays): Aborts if in WCS mode and the
+ * bin/imgcrop/ui.c (preparearrays): Aborts if in WCS mode and the
wcsprm structure could not be started.
- * src/imgcrop/crop.c (firstcropmakearray): Only adds WCS headers
+ * bin/imgcrop/crop.c (firstcropmakearray): Only adds WCS headers
if the wcsprm structure is defined.
* lib/fitsarrayvv.c (readwcs): If any error occurs, a warning
@@ -719,14 +719,14 @@
* tests/convertt/: If libjpeg is not present, the tests will be
skipped.
- * src/convertt/: libjpeg is now optional.
+ * bin/convertt/: libjpeg is now optional.
* configure.ac: Changed libjpeg to an optional requirement. So if
it is not available, Gnuastro can still be built.
2015-03-16 Mohammad Akhlaghi <address@hidden>
- * src/convolve/ui.c (preparearrays): The flip parts was missing a
+ * bin/convolve/ui.c (preparearrays): The flip parts was missing a
-1.
* doc/gnuastro.texi: Changed all `gnuastro' occurrences in the
@@ -734,21 +734,21 @@
2015-03-14 Mohammad Akhlaghi <address@hidden>
- * src/convolve/convolve.c: Added frequency domain convolution.
+ * bin/convolve/convolve.c: Added frequency domain convolution.
2015-03-12 Mohammad Akhlaghi <address@hidden>
- * src/mkprof/ui.c (setparams): Added condition for no output given.
+ * bin/mkprof/ui.c (setparams): Added condition for no output given.
- * src/mkprof/astmkprof.conf: Removed output.
+ * bin/mkprof/astmkprof.conf: Removed output.
- * src/imgcrop/ui.c (sanitycheck): Moved check of reentrancy in
+ * bin/imgcrop/ui.c (sanitycheck): Moved check of reentrancy in
cfitsio to the end so if numthreads is set to 1, there is no
problem.
- * src/convertt/ui.c (sanitycheck): Added check if output is not set.
+ * bin/convertt/ui.c (sanitycheck): Added check if output is not set.
- * src/convertt/astconvertt.conf: Removed output.
+ * bin/convertt/astconvertt.conf: Removed output.
* lib/spatialconvolve.c: First version complete.
@@ -757,7 +757,7 @@
2015-03-11 Mohammad Akhlaghi <address@hidden>
- * src/convolve/: Adding new functions and steps.
+ * bin/convolve/: Adding new functions and steps.
* ./: Copyright transferred to the FSF. Copyright notices in all
files changed.
@@ -790,7 +790,7 @@
2015-03-02 Mohammad Akhlaghi <address@hidden>
- * src/convolve/: Work started on Convolve.
+ * bin/convolve/: Work started on Convolve.
* lib/fitsarrayvv.c: Changed array types from intXX_t to short,
long and LONGLONG. Unfortuantely this is how CFITSIO works.
@@ -827,7 +827,7 @@
2015-02-17 Mohammad Akhlaghi <address@hidden>
- * src/convertt/eps.c: Functions for binary image added.
+ * bin/convertt/eps.c: Functions for binary image added.
* lib/fitsarrayvv.c (nameisfits): Check length.
@@ -845,15 +845,15 @@
2015-02-13 Mohammad Akhlaghi <address@hidden>
- * src/convertt/args.h (argp_options): `convert` changed to
+ * bin/convertt/args.h (argp_options): `convert` changed to
`change`. Since the program name is also convert this could cause
confusions.
* doc/gnuastro.texi (Invoking astconvertt): Option explanations.
- * src/convertt/jpeg.c (savejpeg): Corrected the pixel ordering.
+ * bin/convertt/jpeg.c (savejpeg): Corrected the pixel ordering.
- * src/convertt/convertt.c (doubleto8bit): Find minimum and maximum
+ * bin/convertt/convertt.c (doubleto8bit): Find minimum and maximum
for all colors to set the scale, not just one color.
* lib/fitsarrayvv.c (arraytofitsimg): Will not remove comments.
@@ -869,9 +869,9 @@
2015-02-11 Mohammad Akhlaghi <address@hidden>
- * src/convertt/ui.c (preparearrays): Added.
+ * bin/convertt/ui.c (preparearrays): Added.
- * src/convertt/jpeg.c (preparejpeg): Added.
+ * bin/convertt/jpeg.c (preparejpeg): Added.
* doc/gnuastro.texi (Files): Added chapter
(ConvertType): Added section
@@ -879,7 +879,7 @@
2015-02-08 Mohammad Akhlaghi <address@hidden>
- * src/convertt: Started working on ConvertType.
+ * bin/convertt: Started working on ConvertType.
* lib/checkset.c (intsmallerequalto): Function Added.
@@ -908,19 +908,19 @@
2015-01-19 Mohammad Akhlaghi <address@hidden>
- * src/mkprof/ui.c: Steps for reading and checking WCS parameters
+ * bin/mkprof/ui.c: Steps for reading and checking WCS parameters
added.
- * src/mkprof/oneprofile.c (ispsf): Added for a fixed place to
+ * bin/mkprof/oneprofile.c (ispsf): Added for a fixed place to
check if a profile is a PSF.
(makeoneprofile): Finding mkp->xc and mkp->yc moved here.
- * src/mkprof/mkprof.c (preparewcs): Added.
+ * bin/mkprof/mkprof.c (preparewcs): Added.
(build): Removed finding mkp->xc and mkp->yc.
- * src/mkprof/args.h (argp_option): Added WCS related options.
+ * bin/mkprof/args.h (argp_option): Added WCS related options.
- * src/imgcrop/imgcrop.c (imgcrop): Number of barriers, corrected
+ * bin/imgcrop/imgcrop.c (imgcrop): Number of barriers, corrected
for when the number of jobs was less than the number of threads.
* lib/fitsarrayvv.c (addwcstoheader): Changed the WCS structure to
@@ -933,31 +933,31 @@
2015-01-18 Mohammad Akhlaghi <address@hidden>
- * src/mkprof/mkprof.c (writelog): Added.
+ * bin/mkprof/mkprof.c (writelog): Added.
(write): Completed.
- * src/mkprof/args.h (arg_option): Added `--nomerged`.
+ * bin/mkprof/args.h (arg_option): Added `--nomerged`.
* lib/txtarrayvv.c (doformatting): Added option to use `f` in
printf or `g`.
2015-01-16 Mohammad Akhlaghi <address@hidden>
- * src/mkprof/mkprof.c (builtqueue_addempty): Added.
+ * bin/mkprof/mkprof.c (builtqueue_addempty): Added.
(saveindividual): Added.
(build): Is working until the profile is built.
- * src/mkprof/ellipse.h: Function taken to `box.h`.
+ * bin/mkprof/ellipse.h: Function taken to `box.h`.
- * src/mkprof/ellipse.c: Function taken to `box.c`.
+ * bin/mkprof/ellipse.c: Function taken to `box.c`.
- * src/mkprof/args.h (argp_option): added `--numrandom`, changed
+ * bin/mkprof/args.h (argp_option): added `--numrandom`, changed
`mginimg` to `psfinimg`.
- * src/imgcrop/main.h (imgcropparams): iwidth is now a 2 element
+ * bin/imgcrop/main.h (imgcropparams): iwidth is now a 2 element
array.
- * src/imgcrop/crop.c: Removed `borderfromcenter` and
+ * bin/imgcrop/crop.c: Removed `borderfromcenter` and
`correctflpixels` to `lib/box.c`.
* lib/stats.h: Changed to `statistics.h`, all non-used functions
@@ -984,18 +984,18 @@
2015-01-13 Mohammad Akhlaghi <address@hidden>
- * src/mkprof/ui.c (preparearrays): Added.
+ * bin/mkprof/ui.c (preparearrays): Added.
(setparams): numthreads initialized to configured value.
- * src/mkprof/mkprof.c (build): Added.
+ * bin/mkprof/mkprof.c (build): Added.
(write): Added.
(mkprof): Parallel jobs configured.
- * src/mkprof/ellipse.c: Added
+ * bin/mkprof/ellipse.c: Added
- * src/mkprof/args.h (argp_option): Changed psfprofsinimg to mginimg.
+ * bin/mkprof/args.h (argp_option): Changed psfprofsinimg to mginimg.
- * src/imgcrop/imgcrop.c (imgcrop): Used attrbarrierinit.
+ * bin/imgcrop/imgcrop.c (imgcrop): Used attrbarrierinit.
* lib/astrthreads.c (attrbarrierinit): Added.
@@ -1003,7 +1003,7 @@
2015-01-12 Mohammad Akhlaghi <address@hidden>
- * src/imgcrop/imgcrop.c: Using pthread_barrier_wait for
+ * bin/imgcrop/imgcrop.c: Using pthread_barrier_wait for
synchronizing threads instead of the mutexes and conditional
variables before.
@@ -1037,9 +1037,9 @@
2015-01-06 Mohammad Akhlaghi <address@hidden>
- * src/mockgals/args.h (parse_opt): Removed the check below.
+ * bin/mockgals/args.h (parse_opt): Removed the check below.
- * src/imgcrop/args.h (parse_opt): Removed the check below.
+ * bin/imgcrop/args.h (parse_opt): Removed the check below.
* include/commonargs.h (cparse_opt): Added check for not calling
`--setdirconf` and `--setusrconf` together.
@@ -1049,8 +1049,8 @@
* doc/formath.texi: Added. A set of macros to write equations
nicely in TeX, HTML (using MathJax).
- * src/imgcrop/astrimgcrop.def: renamed to
- src/imgcrop/astrimgcrop.conf.
+ * bin/imgcrop/astrimgcrop.def: renamed to
+ bin/imgcrop/astrimgcrop.conf.
* lib/defaults.c: renamed to include/configfiles.c.
@@ -1086,10 +1086,10 @@
* tests/Makefile.am (AM_TESTS_ENVIRONMENT): Corrected test
environment.
- * src/imgcrop/ui.c (setparams): Moved all similar actions to the
+ * bin/imgcrop/ui.c (setparams): Moved all similar actions to the
CHECKSETDEFAULTS macro in defaults.h
- * src/imgcrop/Makefile.am (AM_CPPFLAGS): New (previously in
+ * bin/imgcrop/Makefile.am (AM_CPPFLAGS): New (previously in
AM_CFLAGS).
* lib/defaults.c (addhomedir): Now returns char *.
diff --git a/Makefile.am b/Makefile.am
index 952fbe6..8a96d06 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -48,49 +48,49 @@ BUILT_SOURCES = $(top_srcdir)/AUTHORS
## problem is internal to gnulib or still persists after all the
## Gnulib tests have been done.
if COND_ARITHMETIC
- MAYBE_ARITHMETIC = src/arithmetic
+ MAYBE_ARITHMETIC = bin/arithmetic
endif
if COND_CONVERTT
- MAYBE_CONVERTT = src/convertt
+ MAYBE_CONVERTT = bin/convertt
endif
if COND_CONVOLVE
- MAYBE_CONVOLVE = src/convolve
+ MAYBE_CONVOLVE = bin/convolve
endif
if COND_COSMICCAL
- MAYBE_COSMICCAL = src/cosmiccal
+ MAYBE_COSMICCAL = bin/cosmiccal
endif
if COND_HEADER
- MAYBE_HEADER = src/header
+ MAYBE_HEADER = bin/header
endif
if COND_IMGCROP
- MAYBE_IMGCROP = src/imgcrop
+ MAYBE_IMGCROP = bin/imgcrop
endif
if COND_IMGSTAT
- MAYBE_IMGSTAT = src/imgstat
+ MAYBE_IMGSTAT = bin/imgstat
endif
if COND_IMGWARP
- MAYBE_IMGWARP = src/imgwarp
+ MAYBE_IMGWARP = bin/imgwarp
endif
if COND_MKCATALOG
- MAYBE_MKCATALOG = src/mkcatalog
+ MAYBE_MKCATALOG = bin/mkcatalog
endif
if COND_MKNOISE
- MAYBE_MKNOISE = src/mknoise
+ MAYBE_MKNOISE = bin/mknoise
endif
if COND_MKPROF
- MAYBE_MKPROF = src/mkprof
+ MAYBE_MKPROF = bin/mkprof
endif
if COND_NOISECHISEL
- MAYBE_NOISECHISEL = src/noisechisel
+ MAYBE_NOISECHISEL = bin/noisechisel
endif
if COND_SUBTRACTSKY
- MAYBE_SUBTRACTSKY = src/subtractsky
+ MAYBE_SUBTRACTSKY = bin/subtractsky
endif
if COND_TABLE
- MAYBE_TABLE = src/table
+ MAYBE_TABLE = bin/table
endif
#if COND_TEMPLATE
-# MAYBE_TEMPLATE = src/TEMPLATE
+# MAYBE_TEMPLATE = bin/TEMPLATE
#endif
if COND_GNULIBCHECK
MAYBE_GNULIBCHECK = bootstrapped/tests
diff --git a/src/TEMPLATE/Makefile.am b/bin/TEMPLATE/Makefile.am
similarity index 100%
rename from src/TEMPLATE/Makefile.am
rename to bin/TEMPLATE/Makefile.am
diff --git a/src/TEMPLATE/TEMPLATE.c b/bin/TEMPLATE/TEMPLATE.c
similarity index 100%
rename from src/TEMPLATE/TEMPLATE.c
rename to bin/TEMPLATE/TEMPLATE.c
diff --git a/src/TEMPLATE/TEMPLATE.h b/bin/TEMPLATE/TEMPLATE.h
similarity index 100%
rename from src/TEMPLATE/TEMPLATE.h
rename to bin/TEMPLATE/TEMPLATE.h
diff --git a/src/TEMPLATE/args.h b/bin/TEMPLATE/args.h
similarity index 100%
rename from src/TEMPLATE/args.h
rename to bin/TEMPLATE/args.h
diff --git a/src/TEMPLATE/astTEMPLATE.conf b/bin/TEMPLATE/astTEMPLATE.conf
similarity index 100%
rename from src/TEMPLATE/astTEMPLATE.conf
rename to bin/TEMPLATE/astTEMPLATE.conf
diff --git a/src/TEMPLATE/cite.h b/bin/TEMPLATE/cite.h
similarity index 100%
rename from src/TEMPLATE/cite.h
rename to bin/TEMPLATE/cite.h
diff --git a/src/TEMPLATE/main.c b/bin/TEMPLATE/main.c
similarity index 100%
rename from src/TEMPLATE/main.c
rename to bin/TEMPLATE/main.c
diff --git a/src/TEMPLATE/main.h b/bin/TEMPLATE/main.h
similarity index 100%
rename from src/TEMPLATE/main.h
rename to bin/TEMPLATE/main.h
diff --git a/src/TEMPLATE/ui.c b/bin/TEMPLATE/ui.c
similarity index 100%
rename from src/TEMPLATE/ui.c
rename to bin/TEMPLATE/ui.c
diff --git a/src/TEMPLATE/ui.h b/bin/TEMPLATE/ui.h
similarity index 100%
rename from src/TEMPLATE/ui.h
rename to bin/TEMPLATE/ui.h
diff --git a/src/arithmetic/Makefile.am b/bin/arithmetic/Makefile.am
similarity index 100%
rename from src/arithmetic/Makefile.am
rename to bin/arithmetic/Makefile.am
diff --git a/src/arithmetic/args.h b/bin/arithmetic/args.h
similarity index 100%
rename from src/arithmetic/args.h
rename to bin/arithmetic/args.h
diff --git a/src/arithmetic/arithmetic.c b/bin/arithmetic/arithmetic.c
similarity index 100%
rename from src/arithmetic/arithmetic.c
rename to bin/arithmetic/arithmetic.c
diff --git a/src/arithmetic/arithmetic.h b/bin/arithmetic/arithmetic.h
similarity index 100%
rename from src/arithmetic/arithmetic.h
rename to bin/arithmetic/arithmetic.h
diff --git a/src/arithmetic/astarithmetic.conf
b/bin/arithmetic/astarithmetic.conf
similarity index 100%
rename from src/arithmetic/astarithmetic.conf
rename to bin/arithmetic/astarithmetic.conf
diff --git a/src/arithmetic/cite.h b/bin/arithmetic/cite.h
similarity index 100%
rename from src/arithmetic/cite.h
rename to bin/arithmetic/cite.h
diff --git a/src/arithmetic/main.c b/bin/arithmetic/main.c
similarity index 100%
rename from src/arithmetic/main.c
rename to bin/arithmetic/main.c
diff --git a/src/arithmetic/main.h b/bin/arithmetic/main.h
similarity index 100%
rename from src/arithmetic/main.h
rename to bin/arithmetic/main.h
diff --git a/src/arithmetic/ui.c b/bin/arithmetic/ui.c
similarity index 100%
rename from src/arithmetic/ui.c
rename to bin/arithmetic/ui.c
diff --git a/src/arithmetic/ui.h b/bin/arithmetic/ui.h
similarity index 100%
rename from src/arithmetic/ui.h
rename to bin/arithmetic/ui.h
diff --git a/src/convertt/Makefile.am b/bin/convertt/Makefile.am
similarity index 100%
rename from src/convertt/Makefile.am
rename to bin/convertt/Makefile.am
diff --git a/src/convertt/args.h b/bin/convertt/args.h
similarity index 100%
rename from src/convertt/args.h
rename to bin/convertt/args.h
diff --git a/src/convertt/astconvertt.conf b/bin/convertt/astconvertt.conf
similarity index 100%
rename from src/convertt/astconvertt.conf
rename to bin/convertt/astconvertt.conf
diff --git a/src/convertt/cite.h b/bin/convertt/cite.h
similarity index 100%
rename from src/convertt/cite.h
rename to bin/convertt/cite.h
diff --git a/src/convertt/convertt.c b/bin/convertt/convertt.c
similarity index 100%
rename from src/convertt/convertt.c
rename to bin/convertt/convertt.c
diff --git a/src/convertt/convertt.h b/bin/convertt/convertt.h
similarity index 100%
rename from src/convertt/convertt.h
rename to bin/convertt/convertt.h
diff --git a/src/convertt/eps.c b/bin/convertt/eps.c
similarity index 100%
rename from src/convertt/eps.c
rename to bin/convertt/eps.c
diff --git a/src/convertt/eps.h b/bin/convertt/eps.h
similarity index 100%
rename from src/convertt/eps.h
rename to bin/convertt/eps.h
diff --git a/src/convertt/jpeg.c b/bin/convertt/jpeg.c
similarity index 100%
rename from src/convertt/jpeg.c
rename to bin/convertt/jpeg.c
diff --git a/src/convertt/jpeg.h b/bin/convertt/jpeg.h
similarity index 100%
rename from src/convertt/jpeg.h
rename to bin/convertt/jpeg.h
diff --git a/src/convertt/main.c b/bin/convertt/main.c
similarity index 100%
rename from src/convertt/main.c
rename to bin/convertt/main.c
diff --git a/src/convertt/main.h b/bin/convertt/main.h
similarity index 100%
rename from src/convertt/main.h
rename to bin/convertt/main.h
diff --git a/src/convertt/ui.c b/bin/convertt/ui.c
similarity index 100%
rename from src/convertt/ui.c
rename to bin/convertt/ui.c
diff --git a/src/convertt/ui.h b/bin/convertt/ui.h
similarity index 100%
rename from src/convertt/ui.h
rename to bin/convertt/ui.h
diff --git a/src/convolve/Makefile.am b/bin/convolve/Makefile.am
similarity index 100%
rename from src/convolve/Makefile.am
rename to bin/convolve/Makefile.am
diff --git a/src/convolve/args.h b/bin/convolve/args.h
similarity index 100%
rename from src/convolve/args.h
rename to bin/convolve/args.h
diff --git a/src/convolve/astconvolve.conf b/bin/convolve/astconvolve.conf
similarity index 100%
rename from src/convolve/astconvolve.conf
rename to bin/convolve/astconvolve.conf
diff --git a/src/convolve/cite.h b/bin/convolve/cite.h
similarity index 100%
rename from src/convolve/cite.h
rename to bin/convolve/cite.h
diff --git a/src/convolve/convolve.c b/bin/convolve/convolve.c
similarity index 100%
rename from src/convolve/convolve.c
rename to bin/convolve/convolve.c
diff --git a/src/convolve/convolve.h b/bin/convolve/convolve.h
similarity index 100%
rename from src/convolve/convolve.h
rename to bin/convolve/convolve.h
diff --git a/src/convolve/main.c b/bin/convolve/main.c
similarity index 100%
rename from src/convolve/main.c
rename to bin/convolve/main.c
diff --git a/src/convolve/main.h b/bin/convolve/main.h
similarity index 100%
rename from src/convolve/main.h
rename to bin/convolve/main.h
diff --git a/src/convolve/ui.c b/bin/convolve/ui.c
similarity index 100%
rename from src/convolve/ui.c
rename to bin/convolve/ui.c
diff --git a/src/convolve/ui.h b/bin/convolve/ui.h
similarity index 100%
rename from src/convolve/ui.h
rename to bin/convolve/ui.h
diff --git a/src/cosmiccal/Makefile.am b/bin/cosmiccal/Makefile.am
similarity index 100%
rename from src/cosmiccal/Makefile.am
rename to bin/cosmiccal/Makefile.am
diff --git a/src/cosmiccal/args.h b/bin/cosmiccal/args.h
similarity index 100%
rename from src/cosmiccal/args.h
rename to bin/cosmiccal/args.h
diff --git a/src/cosmiccal/astcosmiccal.conf b/bin/cosmiccal/astcosmiccal.conf
similarity index 100%
rename from src/cosmiccal/astcosmiccal.conf
rename to bin/cosmiccal/astcosmiccal.conf
diff --git a/src/cosmiccal/cite.h b/bin/cosmiccal/cite.h
similarity index 100%
rename from src/cosmiccal/cite.h
rename to bin/cosmiccal/cite.h
diff --git a/src/cosmiccal/cosmiccal.c b/bin/cosmiccal/cosmiccal.c
similarity index 100%
rename from src/cosmiccal/cosmiccal.c
rename to bin/cosmiccal/cosmiccal.c
diff --git a/src/cosmiccal/cosmiccal.h b/bin/cosmiccal/cosmiccal.h
similarity index 100%
rename from src/cosmiccal/cosmiccal.h
rename to bin/cosmiccal/cosmiccal.h
diff --git a/src/cosmiccal/main.c b/bin/cosmiccal/main.c
similarity index 100%
rename from src/cosmiccal/main.c
rename to bin/cosmiccal/main.c
diff --git a/src/cosmiccal/main.h b/bin/cosmiccal/main.h
similarity index 100%
rename from src/cosmiccal/main.h
rename to bin/cosmiccal/main.h
diff --git a/src/cosmiccal/ui.c b/bin/cosmiccal/ui.c
similarity index 100%
rename from src/cosmiccal/ui.c
rename to bin/cosmiccal/ui.c
diff --git a/src/cosmiccal/ui.h b/bin/cosmiccal/ui.h
similarity index 100%
rename from src/cosmiccal/ui.h
rename to bin/cosmiccal/ui.h
diff --git a/src/header/Makefile.am b/bin/header/Makefile.am
similarity index 100%
rename from src/header/Makefile.am
rename to bin/header/Makefile.am
diff --git a/src/header/args.h b/bin/header/args.h
similarity index 100%
rename from src/header/args.h
rename to bin/header/args.h
diff --git a/src/header/astheader.conf b/bin/header/astheader.conf
similarity index 100%
rename from src/header/astheader.conf
rename to bin/header/astheader.conf
diff --git a/src/header/cite.h b/bin/header/cite.h
similarity index 100%
rename from src/header/cite.h
rename to bin/header/cite.h
diff --git a/src/header/header.c b/bin/header/header.c
similarity index 100%
rename from src/header/header.c
rename to bin/header/header.c
diff --git a/src/header/header.h b/bin/header/header.h
similarity index 100%
rename from src/header/header.h
rename to bin/header/header.h
diff --git a/src/header/main.c b/bin/header/main.c
similarity index 100%
rename from src/header/main.c
rename to bin/header/main.c
diff --git a/src/header/main.h b/bin/header/main.h
similarity index 100%
rename from src/header/main.h
rename to bin/header/main.h
diff --git a/src/header/ui.c b/bin/header/ui.c
similarity index 100%
rename from src/header/ui.c
rename to bin/header/ui.c
diff --git a/src/header/ui.h b/bin/header/ui.h
similarity index 100%
rename from src/header/ui.h
rename to bin/header/ui.h
diff --git a/src/imgcrop/Makefile.am b/bin/imgcrop/Makefile.am
similarity index 100%
rename from src/imgcrop/Makefile.am
rename to bin/imgcrop/Makefile.am
diff --git a/src/imgcrop/args.h b/bin/imgcrop/args.h
similarity index 100%
rename from src/imgcrop/args.h
rename to bin/imgcrop/args.h
diff --git a/src/imgcrop/astimgcrop.conf b/bin/imgcrop/astimgcrop.conf
similarity index 100%
rename from src/imgcrop/astimgcrop.conf
rename to bin/imgcrop/astimgcrop.conf
diff --git a/src/imgcrop/cite.h b/bin/imgcrop/cite.h
similarity index 100%
rename from src/imgcrop/cite.h
rename to bin/imgcrop/cite.h
diff --git a/src/imgcrop/crop.c b/bin/imgcrop/crop.c
similarity index 100%
rename from src/imgcrop/crop.c
rename to bin/imgcrop/crop.c
diff --git a/src/imgcrop/crop.h b/bin/imgcrop/crop.h
similarity index 100%
rename from src/imgcrop/crop.h
rename to bin/imgcrop/crop.h
diff --git a/src/imgcrop/imgcrop.c b/bin/imgcrop/imgcrop.c
similarity index 100%
rename from src/imgcrop/imgcrop.c
rename to bin/imgcrop/imgcrop.c
diff --git a/src/imgcrop/imgcrop.h b/bin/imgcrop/imgcrop.h
similarity index 100%
rename from src/imgcrop/imgcrop.h
rename to bin/imgcrop/imgcrop.h
diff --git a/src/imgcrop/main.c b/bin/imgcrop/main.c
similarity index 100%
rename from src/imgcrop/main.c
rename to bin/imgcrop/main.c
diff --git a/src/imgcrop/main.h b/bin/imgcrop/main.h
similarity index 100%
rename from src/imgcrop/main.h
rename to bin/imgcrop/main.h
diff --git a/src/imgcrop/ui.c b/bin/imgcrop/ui.c
similarity index 100%
rename from src/imgcrop/ui.c
rename to bin/imgcrop/ui.c
diff --git a/src/imgcrop/ui.h b/bin/imgcrop/ui.h
similarity index 100%
rename from src/imgcrop/ui.h
rename to bin/imgcrop/ui.h
diff --git a/src/imgcrop/wcsmode.c b/bin/imgcrop/wcsmode.c
similarity index 100%
rename from src/imgcrop/wcsmode.c
rename to bin/imgcrop/wcsmode.c
diff --git a/src/imgcrop/wcsmode.h b/bin/imgcrop/wcsmode.h
similarity index 100%
rename from src/imgcrop/wcsmode.h
rename to bin/imgcrop/wcsmode.h
diff --git a/src/imgstat/Makefile.am b/bin/imgstat/Makefile.am
similarity index 100%
rename from src/imgstat/Makefile.am
rename to bin/imgstat/Makefile.am
diff --git a/src/imgstat/args.h b/bin/imgstat/args.h
similarity index 100%
rename from src/imgstat/args.h
rename to bin/imgstat/args.h
diff --git a/src/imgstat/astimgstat.conf b/bin/imgstat/astimgstat.conf
similarity index 100%
rename from src/imgstat/astimgstat.conf
rename to bin/imgstat/astimgstat.conf
diff --git a/src/imgstat/cite.h b/bin/imgstat/cite.h
similarity index 100%
rename from src/imgstat/cite.h
rename to bin/imgstat/cite.h
diff --git a/src/imgstat/imgstat.c b/bin/imgstat/imgstat.c
similarity index 100%
rename from src/imgstat/imgstat.c
rename to bin/imgstat/imgstat.c
diff --git a/src/imgstat/imgstat.h b/bin/imgstat/imgstat.h
similarity index 100%
rename from src/imgstat/imgstat.h
rename to bin/imgstat/imgstat.h
diff --git a/src/imgstat/main.c b/bin/imgstat/main.c
similarity index 100%
rename from src/imgstat/main.c
rename to bin/imgstat/main.c
diff --git a/src/imgstat/main.h b/bin/imgstat/main.h
similarity index 100%
rename from src/imgstat/main.h
rename to bin/imgstat/main.h
diff --git a/src/imgstat/ui.c b/bin/imgstat/ui.c
similarity index 100%
rename from src/imgstat/ui.c
rename to bin/imgstat/ui.c
diff --git a/src/imgstat/ui.h b/bin/imgstat/ui.h
similarity index 100%
rename from src/imgstat/ui.h
rename to bin/imgstat/ui.h
diff --git a/src/imgwarp/Makefile.am b/bin/imgwarp/Makefile.am
similarity index 100%
rename from src/imgwarp/Makefile.am
rename to bin/imgwarp/Makefile.am
diff --git a/src/imgwarp/args.h b/bin/imgwarp/args.h
similarity index 100%
rename from src/imgwarp/args.h
rename to bin/imgwarp/args.h
diff --git a/src/imgwarp/astimgwarp.conf b/bin/imgwarp/astimgwarp.conf
similarity index 100%
rename from src/imgwarp/astimgwarp.conf
rename to bin/imgwarp/astimgwarp.conf
diff --git a/src/imgwarp/cite.h b/bin/imgwarp/cite.h
similarity index 100%
rename from src/imgwarp/cite.h
rename to bin/imgwarp/cite.h
diff --git a/src/imgwarp/imgwarp.c b/bin/imgwarp/imgwarp.c
similarity index 100%
rename from src/imgwarp/imgwarp.c
rename to bin/imgwarp/imgwarp.c
diff --git a/src/imgwarp/imgwarp.h b/bin/imgwarp/imgwarp.h
similarity index 100%
rename from src/imgwarp/imgwarp.h
rename to bin/imgwarp/imgwarp.h
diff --git a/src/imgwarp/main.c b/bin/imgwarp/main.c
similarity index 100%
rename from src/imgwarp/main.c
rename to bin/imgwarp/main.c
diff --git a/src/imgwarp/main.h b/bin/imgwarp/main.h
similarity index 100%
rename from src/imgwarp/main.h
rename to bin/imgwarp/main.h
diff --git a/src/imgwarp/ui.c b/bin/imgwarp/ui.c
similarity index 100%
rename from src/imgwarp/ui.c
rename to bin/imgwarp/ui.c
diff --git a/src/imgwarp/ui.h b/bin/imgwarp/ui.h
similarity index 100%
rename from src/imgwarp/ui.h
rename to bin/imgwarp/ui.h
diff --git a/src/mkcatalog/Makefile.am b/bin/mkcatalog/Makefile.am
similarity index 100%
rename from src/mkcatalog/Makefile.am
rename to bin/mkcatalog/Makefile.am
diff --git a/src/mkcatalog/args.h b/bin/mkcatalog/args.h
similarity index 100%
rename from src/mkcatalog/args.h
rename to bin/mkcatalog/args.h
diff --git a/src/mkcatalog/astmkcatalog.conf b/bin/mkcatalog/astmkcatalog.conf
similarity index 100%
rename from src/mkcatalog/astmkcatalog.conf
rename to bin/mkcatalog/astmkcatalog.conf
diff --git a/src/mkcatalog/cite.h b/bin/mkcatalog/cite.h
similarity index 100%
rename from src/mkcatalog/cite.h
rename to bin/mkcatalog/cite.h
diff --git a/src/mkcatalog/columns.c b/bin/mkcatalog/columns.c
similarity index 100%
rename from src/mkcatalog/columns.c
rename to bin/mkcatalog/columns.c
diff --git a/src/mkcatalog/columns.h b/bin/mkcatalog/columns.h
similarity index 100%
rename from src/mkcatalog/columns.h
rename to bin/mkcatalog/columns.h
diff --git a/src/mkcatalog/main.c b/bin/mkcatalog/main.c
similarity index 100%
rename from src/mkcatalog/main.c
rename to bin/mkcatalog/main.c
diff --git a/src/mkcatalog/main.h b/bin/mkcatalog/main.h
similarity index 100%
rename from src/mkcatalog/main.h
rename to bin/mkcatalog/main.h
diff --git a/src/mkcatalog/mkcatalog.c b/bin/mkcatalog/mkcatalog.c
similarity index 99%
rename from src/mkcatalog/mkcatalog.c
rename to bin/mkcatalog/mkcatalog.c
index c9897d3..67a419b 100644
--- a/src/mkcatalog/mkcatalog.c
+++ b/bin/mkcatalog/mkcatalog.c
@@ -50,7 +50,7 @@ along with Gnuastro. If not, see
<http://www.gnu.org/licenses/>.
/*********************************************************************/
/* Macro to see if the label is indexable (belongs to an object or
- not). See the explanation in src/noisechisel/label.h. */
+ not). See the explanation in bin/noisechisel/label.h. */
#if GAL_FITS_LONG_BLANK<0
#define ISINDEXABLEOBJLABEL (objects[i]>0)
#define ISINDEXABLECLPLABEL (clumps[i]>0)
diff --git a/src/mkcatalog/mkcatalog.h b/bin/mkcatalog/mkcatalog.h
similarity index 100%
rename from src/mkcatalog/mkcatalog.h
rename to bin/mkcatalog/mkcatalog.h
diff --git a/src/mkcatalog/ui.c b/bin/mkcatalog/ui.c
similarity index 100%
rename from src/mkcatalog/ui.c
rename to bin/mkcatalog/ui.c
diff --git a/src/mkcatalog/ui.h b/bin/mkcatalog/ui.h
similarity index 100%
rename from src/mkcatalog/ui.h
rename to bin/mkcatalog/ui.h
diff --git a/src/mknoise/Makefile.am b/bin/mknoise/Makefile.am
similarity index 100%
rename from src/mknoise/Makefile.am
rename to bin/mknoise/Makefile.am
diff --git a/src/mknoise/args.h b/bin/mknoise/args.h
similarity index 100%
rename from src/mknoise/args.h
rename to bin/mknoise/args.h
diff --git a/src/mknoise/astmknoise.conf b/bin/mknoise/astmknoise.conf
similarity index 100%
rename from src/mknoise/astmknoise.conf
rename to bin/mknoise/astmknoise.conf
diff --git a/src/mknoise/cite.h b/bin/mknoise/cite.h
similarity index 100%
rename from src/mknoise/cite.h
rename to bin/mknoise/cite.h
diff --git a/src/mknoise/main.c b/bin/mknoise/main.c
similarity index 100%
rename from src/mknoise/main.c
rename to bin/mknoise/main.c
diff --git a/src/mknoise/main.h b/bin/mknoise/main.h
similarity index 100%
rename from src/mknoise/main.h
rename to bin/mknoise/main.h
diff --git a/src/mknoise/mknoise.c b/bin/mknoise/mknoise.c
similarity index 100%
rename from src/mknoise/mknoise.c
rename to bin/mknoise/mknoise.c
diff --git a/src/mknoise/mknoise.h b/bin/mknoise/mknoise.h
similarity index 100%
rename from src/mknoise/mknoise.h
rename to bin/mknoise/mknoise.h
diff --git a/src/mknoise/ui.c b/bin/mknoise/ui.c
similarity index 100%
rename from src/mknoise/ui.c
rename to bin/mknoise/ui.c
diff --git a/src/mknoise/ui.h b/bin/mknoise/ui.h
similarity index 100%
rename from src/mknoise/ui.h
rename to bin/mknoise/ui.h
diff --git a/src/mkprof/Makefile.am b/bin/mkprof/Makefile.am
similarity index 100%
rename from src/mkprof/Makefile.am
rename to bin/mkprof/Makefile.am
diff --git a/src/mkprof/args.h b/bin/mkprof/args.h
similarity index 100%
rename from src/mkprof/args.h
rename to bin/mkprof/args.h
diff --git a/src/mkprof/astmkprof.conf b/bin/mkprof/astmkprof.conf
similarity index 100%
rename from src/mkprof/astmkprof.conf
rename to bin/mkprof/astmkprof.conf
diff --git a/src/mkprof/cite.h b/bin/mkprof/cite.h
similarity index 100%
rename from src/mkprof/cite.h
rename to bin/mkprof/cite.h
diff --git a/src/mkprof/main.c b/bin/mkprof/main.c
similarity index 100%
rename from src/mkprof/main.c
rename to bin/mkprof/main.c
diff --git a/src/mkprof/main.h b/bin/mkprof/main.h
similarity index 100%
rename from src/mkprof/main.h
rename to bin/mkprof/main.h
diff --git a/src/mkprof/mkprof.c b/bin/mkprof/mkprof.c
similarity index 100%
rename from src/mkprof/mkprof.c
rename to bin/mkprof/mkprof.c
diff --git a/src/mkprof/mkprof.h b/bin/mkprof/mkprof.h
similarity index 100%
rename from src/mkprof/mkprof.h
rename to bin/mkprof/mkprof.h
diff --git a/src/mkprof/oneprofile.c b/bin/mkprof/oneprofile.c
similarity index 100%
rename from src/mkprof/oneprofile.c
rename to bin/mkprof/oneprofile.c
diff --git a/src/mkprof/oneprofile.h b/bin/mkprof/oneprofile.h
similarity index 100%
rename from src/mkprof/oneprofile.h
rename to bin/mkprof/oneprofile.h
diff --git a/src/mkprof/profiles.c b/bin/mkprof/profiles.c
similarity index 100%
rename from src/mkprof/profiles.c
rename to bin/mkprof/profiles.c
diff --git a/src/mkprof/profiles.h b/bin/mkprof/profiles.h
similarity index 100%
rename from src/mkprof/profiles.h
rename to bin/mkprof/profiles.h
diff --git a/src/mkprof/ui.c b/bin/mkprof/ui.c
similarity index 100%
rename from src/mkprof/ui.c
rename to bin/mkprof/ui.c
diff --git a/src/mkprof/ui.h b/bin/mkprof/ui.h
similarity index 100%
rename from src/mkprof/ui.h
rename to bin/mkprof/ui.h
diff --git a/src/noisechisel/Makefile.am b/bin/noisechisel/Makefile.am
similarity index 100%
rename from src/noisechisel/Makefile.am
rename to bin/noisechisel/Makefile.am
diff --git a/src/noisechisel/args.h b/bin/noisechisel/args.h
similarity index 100%
rename from src/noisechisel/args.h
rename to bin/noisechisel/args.h
diff --git a/src/noisechisel/astnoisechisel.conf
b/bin/noisechisel/astnoisechisel.conf
similarity index 100%
rename from src/noisechisel/astnoisechisel.conf
rename to bin/noisechisel/astnoisechisel.conf
diff --git a/src/noisechisel/binary.c b/bin/noisechisel/binary.c
similarity index 100%
rename from src/noisechisel/binary.c
rename to bin/noisechisel/binary.c
diff --git a/src/noisechisel/binary.h b/bin/noisechisel/binary.h
similarity index 100%
rename from src/noisechisel/binary.h
rename to bin/noisechisel/binary.h
diff --git a/src/noisechisel/cite.h b/bin/noisechisel/cite.h
similarity index 100%
rename from src/noisechisel/cite.h
rename to bin/noisechisel/cite.h
diff --git a/src/noisechisel/clumps.c b/bin/noisechisel/clumps.c
similarity index 100%
rename from src/noisechisel/clumps.c
rename to bin/noisechisel/clumps.c
diff --git a/src/noisechisel/clumps.h b/bin/noisechisel/clumps.h
similarity index 100%
rename from src/noisechisel/clumps.h
rename to bin/noisechisel/clumps.h
diff --git a/src/noisechisel/detection.c b/bin/noisechisel/detection.c
similarity index 100%
rename from src/noisechisel/detection.c
rename to bin/noisechisel/detection.c
diff --git a/src/noisechisel/detection.h b/bin/noisechisel/detection.h
similarity index 100%
rename from src/noisechisel/detection.h
rename to bin/noisechisel/detection.h
diff --git a/src/noisechisel/label.c b/bin/noisechisel/label.c
similarity index 100%
rename from src/noisechisel/label.c
rename to bin/noisechisel/label.c
diff --git a/src/noisechisel/label.h b/bin/noisechisel/label.h
similarity index 100%
rename from src/noisechisel/label.h
rename to bin/noisechisel/label.h
diff --git a/src/noisechisel/main.c b/bin/noisechisel/main.c
similarity index 100%
rename from src/noisechisel/main.c
rename to bin/noisechisel/main.c
diff --git a/src/noisechisel/main.h b/bin/noisechisel/main.h
similarity index 100%
rename from src/noisechisel/main.h
rename to bin/noisechisel/main.h
diff --git a/src/noisechisel/noisechisel.c b/bin/noisechisel/noisechisel.c
similarity index 100%
rename from src/noisechisel/noisechisel.c
rename to bin/noisechisel/noisechisel.c
diff --git a/src/noisechisel/noisechisel.h b/bin/noisechisel/noisechisel.h
similarity index 100%
rename from src/noisechisel/noisechisel.h
rename to bin/noisechisel/noisechisel.h
diff --git a/src/noisechisel/segmentation.c b/bin/noisechisel/segmentation.c
similarity index 100%
rename from src/noisechisel/segmentation.c
rename to bin/noisechisel/segmentation.c
diff --git a/src/noisechisel/segmentation.h b/bin/noisechisel/segmentation.h
similarity index 100%
rename from src/noisechisel/segmentation.h
rename to bin/noisechisel/segmentation.h
diff --git a/src/noisechisel/sky.c b/bin/noisechisel/sky.c
similarity index 100%
rename from src/noisechisel/sky.c
rename to bin/noisechisel/sky.c
diff --git a/src/noisechisel/sky.h b/bin/noisechisel/sky.h
similarity index 100%
rename from src/noisechisel/sky.h
rename to bin/noisechisel/sky.h
diff --git a/src/noisechisel/thresh.c b/bin/noisechisel/thresh.c
similarity index 100%
rename from src/noisechisel/thresh.c
rename to bin/noisechisel/thresh.c
diff --git a/src/noisechisel/thresh.h b/bin/noisechisel/thresh.h
similarity index 100%
rename from src/noisechisel/thresh.h
rename to bin/noisechisel/thresh.h
diff --git a/src/noisechisel/ui.c b/bin/noisechisel/ui.c
similarity index 100%
rename from src/noisechisel/ui.c
rename to bin/noisechisel/ui.c
diff --git a/src/noisechisel/ui.h b/bin/noisechisel/ui.h
similarity index 100%
rename from src/noisechisel/ui.h
rename to bin/noisechisel/ui.h
diff --git a/src/subtractsky/Makefile.am b/bin/subtractsky/Makefile.am
similarity index 100%
rename from src/subtractsky/Makefile.am
rename to bin/subtractsky/Makefile.am
diff --git a/src/subtractsky/args.h b/bin/subtractsky/args.h
similarity index 100%
rename from src/subtractsky/args.h
rename to bin/subtractsky/args.h
diff --git a/src/subtractsky/astsubtractsky.conf
b/bin/subtractsky/astsubtractsky.conf
similarity index 100%
rename from src/subtractsky/astsubtractsky.conf
rename to bin/subtractsky/astsubtractsky.conf
diff --git a/src/subtractsky/cite.h b/bin/subtractsky/cite.h
similarity index 100%
rename from src/subtractsky/cite.h
rename to bin/subtractsky/cite.h
diff --git a/src/subtractsky/main.c b/bin/subtractsky/main.c
similarity index 100%
rename from src/subtractsky/main.c
rename to bin/subtractsky/main.c
diff --git a/src/subtractsky/main.h b/bin/subtractsky/main.h
similarity index 100%
rename from src/subtractsky/main.h
rename to bin/subtractsky/main.h
diff --git a/src/subtractsky/subtractsky.c b/bin/subtractsky/subtractsky.c
similarity index 100%
rename from src/subtractsky/subtractsky.c
rename to bin/subtractsky/subtractsky.c
diff --git a/src/subtractsky/subtractsky.h b/bin/subtractsky/subtractsky.h
similarity index 100%
rename from src/subtractsky/subtractsky.h
rename to bin/subtractsky/subtractsky.h
diff --git a/src/subtractsky/ui.c b/bin/subtractsky/ui.c
similarity index 100%
rename from src/subtractsky/ui.c
rename to bin/subtractsky/ui.c
diff --git a/src/subtractsky/ui.h b/bin/subtractsky/ui.h
similarity index 100%
rename from src/subtractsky/ui.h
rename to bin/subtractsky/ui.h
diff --git a/src/table/Makefile.am b/bin/table/Makefile.am
similarity index 100%
rename from src/table/Makefile.am
rename to bin/table/Makefile.am
diff --git a/src/table/args.h b/bin/table/args.h
similarity index 100%
rename from src/table/args.h
rename to bin/table/args.h
diff --git a/src/table/asttable.conf b/bin/table/asttable.conf
similarity index 100%
rename from src/table/asttable.conf
rename to bin/table/asttable.conf
diff --git a/src/table/cite.h b/bin/table/cite.h
similarity index 100%
rename from src/table/cite.h
rename to bin/table/cite.h
diff --git a/src/table/main.c b/bin/table/main.c
similarity index 100%
rename from src/table/main.c
rename to bin/table/main.c
diff --git a/src/table/main.h b/bin/table/main.h
similarity index 100%
rename from src/table/main.h
rename to bin/table/main.h
diff --git a/src/table/table.c b/bin/table/table.c
similarity index 100%
rename from src/table/table.c
rename to bin/table/table.c
diff --git a/src/table/table.h b/bin/table/table.h
similarity index 100%
rename from src/table/table.h
rename to bin/table/table.h
diff --git a/src/table/ui.c b/bin/table/ui.c
similarity index 100%
rename from src/table/ui.c
rename to bin/table/ui.c
diff --git a/src/table/ui.h b/bin/table/ui.h
similarity index 100%
rename from src/table/ui.h
rename to bin/table/ui.h
diff --git a/configure.ac b/configure.ac
index 6da5f20..4e0ff15 100644
--- a/configure.ac
+++ b/configure.ac
@@ -427,20 +427,20 @@ AC_CONFIG_FILES([Makefile
doc/Makefile
lib/Makefile
tests/Makefile
- src/table/Makefile
- src/mkprof/Makefile
- src/header/Makefile
- src/mknoise/Makefile
- src/imgcrop/Makefile
- src/imgstat/Makefile
- src/imgwarp/Makefile
- src/convertt/Makefile
- src/convolve/Makefile
- src/cosmiccal/Makefile
- src/mkcatalog/Makefile
- src/arithmetic/Makefile
- src/noisechisel/Makefile
- src/subtractsky/Makefile
+ bin/table/Makefile
+ bin/mkprof/Makefile
+ bin/header/Makefile
+ bin/mknoise/Makefile
+ bin/imgcrop/Makefile
+ bin/imgstat/Makefile
+ bin/imgwarp/Makefile
+ bin/convertt/Makefile
+ bin/convolve/Makefile
+ bin/cosmiccal/Makefile
+ bin/mkcatalog/Makefile
+ bin/arithmetic/Makefile
+ bin/noisechisel/Makefile
+ bin/subtractsky/Makefile
bootstrapped/lib/Makefile
bootstrapped/tests/Makefile
])
diff --git a/doc/Makefile.am b/doc/Makefile.am
index e783ddc..4832d00 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -96,31 +96,31 @@ endif
# Build the `man' directory and then put all the man pages in
# it. Unfortunately as far as I know, pattern rules are not portable in all
# implementations of Make, so we have to list all the utilities manually.
-toputildir=$(top_builddir)/src
+toputildir=$(top_builddir)/bin
ALLMANSDEP = $(top_srcdir)/lib/gnuastro/commonargs.h
-man/astarithmetic.1: $(top_srcdir)/src/arithmetic/args.h $(ALLMANSDEP)
+man/astarithmetic.1: $(top_srcdir)/bin/arithmetic/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/arithmetic/astarithmetic
-man/astconvertt.1: $(top_srcdir)/src/convertt/args.h $(ALLMANSDEP)
+man/astconvertt.1: $(top_srcdir)/bin/convertt/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/convertt/astconvertt
-man/astconvolve.1: $(top_srcdir)/src/convolve/args.h $(ALLMANSDEP)
+man/astconvolve.1: $(top_srcdir)/bin/convolve/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/convolve/astconvolve
-man/astcosmiccal.1: $(top_srcdir)/src/cosmiccal/args.h $(ALLMANSDEP)
+man/astcosmiccal.1: $(top_srcdir)/bin/cosmiccal/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/cosmiccal/astcosmiccal
-man/astheader.1: $(top_srcdir)/src/header/args.h $(ALLMANSDEP)
+man/astheader.1: $(top_srcdir)/bin/header/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/header/astheader
-man/astimgcrop.1: $(top_srcdir)/src/imgcrop/args.h $(ALLMANSDEP)
+man/astimgcrop.1: $(top_srcdir)/bin/imgcrop/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/imgcrop/astimgcrop
-man/astimgstat.1: $(top_srcdir)/src/imgstat/args.h $(ALLMANSDEP)
+man/astimgstat.1: $(top_srcdir)/bin/imgstat/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/imgstat/astimgstat
-man/astimgwarp.1: $(top_srcdir)/src/imgwarp/args.h $(ALLMANSDEP)
+man/astimgwarp.1: $(top_srcdir)/bin/imgwarp/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/imgwarp/astimgwarp
-man/astmkcatalog.1: $(top_srcdir)/src/mkcatalog/args.h $(ALLMANSDEP)
+man/astmkcatalog.1: $(top_srcdir)/bin/mkcatalog/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/mkcatalog/astmkcatalog
-man/astmknoise.1: $(top_srcdir)/src/mknoise/args.h $(ALLMANSDEP)
+man/astmknoise.1: $(top_srcdir)/bin/mknoise/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/mknoise/astmknoise
-man/astmkprof.1: $(top_srcdir)/src/mkprof/args.h $(ALLMANSDEP)
+man/astmkprof.1: $(top_srcdir)/bin/mkprof/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/mkprof/astmkprof
-man/astnoisechisel.1: $(top_srcdir)/src/noisechisel/args.h $(ALLMANSDEP)
+man/astnoisechisel.1: $(top_srcdir)/bin/noisechisel/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/noisechisel/astnoisechisel
-man/astsubtractsky.1: $(top_srcdir)/src/subtractsky/args.h $(ALLMANSDEP)
+man/astsubtractsky.1: $(top_srcdir)/bin/subtractsky/args.h $(ALLMANSDEP)
$(MAYBE_HELP2MAN) $(toputildir)/subtractsky/astsubtractsky
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index cae8fcd..f2936fa 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -14313,7 +14313,7 @@ library is that the compiler doesn't not know where a
library's header is
to look for the library's headers with the @option{-I} option. For a small
software with one or two source files, this can be done manually (see
@ref{Summary and example on libraries}). However, to enhance modularity,
-Gnuastro (and most other programs/libraries) contain many source files, so
+Gnuastro (and most other bin/libraries) contain many source files, so
the compiler is invoked many address@hidden every command you see
being executed after running @command{make} is one call to the
compiler.}. This makes manual addition or modification of this option
@@ -14361,7 +14361,7 @@ To enhance modularity, similar functions are defined in
one source file
compiled) into a computer-readable ``object'' file (ending with
@file{.o}). Note that object files are also created when building
utilities/programs, they aren't particular to libraries. Try opening
-Gnuastro's @file{lib/} and @file{src/progname/} directories after running
+Gnuastro's @file{lib/} and @file{bin/progname/} directories after running
@command{make} to see these object address@hidden uses GNU Libtool
for portable library creation. Libtool will also make a @file{.lo} file for
each @file{.c} file when building libraries (@file{.lo} files are
@@ -14376,12 +14376,12 @@ functions you can use the @command{nm} program which
is part of GNU
Binutils. For example from the top Gnuastro directory, run:
@example
-$ nm src/arithmetic/arithmetic.o
+$ nm bin/arithmetic/arithmetic.o
@end example
@noindent
This will print a list of all the functions (more generally, `symbols')
-that were called within @file{src/arithmetic/arithmetic.c} along with some
+that were called within @file{bin/arithmetic/arithmetic.c} along with some
further information (for example a @code{T} in the second column shows that
this function is actually defined here, @code{U} says that it is undefined
here). Try opening the @file{.c} file to check some of these functions for
@@ -14393,7 +14393,7 @@ To recap, the @emph{compiler} created the separate
object files mentioned
above for each @file{.c} file. The @emph{linker} will then combine all the
symbols of the various object files (and libraries) into one program or
library. In the case of Arithmetic (a program) the contents of the object
-files in @file{src/arithmetic/} are copied (and re-ordered) into one final
+files in @file{bin/arithmetic/} are copied (and re-ordered) into one final
executable file which we can run from the operating system. When the
symbols (computer-readable function definitions in most cases) are copied
into the output like this, we call the process @emph{static} linking. Let's
@@ -16088,7 +16088,7 @@ This function is commonly used within Gnuastro (mainly
in NoiseChisel, see
some real-world examples. You can do this with the following command in the
top Gnuastro source directory (after unpacking the tarball):
@example
-grep -r gal_mesh_operate_on_mesh ./src/*
+grep -r gal_mesh_operate_on_mesh ./bin/*
@end example
@end deftypefun
@@ -17449,7 +17449,7 @@ read along.
Some programs might need lots of source files and if there is no fixed
convention, navigating them can become very hard for a new inquirer
into the code. The following source files exist in every program's
-source directory (which is located in @file{src/progname}). For small
+source directory (which is located in @file{bin/progname}). For small
programs, these files are enough. Larger programs will need more
files. In general for writing other source files, please choose
filenames that are descriptive.
@@ -17962,9 +17962,9 @@ the book or had known of Gnuastro before you made your
change).
@node The TEMPLATE program, , Documentation, Program source
@subsection The TEMPLATE program
-In the @code{Version controlled source}, the @file{src/} directory contains
+In the @code{Version controlled source}, the @file{bin/} directory contains
the source code for each program in a separate subdirectory. The
address@hidden/TEMPLATE} directory contains the bare-minimum files to create a
address@hidden/TEMPLATE} directory contains the bare-minimum files to create a
new program. It can be used to understand the conventions described in
@ref{Program source}, or to easily create a new program.
@@ -17985,7 +17985,7 @@ Select a name for your new program (for example
@file{myprog}).
@item
Copy the @file{TEMPLATE} directory to a directory with your program's name:
@example
-$ cp -R src/TEMPLATE src/myprog
+$ cp -R bin/TEMPLATE bin/myprog
@end example
@item
@@ -17996,7 +17996,7 @@ those and correct the names of the copied program to
your new program
name. We follow alphabetic ordering here, so please place it
correctly. There are multiple places where this has to be done, so be
patient and go down to the bottom of the file. Ultimately add
address@hidden/myprog/Makefile} to @code{AC_CONFIG_FILES}, only here the
address@hidden/myprog/Makefile} to @code{AC_CONFIG_FILES}, only here the
ordering depends on the length of the name.
@item
@@ -18005,7 +18005,7 @@ step, add your new program similar to all the other
utilites.
@item
Change @code{TEMPLATE} to @code{myprog} in the file names and contents of
-the files in the @file{src/myprog/} directory.
+the files in the @file{bin/myprog/} directory.
@item
Run the following command to re-build the configuration and build system.
diff --git a/genauthors b/genauthors
index 8bb3889..4fe48c9 100755
--- a/genauthors
+++ b/genauthors
@@ -3,7 +3,7 @@
# Generate a list of authors from the git repository, it will only
# actually do anything if a .git file exists. Run like this:
#
-# ./genauthors top/src/dir
+# ./genauthors top/bin/dir
#
# Note that some authors might have changed their email addresses over
# the course of their contributions to Gnuastro. Fortunately Git has a
@@ -137,24 +137,24 @@ echo "" >> "$outauthors"
# Go over each part of Gnuastro and add the authors:
-for util in src/* "lib/" "doc/"; do
+for util in bin/* "lib/" "doc/"; do
# Set the name of the utility
- if [ $util = src/arithmetic ]; then name=Arithmetic
- elif [ $util = src/convertt ]; then name=ConvertType
- elif [ $util = src/convolve ]; then name=Convolve
- elif [ $util = src/cosmiccal ]; then name=CosmicCalculator
- elif [ $util = src/header ]; then name=Header
- elif [ $util = src/imgcrop ]; then name=ImageCrop
- elif [ $util = src/imgstat ]; then name=ImageStatistics
- elif [ $util = src/imgwarp ]; then name=ImageWarp
- elif [ $util = src/mkcatalog ]; then name=MakeCatalog
- elif [ $util = src/mknoise ]; then name=MakeNoise
- elif [ $util = src/mkprof ]; then name=MakeProfile
- elif [ $util = src/noisechisel ]; then name=NoiseChisel
- elif [ $util = src/subtractsky ]; then name=SubtractSky
- elif [ $util = src/table ]; then name=Table
- elif [ $util = src/TEMPLATE ]; then name=TEMPLATE
+ if [ $util = bin/arithmetic ]; then name=Arithmetic
+ elif [ $util = bin/convertt ]; then name=ConvertType
+ elif [ $util = bin/convolve ]; then name=Convolve
+ elif [ $util = bin/cosmiccal ]; then name=CosmicCalculator
+ elif [ $util = bin/header ]; then name=Header
+ elif [ $util = bin/imgcrop ]; then name=ImageCrop
+ elif [ $util = bin/imgstat ]; then name=ImageStatistics
+ elif [ $util = bin/imgwarp ]; then name=ImageWarp
+ elif [ $util = bin/mkcatalog ]; then name=MakeCatalog
+ elif [ $util = bin/mknoise ]; then name=MakeNoise
+ elif [ $util = bin/mkprof ]; then name=MakeProfile
+ elif [ $util = bin/noisechisel ]; then name=NoiseChisel
+ elif [ $util = bin/subtractsky ]; then name=SubtractSky
+ elif [ $util = bin/table ]; then name=Table
+ elif [ $util = bin/TEMPLATE ]; then name=TEMPLATE
elif [ $util = lib/ ]; then name=Libraries
elif [ $util = doc/ ]; then name=Documentation
else echo; echo; echo "genauthors.sh: $util not recognized!"; exit 1;
diff --git a/tests/arithmetic/onlynumbers.sh b/tests/arithmetic/onlynumbers.sh
index dbe99d6..e261b1e 100755
--- a/tests/arithmetic/onlynumbers.sh
+++ b/tests/arithmetic/onlynumbers.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=arithmetic
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/arithmetic/or.sh b/tests/arithmetic/or.sh
index 12e8da7..57a6fdd 100755
--- a/tests/arithmetic/or.sh
+++ b/tests/arithmetic/or.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=arithmetic
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
img=convolve_spatial_noised_labeled.fits
diff --git a/tests/arithmetic/snimage.sh b/tests/arithmetic/snimage.sh
index f832508..361465c 100755
--- a/tests/arithmetic/snimage.sh
+++ b/tests/arithmetic/snimage.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=arithmetic
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
img=convolve_spatial_noised_labeled.fits
diff --git a/tests/arithmetic/where.sh b/tests/arithmetic/where.sh
index 8e4ff84..3b82f8f 100755
--- a/tests/arithmetic/where.sh
+++ b/tests/arithmetic/where.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=arithmetic
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
img=convolve_spatial_noised_labeled.fits
diff --git a/tests/convertt/blankch.sh b/tests/convertt/blankch.sh
index dacedb2..99756bf 100755
--- a/tests/convertt/blankch.sh
+++ b/tests/convertt/blankch.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
img=psf.fits
prog=convertt
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/convertt/fitstojpeg.sh b/tests/convertt/fitstojpeg.sh
index 72ad413..0ef651a 100755
--- a/tests/convertt/fitstojpeg.sh
+++ b/tests/convertt/fitstojpeg.sh
@@ -23,7 +23,7 @@
# file exists (basicchecks.sh is in the source tree).
img=psf.fits
prog=convertt
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/convertt/fitstojpegcmyk.sh b/tests/convertt/fitstojpegcmyk.sh
index 4012d68..d7b2793 100755
--- a/tests/convertt/fitstojpegcmyk.sh
+++ b/tests/convertt/fitstojpegcmyk.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
img=psf.fits
prog=convertt
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/convertt/fitstopdf.sh b/tests/convertt/fitstopdf.sh
index 197079b..827eca3 100755
--- a/tests/convertt/fitstopdf.sh
+++ b/tests/convertt/fitstopdf.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=convertt
img=imgcrop_section.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/convertt/fitstotxt.sh b/tests/convertt/fitstotxt.sh
index dfb5e11..8fe5742 100755
--- a/tests/convertt/fitstotxt.sh
+++ b/tests/convertt/fitstotxt.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
img=psf.fits
prog=convertt
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/convertt/jpegtofits.sh b/tests/convertt/jpegtofits.sh
index 748b89e..c4ec813 100755
--- a/tests/convertt/jpegtofits.sh
+++ b/tests/convertt/jpegtofits.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=convertt
img=blankch.jpg
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/convertt/jpegtotxt.sh b/tests/convertt/jpegtotxt.sh
index ba75d1a..67d26cb 100755
--- a/tests/convertt/jpegtotxt.sh
+++ b/tests/convertt/jpegtotxt.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
img=psf.jpg
prog=convertt
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/convolve/frequency.sh b/tests/convolve/frequency.sh
index cf79a98..2b9d76f 100755
--- a/tests/convolve/frequency.sh
+++ b/tests/convolve/frequency.sh
@@ -25,7 +25,7 @@
psf=psf.fits
prog=convolve
img=mkprofcat1.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/convolve/spatial.sh b/tests/convolve/spatial.sh
index 0baf61c..e6fee81 100755
--- a/tests/convolve/spatial.sh
+++ b/tests/convolve/spatial.sh
@@ -25,7 +25,7 @@
psf=psf.fits
prog=convolve
img=mkprofcat1.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/cosmiccal/simpletest.sh b/tests/cosmiccal/simpletest.sh
index e77d300..cd346a8 100755
--- a/tests/cosmiccal/simpletest.sh
+++ b/tests/cosmiccal/simpletest.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=cosmiccal
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/during-dev.sh b/tests/during-dev.sh
index 61065b1..bd8eea6 100755
--- a/tests/during-dev.sh
+++ b/tests/during-dev.sh
@@ -109,7 +109,7 @@ fi
# Set the utility's executable file name
-utility="$builddir/src/$utilname/ast$utilname"
+utility="$builddir/bin/$utilname/ast$utilname"
# If the utility is already built, then remove the executable so it is
@@ -140,7 +140,7 @@ if make -C "$builddir"; then
# the last line in the configuration file doesn't actualy end with a
# new line (in which case the appended string will be added to the end
# of the last line).
- cp "$srcdir/src/$utilname/ast$utilname.conf" .gnuastro/
+ cp "$srcdir/bin/$utilname/ast$utilname.conf" .gnuastro/
echo "" >> .gnuastro/ast$utilname.conf
echo " onlydirconf 1" >> .gnuastro/ast$utilname.conf
diff --git a/tests/header/delete.sh b/tests/header/delete.sh
index 419ac42..b39f0a4 100755
--- a/tests/header/delete.sh
+++ b/tests/header/delete.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=header
img=headertest.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/header/print.sh b/tests/header/print.sh
index e861fc9..108ede6 100755
--- a/tests/header/print.sh
+++ b/tests/header/print.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=header
img=headertest.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/header/update.sh b/tests/header/update.sh
index b2a184c..751b009 100755
--- a/tests/header/update.sh
+++ b/tests/header/update.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=header
img=headertest.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/header/write.sh b/tests/header/write.sh
index e444a8d..0f0b75b 100755
--- a/tests/header/write.sh
+++ b/tests/header/write.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=header
img=mkprofcat1.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/imgcrop/imgcat.sh b/tests/imgcrop/imgcat.sh
index 8bf2b66..ef42ad7 100755
--- a/tests/imgcrop/imgcat.sh
+++ b/tests/imgcrop/imgcat.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=imgcrop
img=mkprofcat1.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/imgcrop/imgoutpolygon.sh b/tests/imgcrop/imgoutpolygon.sh
index 581b816..edda747 100755
--- a/tests/imgcrop/imgoutpolygon.sh
+++ b/tests/imgcrop/imgoutpolygon.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=imgcrop
img=mkprofcat1.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/imgcrop/imgpolygon.sh b/tests/imgcrop/imgpolygon.sh
index 76a9dd4..9b25baf 100755
--- a/tests/imgcrop/imgpolygon.sh
+++ b/tests/imgcrop/imgpolygon.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=imgcrop
img=mkprofcat1.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/imgcrop/radec.sh b/tests/imgcrop/radec.sh
index 76d3d7a..3ddb28f 100755
--- a/tests/imgcrop/radec.sh
+++ b/tests/imgcrop/radec.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=imgcrop
img=mkprofcat*.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/imgcrop/section.sh b/tests/imgcrop/section.sh
index 92282b9..ecea624 100755
--- a/tests/imgcrop/section.sh
+++ b/tests/imgcrop/section.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=imgcrop
img=mkprofcat1.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/imgcrop/wcscat.sh b/tests/imgcrop/wcscat.sh
index 931df57..5ffef76 100755
--- a/tests/imgcrop/wcscat.sh
+++ b/tests/imgcrop/wcscat.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=imgcrop
img=mkprofcat*.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/imgcrop/wcspolygon.sh b/tests/imgcrop/wcspolygon.sh
index 3fae7be..78bc0e3 100755
--- a/tests/imgcrop/wcspolygon.sh
+++ b/tests/imgcrop/wcspolygon.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=imgcrop
img=mkprofcat*.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/imgcrop/xcyc.sh b/tests/imgcrop/xcyc.sh
index 8530370..c64598f 100755
--- a/tests/imgcrop/xcyc.sh
+++ b/tests/imgcrop/xcyc.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=imgcrop
img=mkprofcat1.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/imgcrop/xcycnoblank.sh b/tests/imgcrop/xcycnoblank.sh
index 09c4842..b441cfe 100755
--- a/tests/imgcrop/xcycnoblank.sh
+++ b/tests/imgcrop/xcycnoblank.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=imgcrop
img=mkprofcat1.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/imgstat/basicstats.sh b/tests/imgstat/basicstats.sh
index 4db5524..1186619 100755
--- a/tests/imgstat/basicstats.sh
+++ b/tests/imgstat/basicstats.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=imgstat
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
img=convolve_spatial_warped_noised.fits
diff --git a/tests/imgwarp/homographic.sh b/tests/imgwarp/homographic.sh
index 3047d61..23afa53 100755
--- a/tests/imgwarp/homographic.sh
+++ b/tests/imgwarp/homographic.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=imgwarp
img=convolve_spatial.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/imgwarp/imgwarp_scale.sh b/tests/imgwarp/imgwarp_scale.sh
index 824b2b7..4a3aec8 100755
--- a/tests/imgwarp/imgwarp_scale.sh
+++ b/tests/imgwarp/imgwarp_scale.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=imgwarp
img=convolve_spatial.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
diff --git a/tests/mkcatalog/aperturephot.sh b/tests/mkcatalog/aperturephot.sh
index c1c8c57..55363a9 100755
--- a/tests/mkcatalog/aperturephot.sh
+++ b/tests/mkcatalog/aperturephot.sh
@@ -24,7 +24,7 @@
# file exists (basicchecks.sh is in the source tree).
prog=mkcatalog
objimg=inputascanvas.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
img=convolve_spatial_noised_labeled.fits
diff --git a/tests/mkcatalog/simple.sh b/tests/mkcatalog/simple.sh
index 4885088..ca3cb6a 100755
--- a/tests/mkcatalog/simple.sh
+++ b/tests/mkcatalog/simple.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=mkcatalog
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
img=convolve_spatial_noised_labeled.fits
diff --git a/tests/mknoise/addnoise.sh b/tests/mknoise/addnoise.sh
index c13b582..62c5e18 100755
--- a/tests/mknoise/addnoise.sh
+++ b/tests/mknoise/addnoise.sh
@@ -29,7 +29,7 @@
# tested on a larger image.
prog=mknoise
img1=convolve_spatial.fits
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
img2=convolve_spatial_warped.fits
diff --git a/tests/mkprof/ellipticalmasks.sh b/tests/mkprof/ellipticalmasks.sh
index 6dc8050..59cb124 100755
--- a/tests/mkprof/ellipticalmasks.sh
+++ b/tests/mkprof/ellipticalmasks.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=mkprof
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
img=convolve_spatial_warped_noised.fits
cat=$topsrc/tests/$prog/ellipticalmasks.txt
diff --git a/tests/mkprof/inputascanvas.sh b/tests/mkprof/inputascanvas.sh
index ac690a9..e1f9e98 100755
--- a/tests/mkprof/inputascanvas.sh
+++ b/tests/mkprof/inputascanvas.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=mkprof
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
img=convolve_spatial_noised.fits
cat=$topsrc/tests/$prog/inputascanvas.txt
diff --git a/tests/mkprof/mosaic1.sh b/tests/mkprof/mosaic1.sh
index 3dbeb04..7faaae5 100755
--- a/tests/mkprof/mosaic1.sh
+++ b/tests/mkprof/mosaic1.sh
@@ -25,7 +25,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=mkprof
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
cat=$topsrc/tests/$prog/mkprofcat1.txt
diff --git a/tests/mkprof/mosaic2.sh b/tests/mkprof/mosaic2.sh
index 40661fd..70bceb5 100755
--- a/tests/mkprof/mosaic2.sh
+++ b/tests/mkprof/mosaic2.sh
@@ -30,7 +30,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=mkprof
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
cat=$topsrc/tests/$prog/mkprofcat2.txt
diff --git a/tests/mkprof/mosaic3.sh b/tests/mkprof/mosaic3.sh
index aecbb77..5050e0c 100755
--- a/tests/mkprof/mosaic3.sh
+++ b/tests/mkprof/mosaic3.sh
@@ -28,7 +28,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=mkprof
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
cat=$topsrc/tests/$prog/mkprofcat3.txt
diff --git a/tests/mkprof/mosaic4.sh b/tests/mkprof/mosaic4.sh
index 3e36976..ec72c15 100755
--- a/tests/mkprof/mosaic4.sh
+++ b/tests/mkprof/mosaic4.sh
@@ -28,7 +28,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=mkprof
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
cat=$topsrc/tests/$prog/mkprofcat4.txt
diff --git a/tests/mkprof/radeccat.sh b/tests/mkprof/radeccat.sh
index 16c0686..023ee8e 100755
--- a/tests/mkprof/radeccat.sh
+++ b/tests/mkprof/radeccat.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=mkprof
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
cat=$topsrc/tests/$prog/radeccat.txt
diff --git a/tests/noisechisel/noisechisel.sh b/tests/noisechisel/noisechisel.sh
index 9fc31c7..a1fb2cc 100755
--- a/tests/noisechisel/noisechisel.sh
+++ b/tests/noisechisel/noisechisel.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=noisechisel
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
img=convolve_spatial_noised.fits
diff --git a/tests/prepconf.sh b/tests/prepconf.sh
index 068c06b..9f37401 100755
--- a/tests/prepconf.sh
+++ b/tests/prepconf.sh
@@ -81,7 +81,7 @@ do
# Copy the configuration file from the utility source and add the
# options added here.
- cat $topsrc/src/$prog/ast$prog.conf addedoptions.txt \
+ cat $topsrc/bin/$prog/ast$prog.conf addedoptions.txt \
> .gnuastro/ast$prog.conf
done
diff --git a/tests/subtractsky/subtractsky.sh b/tests/subtractsky/subtractsky.sh
index bb15218..1d3db7b 100755
--- a/tests/subtractsky/subtractsky.sh
+++ b/tests/subtractsky/subtractsky.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=subtractsky
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
img=convolve_spatial_noised.fits
diff --git a/tests/table/asciitobinary.sh b/tests/table/asciitobinary.sh
index 42ae47b..3093d3a 100755
--- a/tests/table/asciitobinary.sh
+++ b/tests/table/asciitobinary.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=table
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
table=$topsrc/tests/$prog/asciitobinary.txt
diff --git a/tests/table/binarytoascii.sh b/tests/table/binarytoascii.sh
index 5eb8cc0..650ac0c 100755
--- a/tests/table/binarytoascii.sh
+++ b/tests/table/binarytoascii.sh
@@ -23,7 +23,7 @@
# basic checks to see if the executable is made or if the defaults
# file exists (basicchecks.sh is in the source tree).
prog=table
-execname=../src/$prog/ast$prog
+execname=../bin/$prog/ast$prog
table=asciitobinary.fits