Read from the package's own PHP files at the commit 0d1070b62473: its namespaces, classes, interfaces and enums, their public constants, properties and methods with their PHPDoc, and the options its factories take. Nothing of it is run.
RowclassOne row of a VizieR table (outside the contract): its table, its separation from the point asked, and its values by column - each a Property whose key is the column's name, whose label is VizieR's description, and whose value is a Quantity when the column has a unit.
2 methods · 3 properties
VizierSourceclassVizieR, the CDS's library of published astronomical catalogues (Strasbourg), through its TAP service: the tables whose description holds a text, as datasets (datasets(): a Product per table, its id the table's name, I/239/hip_main), and, outside the contract, the rows of a table around a point of the sky or an object (rows(), rowsOf()).
6 methods · 2 constants
VizierSourceFactoryclassVizieR, the CDS's library of published astronomical catalogues: its tables by text, and the rows of a table around a point of the sky - no key needed.
2 options
Omnilab\Vizier
Row class
final readonly class Row Row.php:13
One row of a VizieR table (outside the contract): its table, its separation from the point asked, and its values by column - each a Property whose key is the column's name, whose label is VizieR's description, and whose value is a Quantity when the column has a unit.
public string $tablepublic ?float $separationpublic array $values
Row::__construct()
public function __construct(public string $table, public ?float $separation, public array $values)Row::value()
public function value(string $column): mixedA column's value: a Quantity, a number, a text; null when empty or absent.
VizierSource class
final class VizierSource extends HttpSource VizierSource.php:27
VizieR, the CDS's library of published astronomical catalogues (Strasbourg), through its TAP service: the tables whose description holds a text, as datasets (datasets(): a Product per table, its id the table's name, I/239/hip_main), and, outside the contract, the rows of a table around a point of the sky or an object (rows(), rowsOf()).
No key. VizieR's ADQL has no OFFSET, no ILIKE and no LOWER: a search is one page, and asks each word as written, lower case, capitalised and upper case.
const BASE_URI = 'https://tapvizier.cds.unistra.fr/TAPVizieR/tap/'const MAX_LIMIT = 1000The most tables a search gives, the most rows a cone.
VizierSource::__construct()
public function __construct(HttpClientInterface $http, string $baseUri = self::BASE_URI, array $headers = [], float $throttle = 0.0)VizierSource::getName()
public function getName(): stringVizierSource::capabilities()
public function capabilities(): arrayVizierSource::datasets()
public function datasets(Query $query): PageThe tables whose description holds every word of the text, the largest first (VizieR ranks nothing), one page: Page::$next is always null, and Page::$total known when fewer than the limit were found. Each a Product: its id the table's name (I/239/hip_main), its collection the catalogue's (I/239), its title and authors, its rows.
VizierSource::rows()
public function rows(string $table, float $ra, float $dec, float $radius = 5 / 3600, int $limit = 50): arrayThe rows of a table within a radius of a point of the sky, the nearest first, by the table's main position columns (its pos.eq.ra;meta.main and pos.eq.dec;meta.main: one call to read them, one for the rows). Outside the contract: the core's places are on the Earth, and a row is no entity of its own.
$tableVizieR's name: I/239/hip_main, I/355/gaiadr3
$radegrees (ICRS / J2000)
$decdegrees
$radiusdegrees (5 arcseconds by default)
VizierSource::rowsOf()
public function rowsOf(string $table, Entity $object, float $radius = 5 / 3600, int $limit = 50): arrayThe rows of a table around an entity that has a position on the sky - its "ra" and "dec" properties in degrees, as omnilab/simbad, omnilab/ned and omnilab/gaia give them.
VizierSourceFactory class
final class VizierSourceFactory extends SourceFactory VizierSourceFactory.php:20
VizieR, the CDS's library of published astronomical catalogues: its tables by text, and the rows of a table around a point of the sky - no key needed.
options: mailto: 'support@glitchr.io' # in the User-Agent throttle: 0 # seconds between two calls: the CDS publishes no rate for TAP base_uri: 'https://tapvizier.cds.unistra.fr/TAPVizieR/tap/'
Options
| Option | Default | |
|---|---|---|
throttle | 0.0 | |
base_uri | VizierSource::BASE_URI |