Subject: | Astro::Catalog::Query::Vizier V4.35 sometimes returns truncated results. |
Date: | Wed, 29 Apr 2020 14:52:28 +0100 |
To: | bug-Astro-Catalog [...] rt.cpan.org |
From: | Paul Leyland <paul [...] leyland.vispa.com> |
#! /usr/bin/perl
=for comment
Astro::Catalog::Query::Vizier V4.35 sometimes returns truncated results.
Testing environment:
#--------------------------------------------------------------------
$ uname -a
Linux thoth 5.3.0-19-generic #20-Ubuntu SMP Fri Oct 18 09:04:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ perl -v
This is perl 5, version 28, subversion 1 (v5.28.1) built for x86_64-linux-gnu-thread-multi
(with 61 registered patches, see perl -V for more detail)
#--------------------------------------------------------------------
The following script reports that 55 records are returned by the query.
Interactive searching as http://vizier.u-strasbg.fr/viz-bin/VizieR-4 returns
315 records. Using vizquery from cdsclient-3.84 yields this result:
$ vizquery -source=I/345/gaia2 -out.max=1000 -c.rm=5 -c='00:32:15 41:57:00' | wc
#...input_file=0, list=
#...ASU parameters being sent to vizier
378 7978 97884
Filtering out the header lines yields 315 as in the interactive case:
$ vizquery -source=I/345/gaia2 -out.max=1000 -c.rm=5 -c='00:32:15 41:57:00' | grep '^00' | wc
#...input_file=0, list=
#...ASU parameters being sent to vizier
315 7427 92952
I have not yet been able to work out why a reproducibly specific subset is returned and the
other 260 records discarded but am willing to provide more assistance if suitably guided.
Incidentally, the co-ordinates are (approximately) those of the variable star LS And.
=cut
use Astro::Catalog::Query::Vizier;
my $gaia_dr2 = new Astro::Catalog::Query::Vizier (
Catalog => 'I/345/gaia2',
RA =>'00 32 15',
Dec => '41 57 00',
Radius => 5,
Number => 1000,
);
@stars = ($gaia_dr2->querydb()->{ALLSTARS})[0]; # Run the query ...
@records = @{$stars[0]}; # ... saving only the array of stellar data.
print 1+$#records, " records returned.\n";