gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master 3edaaeec: Query: Added short version of Gaia D


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 3edaaeec: Query: Added short version of Gaia DR3 in VizieR
Date: Mon, 13 Jun 2022 10:05:56 -0400 (EDT)

branch: master
commit 3edaaeec7874b93e3fb841b5aa3509c9069ba7df
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    Query: Added short version of Gaia DR3 in VizieR
    
    Until now, we only had a short name for the main Gaia database of ESA. But
    VizieR also mirrors Gaia data and in some cases, its easier (with more
    standard column names for example!).
    
    With this commit the short name 'gaiadr3' has beed added as a VizieR
    dataset, so users don't have to remember (or query!) the low-level VizieR
    name.
---
 NEWS               | 8 ++++----
 bin/query/vizier.c | 5 +++++
 doc/gnuastro.texi  | 4 +++-
 3 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/NEWS b/NEWS
index 10bb036d..95a30150 100644
--- a/NEWS
+++ b/NEWS
@@ -47,10 +47,10 @@ See the end of the file for license conditions.
     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
+   - Short name for Gaia's DR3 dataset has been added for both ESA's Gaia
+     database and VizieR, for example with the following commands:
+         astquery gaia   --dataset=dr3     --center=1.234,5.678 --radius=0.01
+         astquery vizier --dataset=gaiadr3 --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/vizier.c b/bin/query/vizier.c
index 8ede20b0..5379f1dd 100644
--- a/bin/query/vizier.c
+++ b/bin/query/vizier.c
@@ -100,6 +100,11 @@ vizier_sanity_checks(struct queryparams *p)
           free(p->datasetstr);
           gal_checkset_allocate_copy("I/350/gaiaedr3", &p->datasetstr);
         }
+      else if( !strcmp(p->datasetstr, "gaiadr3") )
+        {
+          free(p->datasetstr);
+          gal_checkset_allocate_copy("I/355/gaiadr3", &p->datasetstr);
+        }
       else if( !strcmp(p->datasetstr, "galex5") )
         {
           free(p->datasetstr);
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index 5501680c..903b11cc 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -13825,10 +13825,12 @@ For details on each dataset with necessary citations, 
and links to web pages, lo
 @item
 @code{des1 --> II/357/des_dr1} (Dark Energy Survey data release 1)
 @item
-@code{gaiadr2 --> I/345/gaia2} (GAIA Data Release 2)
+@code{gaiadr3 --> I/355/gaiadr3} (GAIA Data Release 3)
 @item
 @code{gaiaedr3 --> I/350/gaiaedr3} (GAIA early Data Release 3)
 @item
+@code{gaiadr2 --> I/345/gaia2} (GAIA Data Release 2)
+@item
 @code{galex5 --> II/312/ais} (All-sky Survey of GALEX DR5)
 @item
 @code{nomad --> I/297/out} (Naval Observatory Merged Astrometric Dataset)



reply via email to

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