[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master f4d08f76 1/2: PSF-scripts: added Infante-sainz
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master f4d08f76 1/2: PSF-scripts: added Infante-sainz et al. 2020 to --cite |
Date: |
Sat, 19 Mar 2022 15:39:23 -0400 (EDT) |
branch: master
commit f4d08f7681c9512a4faa97d6031999952caff06a
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
PSF-scripts: added Infante-sainz et al. 2020 to --cite
Until now, when called with '--cite', all the extended PSF scripts would
simply call 'astfits --cite'! However, the method we use in these scripts
has been published in Raul's 2020 paper!
With this commit, a new 'print_citation' function has been added to all the
scripts. It will print the BibTeX information for Raul's paper
(https://ui.adsabs.harvard.edu/abs/2020MNRAS.491.5317I), as well as the
NoiseChisel paper (for Gnuastro and the tools used in the script in
general).
In the process, I also noticed that the common acknowledgement script for
the programs also doesn't reflect my (and Raul's) updated grant at CEFCA!
So the general statement was also edited.
---
bin/script/psf-scale-factor.in | 73 +++++++++++++++++++++++++++++++++++++++++-
bin/script/psf-select-stars.in | 73 +++++++++++++++++++++++++++++++++++++++++-
bin/script/psf-stamp.in | 73 +++++++++++++++++++++++++++++++++++++++++-
bin/script/psf-subtract.in | 73 +++++++++++++++++++++++++++++++++++++++++-
bin/script/psf-unite.in | 73 +++++++++++++++++++++++++++++++++++++++++-
lib/options.c | 21 ++++++------
6 files changed, 371 insertions(+), 15 deletions(-)
diff --git a/bin/script/psf-scale-factor.in b/bin/script/psf-scale-factor.in
index d89b5c58..60018586 100644
--- a/bin/script/psf-scale-factor.in
+++ b/bin/script/psf-scale-factor.in
@@ -141,6 +141,77 @@ EOF
+# Output of `--cite':
+print_citation() {
+ empty="" # needed for the ascii art!
+ cat <<EOF
+
+Thank you for using $scriptname (GNU Astronomy Utilities) $version
+
+Citations and acknowledgement are vital for the continued work on Gnuastro.
+
+Please cite the following record(s) and add the acknowledgement statement
below in your work to support us. Please note that different Gnuastro programs
may have different corresponding papers. Hence, please check all the programs
you used. Don't forget to also include the version as shown above for
reproducibility.
+
+Paper describing the creation of an extended PSF
+------------------------------------------------
+@ARTICLE{gnuastro-psf,
+ author = {{Infante-Sainz}, Ra{\'u}l and {Trujillo}, Ignacio and
{Rom{\'a}n}, Javier},
+ title = "{The Sloan Digital Sky Survey extended point spread
functions}",
+ journal = {MNRAS},
+ year = 2020,
+ month = feb,
+ volume = {491},
+ number = {4},
+ pages = {5317},
+ doi = {10.1093/mnras/stz3111},
+archivePrefix = {arXiv},
+ eprint = {1911.01430},
+ primaryClass = {astro-ph.IM},
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2020MNRAS.491.5317I},
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
+}
+
+First paper introducing Gnuastro
+--------------------------------
+ @ARTICLE{gnuastro,
+ author = {{Akhlaghi}, M. and {Ichikawa}, T.},
+ title = "{Noise-based Detection and Segmentation of Nebulous Objects}",
+ journal = {ApJS},
+ archivePrefix = "arXiv",
+ eprint = {1505.01664},
+ primaryClass = "astro-ph.IM",
+ year = 2015,
+ month = sep,
+ volume = 220,
+ eid = {1},
+ pages = {1},
+ doi = {10.1088/0067-0049/220/1/1},
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2015ApJS..220....1A},
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
+ }
+
+Acknowledgement
+---------------
+This work was partly done using GNU Astronomy Utilities (Gnuastro,
ascl.net/1801.009) version $version. Work on Gnuastro has been funded by the
Japanese Ministry of Education, Culture, Sports, Science, and Technology (MEXT)
scholarship and its Grant-in-Aid for Scientific Research (21244012, 24253003),
the European Research Council (ERC) advanced grant 339659-MUSICOS, the Spanish
Ministry of Economy and Competitiveness (MINECO, grant number AYA2016-76219-P)
and the NextGenerationEU grant [...]
+ ,
+ {|'--.
+ {{\ \ $empty
+ Many thanks from all |/\`'--./=.
+ Gnuastro developers! \`\.---' \`\\
+ |\ ||
+ | |//
+ \//_/|
+ //\__/
+ //
+ (http://www.chris.com/ascii/) |/
+
+EOF
+}
+
+
+
+
+
# Functions to check option values and complain if necessary.
on_off_option_error() {
if [ x"$2" = x ]; then
@@ -241,7 +312,7 @@ do
-'?'*|--help=*) on_off_option_error --help -?;;
-V|--version) print_version; exit 0;;
-V*|--version=*) on_off_option_error --version -V;;
- --cite) astfits --cite; exit 0;;
+ --cite) print_citation; exit 0;;
--cite=*) on_off_option_error --cite;;
# Unrecognized option:
diff --git a/bin/script/psf-select-stars.in b/bin/script/psf-select-stars.in
index 08dfbb61..8440c02f 100644
--- a/bin/script/psf-select-stars.in
+++ b/bin/script/psf-select-stars.in
@@ -155,6 +155,77 @@ EOF
+# Output of `--cite':
+print_citation() {
+ empty="" # needed for the ascii art!
+ cat <<EOF
+
+Thank you for using $scriptname (GNU Astronomy Utilities) $version
+
+Citations and acknowledgement are vital for the continued work on Gnuastro.
+
+Please cite the following record(s) and add the acknowledgement statement
below in your work to support us. Please note that different Gnuastro programs
may have different corresponding papers. Hence, please check all the programs
you used. Don't forget to also include the version as shown above for
reproducibility.
+
+Paper describing the creation of an extended PSF
+------------------------------------------------
+@ARTICLE{gnuastro-psf,
+ author = {{Infante-Sainz}, Ra{\'u}l and {Trujillo}, Ignacio and
{Rom{\'a}n}, Javier},
+ title = "{The Sloan Digital Sky Survey extended point spread
functions}",
+ journal = {MNRAS},
+ year = 2020,
+ month = feb,
+ volume = {491},
+ number = {4},
+ pages = {5317},
+ doi = {10.1093/mnras/stz3111},
+archivePrefix = {arXiv},
+ eprint = {1911.01430},
+ primaryClass = {astro-ph.IM},
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2020MNRAS.491.5317I},
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
+}
+
+First paper introducing Gnuastro
+--------------------------------
+ @ARTICLE{gnuastro,
+ author = {{Akhlaghi}, M. and {Ichikawa}, T.},
+ title = "{Noise-based Detection and Segmentation of Nebulous Objects}",
+ journal = {ApJS},
+ archivePrefix = "arXiv",
+ eprint = {1505.01664},
+ primaryClass = "astro-ph.IM",
+ year = 2015,
+ month = sep,
+ volume = 220,
+ eid = {1},
+ pages = {1},
+ doi = {10.1088/0067-0049/220/1/1},
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2015ApJS..220....1A},
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
+ }
+
+Acknowledgement
+---------------
+This work was partly done using GNU Astronomy Utilities (Gnuastro,
ascl.net/1801.009) version $version. Work on Gnuastro has been funded by the
Japanese Ministry of Education, Culture, Sports, Science, and Technology (MEXT)
scholarship and its Grant-in-Aid for Scientific Research (21244012, 24253003),
the European Research Council (ERC) advanced grant 339659-MUSICOS, the Spanish
Ministry of Economy and Competitiveness (MINECO, grant number AYA2016-76219-P)
and the NextGenerationEU grant [...]
+ ,
+ {|'--.
+ {{\ \ $empty
+ Many thanks from all |/\`'--./=.
+ Gnuastro developers! \`\.---' \`\\
+ |\ ||
+ | |//
+ \//_/|
+ //\__/
+ //
+ (http://www.chris.com/ascii/) |/
+
+EOF
+}
+
+
+
+
+
# Functions to check option values and complain if necessary.
on_off_option_error() {
if [ x"$2" = x ]; then
@@ -269,7 +340,7 @@ do
-'?'*|--help=*) on_off_option_error --help -?;;
-V|--version) print_version; exit 0;;
-V*|--version=*) on_off_option_error --version -V;;
- --cite) astfits --cite; exit 0;;
+ --cite) print_citation; exit 0;;
--cite=*) on_off_option_error --cite;;
# Unrecognized option:
diff --git a/bin/script/psf-stamp.in b/bin/script/psf-stamp.in
index ac193f40..d5cd7c69 100644
--- a/bin/script/psf-stamp.in
+++ b/bin/script/psf-stamp.in
@@ -150,6 +150,77 @@ EOF
+# Output of `--cite':
+print_citation() {
+ empty="" # needed for the ascii art!
+ cat <<EOF
+
+Thank you for using $scriptname (GNU Astronomy Utilities) $version
+
+Citations and acknowledgement are vital for the continued work on Gnuastro.
+
+Please cite the following record(s) and add the acknowledgement statement
below in your work to support us. Please note that different Gnuastro programs
may have different corresponding papers. Hence, please check all the programs
you used. Don't forget to also include the version as shown above for
reproducibility.
+
+Paper describing the creation of an extended PSF
+------------------------------------------------
+@ARTICLE{gnuastro-psf,
+ author = {{Infante-Sainz}, Ra{\'u}l and {Trujillo}, Ignacio and
{Rom{\'a}n}, Javier},
+ title = "{The Sloan Digital Sky Survey extended point spread
functions}",
+ journal = {MNRAS},
+ year = 2020,
+ month = feb,
+ volume = {491},
+ number = {4},
+ pages = {5317},
+ doi = {10.1093/mnras/stz3111},
+archivePrefix = {arXiv},
+ eprint = {1911.01430},
+ primaryClass = {astro-ph.IM},
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2020MNRAS.491.5317I},
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
+}
+
+First paper introducing Gnuastro
+--------------------------------
+ @ARTICLE{gnuastro,
+ author = {{Akhlaghi}, M. and {Ichikawa}, T.},
+ title = "{Noise-based Detection and Segmentation of Nebulous Objects}",
+ journal = {ApJS},
+ archivePrefix = "arXiv",
+ eprint = {1505.01664},
+ primaryClass = "astro-ph.IM",
+ year = 2015,
+ month = sep,
+ volume = 220,
+ eid = {1},
+ pages = {1},
+ doi = {10.1088/0067-0049/220/1/1},
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2015ApJS..220....1A},
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
+ }
+
+Acknowledgement
+---------------
+This work was partly done using GNU Astronomy Utilities (Gnuastro,
ascl.net/1801.009) version $version. Work on Gnuastro has been funded by the
Japanese Ministry of Education, Culture, Sports, Science, and Technology (MEXT)
scholarship and its Grant-in-Aid for Scientific Research (21244012, 24253003),
the European Research Council (ERC) advanced grant 339659-MUSICOS, the Spanish
Ministry of Economy and Competitiveness (MINECO, grant number AYA2016-76219-P)
and the NextGenerationEU grant [...]
+ ,
+ {|'--.
+ {{\ \ $empty
+ Many thanks from all |/\`'--./=.
+ Gnuastro developers! \`\.---' \`\\
+ |\ ||
+ | |//
+ \//_/|
+ //\__/
+ //
+ (http://www.chris.com/ascii/) |/
+
+EOF
+}
+
+
+
+
+
# Functions to check option values and complain if necessary.
on_off_option_error() {
if [ x"$2" = x ]; then
@@ -254,7 +325,7 @@ do
-'?'*|--help=*) on_off_option_error --help -?;;
-V|--version) print_version; exit 0;;
-V*|--version=*) on_off_option_error --version -V;;
- --cite) astfits --cite; exit 0;;
+ --cite) print_citation; exit 0;;
--cite=*) on_off_option_error --cite;;
# Unrecognized option:
diff --git a/bin/script/psf-subtract.in b/bin/script/psf-subtract.in
index c704d266..b094d0a5 100644
--- a/bin/script/psf-subtract.in
+++ b/bin/script/psf-subtract.in
@@ -132,6 +132,77 @@ EOF
+# Output of `--cite':
+print_citation() {
+ empty="" # needed for the ascii art!
+ cat <<EOF
+
+Thank you for using $scriptname (GNU Astronomy Utilities) $version
+
+Citations and acknowledgement are vital for the continued work on Gnuastro.
+
+Please cite the following record(s) and add the acknowledgement statement
below in your work to support us. Please note that different Gnuastro programs
may have different corresponding papers. Hence, please check all the programs
you used. Don't forget to also include the version as shown above for
reproducibility.
+
+Paper describing the creation of an extended PSF
+------------------------------------------------
+@ARTICLE{gnuastro-psf,
+ author = {{Infante-Sainz}, Ra{\'u}l and {Trujillo}, Ignacio and
{Rom{\'a}n}, Javier},
+ title = "{The Sloan Digital Sky Survey extended point spread
functions}",
+ journal = {MNRAS},
+ year = 2020,
+ month = feb,
+ volume = {491},
+ number = {4},
+ pages = {5317},
+ doi = {10.1093/mnras/stz3111},
+archivePrefix = {arXiv},
+ eprint = {1911.01430},
+ primaryClass = {astro-ph.IM},
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2020MNRAS.491.5317I},
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
+}
+
+First paper introducing Gnuastro
+--------------------------------
+ @ARTICLE{gnuastro,
+ author = {{Akhlaghi}, M. and {Ichikawa}, T.},
+ title = "{Noise-based Detection and Segmentation of Nebulous Objects}",
+ journal = {ApJS},
+ archivePrefix = "arXiv",
+ eprint = {1505.01664},
+ primaryClass = "astro-ph.IM",
+ year = 2015,
+ month = sep,
+ volume = 220,
+ eid = {1},
+ pages = {1},
+ doi = {10.1088/0067-0049/220/1/1},
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2015ApJS..220....1A},
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
+ }
+
+Acknowledgement
+---------------
+This work was partly done using GNU Astronomy Utilities (Gnuastro,
ascl.net/1801.009) version $version. Work on Gnuastro has been funded by the
Japanese Ministry of Education, Culture, Sports, Science, and Technology (MEXT)
scholarship and its Grant-in-Aid for Scientific Research (21244012, 24253003),
the European Research Council (ERC) advanced grant 339659-MUSICOS, the Spanish
Ministry of Economy and Competitiveness (MINECO, grant number AYA2016-76219-P)
and the NextGenerationEU grant [...]
+ ,
+ {|'--.
+ {{\ \ $empty
+ Many thanks from all |/\`'--./=.
+ Gnuastro developers! \`\.---' \`\\
+ |\ ||
+ | |//
+ \//_/|
+ //\__/
+ //
+ (http://www.chris.com/ascii/) |/
+
+EOF
+}
+
+
+
+
+
# Functions to check option values and complain if necessary.
on_off_option_error() {
if [ x"$2" = x ]; then
@@ -222,7 +293,7 @@ do
-'?'*|--help=*) on_off_option_error --help -?;;
-V|--version) print_version; exit 0;;
-V*|--version=*) on_off_option_error --version -V;;
- --cite) astfits --cite; exit 0;;
+ --cite) print_citation; exit 0;;
--cite=*) on_off_option_error --cite;;
# Unrecognized option:
diff --git a/bin/script/psf-unite.in b/bin/script/psf-unite.in
index d409ea69..ec4836d0 100644
--- a/bin/script/psf-unite.in
+++ b/bin/script/psf-unite.in
@@ -134,6 +134,77 @@ EOF
+# Output of `--cite':
+print_citation() {
+ empty="" # needed for the ascii art!
+ cat <<EOF
+
+Thank you for using $scriptname (GNU Astronomy Utilities) $version
+
+Citations and acknowledgement are vital for the continued work on Gnuastro.
+
+Please cite the following record(s) and add the acknowledgement statement
below in your work to support us. Please note that different Gnuastro programs
may have different corresponding papers. Hence, please check all the programs
you used. Don't forget to also include the version as shown above for
reproducibility.
+
+Paper describing the creation of an extended PSF
+------------------------------------------------
+@ARTICLE{gnuastro-psf,
+ author = {{Infante-Sainz}, Ra{\'u}l and {Trujillo}, Ignacio and
{Rom{\'a}n}, Javier},
+ title = "{The Sloan Digital Sky Survey extended point spread
functions}",
+ journal = {MNRAS},
+ year = 2020,
+ month = feb,
+ volume = {491},
+ number = {4},
+ pages = {5317},
+ doi = {10.1093/mnras/stz3111},
+archivePrefix = {arXiv},
+ eprint = {1911.01430},
+ primaryClass = {astro-ph.IM},
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2020MNRAS.491.5317I},
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
+}
+
+First paper introducing Gnuastro
+--------------------------------
+ @ARTICLE{gnuastro,
+ author = {{Akhlaghi}, M. and {Ichikawa}, T.},
+ title = "{Noise-based Detection and Segmentation of Nebulous Objects}",
+ journal = {ApJS},
+ archivePrefix = "arXiv",
+ eprint = {1505.01664},
+ primaryClass = "astro-ph.IM",
+ year = 2015,
+ month = sep,
+ volume = 220,
+ eid = {1},
+ pages = {1},
+ doi = {10.1088/0067-0049/220/1/1},
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2015ApJS..220....1A},
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
+ }
+
+Acknowledgement
+---------------
+This work was partly done using GNU Astronomy Utilities (Gnuastro,
ascl.net/1801.009) version $version. Work on Gnuastro has been funded by the
Japanese Ministry of Education, Culture, Sports, Science, and Technology (MEXT)
scholarship and its Grant-in-Aid for Scientific Research (21244012, 24253003),
the European Research Council (ERC) advanced grant 339659-MUSICOS, the Spanish
Ministry of Economy and Competitiveness (MINECO, grant number AYA2016-76219-P)
and the NextGenerationEU grant [...]
+ ,
+ {|'--.
+ {{\ \ $empty
+ Many thanks from all |/\`'--./=.
+ Gnuastro developers! \`\.---' \`\\
+ |\ ||
+ | |//
+ \//_/|
+ //\__/
+ //
+ (http://www.chris.com/ascii/) |/
+
+EOF
+}
+
+
+
+
+
# Functions to check option values and complain if necessary.
on_off_option_error() {
if [ x"$2" = x ]; then
@@ -225,7 +296,7 @@ do
-'?'*|--help=*) on_off_option_error --help -?;;
-V|--version) print_version; exit 0;;
-V*|--version=*) on_off_option_error --version -V;;
- --cite) astfits --cite; exit 0;;
+ --cite) print_citation; exit 0;;
--cite=*) on_off_option_error --cite;;
# Unrecognized option:
diff --git a/lib/options.c b/lib/options.c
index 4d3e4a3d..2e2e3ef6 100644
--- a/lib/options.c
+++ b/lib/options.c
@@ -301,16 +301,17 @@ gal_options_print_citation(struct argp_option *option,
char *arg,
"Acknowledgement\n"
"---------------\n"
"This work was partly done using GNU Astronomy Utilities "
- "(Gnuastro, ascl.net/1801.009) version %s. Work on Gnuastro "
- "has been funded by the Japanese Ministry of Education, "
- "Culture, Sports, Science, and Technology (MEXT) scholarship "
- "and its Grant-in-Aid for Scientific Research (21244012, "
- "24253003), the European Research Council (ERC) advanced "
- "grant 339659-MUSICOS, European Union’s Horizon 2020 research "
- "and innovation programme under Marie Sklodowska-Curie grant "
- "agreement No 721463 to the SUNDIAL ITN, and from the Spanish "
- "Ministry of Economy and Competitiveness (MINECO) under grant "
- "number AYA2016-76219-P. ", PACKAGE_VERSION)<0 )
+ "(Gnuastro, ascl.net/1801.009) version %s. Work on "
+ "Gnuastro has been funded by the Japanese Ministry of "
+ "Education, Culture, Sports, Science, and Technology "
+ "(MEXT) scholarship and its Grant-in-Aid for Scientific "
+ "Research (21244012, 24253003), the European Research "
+ "Council (ERC) advanced grant 339659-MUSICOS, the "
+ "Spanish Ministry of Economy and Competitiveness "
+ "(MINECO, grant number AYA2016-76219-P) and the "
+ "NextGenerationEU grant through the Recovery and "
+ "Resilience Facility project ICTS-MRR-2021-03-CEFCA.",
+ PACKAGE_VERSION)<0 )
error(EXIT_FAILURE, 0, "%s: asprintf allocation", __func__);
printf("%s\n", gnuastro_acknowledgement);
free(gnuastro_acknowledgement);