[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 937da181: Query: short name added for DR3 in G
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 937da181: Query: short name added for DR3 in Gaia database |
Date: |
Mon, 13 Jun 2022 06:15:29 -0400 (EDT) |
branch: master
commit 937da18155ff9a6580431f27e0eaac6c411f8f89
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Query: short name added for DR3 in Gaia database
Until now, the Query program was missing the Gaia DR3 datarease in its
short names (for easier usage).
With this commit, a short name ('dr3') has been added for Data Release 3 in
Gaia. We will later add the respective name in VizieR's mirror when it is
made available.
---
NEWS | 5 +++++
bin/query/gaia.c | 7 ++++++-
doc/gnuastro.texi | 2 ++
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/NEWS b/NEWS
index 5527148c..10bb036d 100644
--- a/NEWS
+++ b/NEWS
@@ -46,6 +46,11 @@ See the end of the file for license conditions.
--mcolnocustprof: new option to disable scaling of custom radial profiles
to required magnitude when building a 2D image from them.
+ Query:
+ - Short name for Gaia DR3 has been added, so you can access it with the
+ following command:
+ astquery gaia --dataset=dr3 --center=1.234,5.678 \
+ --radius=0.01
astscript-radial-profile:
--zeroisnotblank: new option to account for zero-valued pixels in the
diff --git a/bin/query/gaia.c b/bin/query/gaia.c
index d9d5395f..156dfc07 100644
--- a/bin/query/gaia.c
+++ b/bin/query/gaia.c
@@ -69,7 +69,12 @@ gaia_sanity_checks(struct queryparams *p)
/* Fix the summarized names. */
if(p->datasetstr)
{
- if( !strcmp(p->datasetstr, "edr3") )
+ if( !strcmp(p->datasetstr, "dr3") )
+ {
+ free(p->datasetstr);
+ gal_checkset_allocate_copy("gaiadr3.gaia_source", &p->datasetstr);
+ }
+ else if( !strcmp(p->datasetstr, "edr3") )
{
free(p->datasetstr);
gal_checkset_allocate_copy("gaiaedr3.gaia_source", &p->datasetstr);
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index 743a9496..5501680c 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -13721,6 +13721,8 @@ A query to @code{gaia} is submitted to
@code{https://gea.esac.esa.int/tap-server
Here is the list of short names for popular datasets within Gaia:
@itemize
@item
+@code{dr3 --> gaiadr3.gaia_source}
+@item
@code{edr3 --> gaiaedr3.gaia_source}
@item
@code{dr2 --> gaiadr2.gaia_source}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master 937da181: Query: short name added for DR3 in Gaia database,
Mohammad Akhlaghi <=