diff --git a/scientific-skills/simbad-database/SKILL.md b/scientific-skills/simbad-database/SKILL.md new file mode 100644 index 00000000..2aac2e17 --- /dev/null +++ b/scientific-skills/simbad-database/SKILL.md @@ -0,0 +1,391 @@ +--- +name: simbad-database +description: Direct access to the SIMBAD astronomical database via REST API and TAP/ADQL. Query astronomical objects by name, coordinates, or identifier patterns. Retrieve object types, coordinates, photometry, proper motions, radial velocities, and bibliographic references for millions of objects beyond the Solar System. Use this when tasks involve identifying astronomical objects, resolving object names to coordinates, cross-matching sources, or performing complex catalog queries with ADQL. +license: CDS Terms of Use +metadata: + skill-author: Steven +--- + +# SIMBAD Database + +## Overview + +SIMBAD (Set of Identifications, Measurements and Bibliography for Astronomical Data) is a comprehensive astronomical database operated by the Centre de Données astronomiques de Strasbourg (CDS). It contains data on over 17 million astronomical objects beyond the Solar System, including identifications, coordinates, photometry, proper motions, parallaxes, radial velocities, spectral types, and bibliographic references. + +SIMBAD provides two main access methods: +1. **Script interface** (`sim-script`) — Simple queries by name, coordinates, or identifier pattern +2. **TAP service** (`sim-tap`) — Complex queries using ADQL (Astronomical Data Query Language), a SQL-like language for astronomical databases + +## When to Use This Skill + +Use this skill when tasks involve: +- Resolving astronomical object names to coordinates (e.g., "Where is M31?") +- Looking up object properties: type, spectral type, magnitudes, radial velocity, parallax +- Searching for objects near a sky position (cone search) +- Finding objects matching an identifier pattern (e.g., all NGC objects starting with "10") +- Querying SIMBAD tables with complex criteria using ADQL (object type, magnitude range, coordinate box, etc.) +- Cross-referencing object identifiers across catalogs (HD, HIP, NGC, IC, 2MASS, Gaia, etc.) +- Retrieving bibliographic references for an astronomical object +- Building source lists for observing proposals or catalog studies + +For Python-based coordinate transformations, FITS file handling, or cosmological calculations, use the **astropy** skill instead. SIMBAD complements astropy by providing the catalog data that astropy can then process. + +## Quick Start + +### Using requests (direct HTTP) + +```python +import requests + +# Query an object by name +response = requests.post( + "https://simbad.cds.unistra.fr/simbad/sim-script", + data={"script": '\n'.join([ + "output console=off script=off", + 'format object "%IDLIST(1) | %COO(A D;ICRS) | %OTYPE | %SP | %FLUXLIST(V)"', + "query id M31", + ])} +) +print(response.text) +``` + +### Using astroquery (recommended for Python workflows) + +```python +from astroquery.simbad import Simbad + +result = Simbad.query_object("M31") +print(result) +``` + +### Using TAP/ADQL for complex queries + +```python +import requests + +params = { + "REQUEST": "doQuery", + "LANG": "ADQL", + "QUERY": "SELECT TOP 10 main_id, ra, dec, otype FROM basic WHERE otype = 'Galaxy' AND ra BETWEEN 10 AND 12", + "FORMAT": "json", +} +response = requests.post( + "https://simbad.cds.unistra.fr/simbad/sim-tap/sync", + data=params +) +print(response.json()) +``` + +## Core Capabilities + +### 1. Query by Object Name + +Resolve any astronomical object name to its properties. SIMBAD recognizes catalog designations (M31, NGC 1068, HD 209458), common names (Sirius, Betelgeuse, Andromeda), and survey identifiers (2MASS, Gaia DR3, SDSS). + +**Key operations:** +- Get coordinates (ICRS, FK5, Galactic) +- Get object type classification +- Get spectral type +- Get photometric magnitudes (U, B, V, R, I, J, H, K) +- Get proper motion, parallax, and radial velocity +- Get all known identifiers for an object + +**See:** `references/api_reference.md` for format strings and output customization. + +### 2. Coordinate (Cone) Search + +Find all objects within a given radius of a sky position. + +```python +from astroquery.simbad import Simbad +from astropy.coordinates import SkyCoord +import astropy.units as u + +coord = SkyCoord(ra=10.68458, dec=41.26917, unit="deg", frame="icrs") +result = Simbad.query_region(coord, radius=5 * u.arcmin) +print(result) +``` + +Or via the script interface: + +```python +import requests + +script = '\n'.join([ + "output console=off script=off", + 'format object "%IDLIST(1) | %COO(A D;ICRS) | %OTYPE"', + "query coo 10.68458 +41.26917 radius=5m", +]) +response = requests.post( + "https://simbad.cds.unistra.fr/simbad/sim-script", + data={"script": script} +) +print(response.text) +``` + +### 3. Identifier Pattern Search + +Search for objects matching a wildcard identifier pattern. + +```python +import requests + +script = '\n'.join([ + "output console=off script=off", + 'format object "%IDLIST(1) | %COO(A D;ICRS) | %OTYPE"', + "query id wildcard NGC 10*", +]) +response = requests.post( + "https://simbad.cds.unistra.fr/simbad/sim-script", + data={"script": script} +) +print(response.text) +``` + +### 4. Advanced ADQL Queries via TAP + +Use ADQL (a SQL dialect for astronomy) to query SIMBAD's relational tables with full filtering, joins, and aggregation. + +**Key tables:** +- `basic` — Core object data (main_id, ra, dec, otype, sp_type, plx, rvz_radvel, pmra, pmdec) +- `ident` — All identifiers for each object +- `flux` — Photometric measurements +- `mesDistance` — Distance measurements +- `biblio` — Bibliographic references +- `otypedef` — Object type definitions and descriptions + +```python +import requests + +query = """ +SELECT TOP 20 main_id, ra, dec, otype, sp_type, plx_value +FROM basic +WHERE otype = 'Star' + AND plx_value > 100 +ORDER BY plx_value DESC +""" + +response = requests.post( + "https://simbad.cds.unistra.fr/simbad/sim-tap/sync", + data={ + "REQUEST": "doQuery", + "LANG": "ADQL", + "QUERY": query, + "FORMAT": "json", + } +) +data = response.json() +for row in data.get("data", []): + print(row) +``` + +**See:** `references/adql_reference.md` for table schemas, joins, and advanced query patterns. + +### 5. Using astroquery.simbad (Recommended Python Interface) + +The `astroquery` package provides a Pythonic interface with automatic result parsing into astropy Tables. + +```python +from astroquery.simbad import Simbad + +# Add custom fields to the default query +custom_simbad = Simbad() +custom_simbad.add_votable_fields('sp', 'flux(V)', 'flux(B)', 'plx', 'rv_value') + +# Query by name +result = custom_simbad.query_object("Vega") +print(result.colnames) +print(result) + +# Query by region +from astropy.coordinates import SkyCoord +import astropy.units as u + +center = SkyCoord("05h23m34.5s", "-69d45m22s", frame="icrs") +result = custom_simbad.query_region(center, radius=10 * u.arcmin) +print(f"Found {len(result)} objects") +``` + +## Installation + +```bash +# For direct HTTP access (no extra dependencies) +uv pip install requests + +# For the recommended astroquery interface +uv pip install astroquery astropy +``` + +## Common Workflows + +### Resolving an Object Name to Coordinates + +```python +from astroquery.simbad import Simbad + +result = Simbad.query_object("Crab Nebula") +ra = result['RA'][0] +dec = result['DEC'][0] +print(f"Crab Nebula: RA={ra}, DEC={dec}") +``` + +### Getting All Known Identifiers for an Object + +```python +from astroquery.simbad import Simbad + +ids = Simbad.query_objectids("M1") +for row in ids: + print(row['ID']) +``` + +### Finding Bright Stars Near a Position + +```python +import requests + +query = """ +SELECT main_id, ra, dec, otype, sp_type, + FLUX_V as Vmag +FROM basic +JOIN flux ON basic.oid = flux.oidref AND flux.filter = 'V' +WHERE CONTAINS(POINT('ICRS', ra, dec), + CIRCLE('ICRS', 83.633, 22.014, 1.0)) = 1 + AND FLUX_V < 8 +ORDER BY FLUX_V ASC +""" + +response = requests.post( + "https://simbad.cds.unistra.fr/simbad/sim-tap/sync", + data={ + "REQUEST": "doQuery", + "LANG": "ADQL", + "QUERY": query, + "FORMAT": "json", + } +) +for row in response.json().get("data", []): + print(row) +``` + +### Cross-Matching with External Catalogs + +```python +import requests + +query = """ +SELECT b.main_id, b.ra, b.dec, b.otype, i.id AS gaia_id +FROM basic AS b +JOIN ident AS i ON b.oid = i.oidref +WHERE i.id LIKE 'Gaia DR3%' + AND b.otype = 'Planet' +ORDER BY b.main_id +""" + +response = requests.post( + "https://simbad.cds.unistra.fr/simbad/sim-tap/sync", + data={ + "REQUEST": "doQuery", + "LANG": "ADQL", + "QUERY": query, + "FORMAT": "json", + "MAXREC": 50, + } +) +print(response.json()) +``` + +### Retrieving Bibliography for an Object + +```python +from astroquery.simbad import Simbad + +refs = Simbad.query_bibobj("M31") +print(f"Found {len(refs)} bibliographic references for M31") +print(refs[:5]) +``` + +## Python Implementation + +For programmatic access, use the provided helper script `scripts/simbad_client.py` which implements: + +- `query_object(name, output_format)` — Query by object name +- `query_region(ra, dec, radius, max_results)` — Cone search by coordinates +- `query_identifiers(pattern, max_results)` — Wildcard identifier search +- `tap_query(adql_query, max_results, fmt)` — Execute ADQL via TAP +- `get_all_identifiers(name)` — Get all catalog IDs for an object + +**Alternative Python packages:** +- **astroquery**: Full-featured astronomical query package (recommended) +- **pyvo**: Generic Virtual Observatory (VO) TAP client + +## Object Type Codes + +SIMBAD uses a hierarchical object type classification. Common codes: + +| Code | Description | +|------|-------------| +| `Star` | Star | +| `HII` | HII region | +| `PN` | Planetary nebula | +| `SNR` | Supernova remnant | +| `Galaxy` | Galaxy | +| `AGN` | Active galactic nucleus | +| `QSO` | Quasar | +| `GClstr` | Galaxy cluster | +| `GlobCl` | Globular cluster | +| `OpCl` | Open cluster | +| `Pulsar` | Pulsar | +| `WD*` | White dwarf | +| `Planet` | Extra-solar planet | +| `**` | Double/multiple star | +| `V*` | Variable star | +| `X` | X-ray source | + +Use the `otypedef` table via TAP to get the full list: + +```python +import requests + +response = requests.post( + "https://simbad.cds.unistra.fr/simbad/sim-tap/sync", + data={ + "REQUEST": "doQuery", + "LANG": "ADQL", + "QUERY": "SELECT * FROM otypedef ORDER BY otype", + "FORMAT": "json", + } +) +for row in response.json().get("data", []): + print(row) +``` + +## Best Practices + +1. **Prefer astroquery for Python workflows**: It handles pagination, parsing, and error handling automatically +2. **Use TAP/ADQL for complex queries**: The script interface is best for simple lookups; TAP supports joins, aggregation, and spatial queries +3. **Respect rate limits**: SIMBAD is a free public service; avoid rapid-fire requests. Add `time.sleep(0.5)` between batch queries +4. **Use `MAXREC` in TAP queries**: Always limit results to avoid accidentally downloading millions of rows +5. **Check coordinate frames**: SIMBAD defaults to ICRS (J2000); be explicit about frames when cross-matching +6. **Use `CONTAINS(POINT, CIRCLE)` for cone searches in ADQL**: This is the standard VO spatial predicate +7. **Handle missing data**: Not all objects have all measurements; check for NULL/empty values +8. **Verify object types**: Use the condensed object type (`otype`) for filtering, not the long description +9. **Cache results locally**: Store frequently accessed object data to minimize API calls +10. **Use VOTable format for large TAP results**: It preserves data types and units better than JSON + +## Resources + +### scripts/ +`simbad_client.py` — Python client with helper functions for common SIMBAD operations including name queries, coordinate searches, identifier pattern matching, and TAP/ADQL queries. + +### references/ +- `api_reference.md` — Script interface format strings, output fields, and query syntax +- `adql_reference.md` — SIMBAD TAP table schemas, ADQL syntax, joins, spatial queries, and advanced patterns + +## Additional Resources + +- **SIMBAD Web Interface**: https://simbad.cds.unistra.fr/simbad/ +- **SIMBAD TAP Documentation**: https://simbad.cds.unistra.fr/simbad/tap/help/ +- **astroquery SIMBAD Module**: https://astroquery.readthedocs.io/en/latest/simbad/simbad.html +- **ADQL Specification**: https://www.ivoa.net/documents/ADQL/ +- **CDS Portal**: https://cds.unistra.fr/ diff --git a/scientific-skills/simbad-database/references/adql_reference.md b/scientific-skills/simbad-database/references/adql_reference.md new file mode 100644 index 00000000..4ff1221c --- /dev/null +++ b/scientific-skills/simbad-database/references/adql_reference.md @@ -0,0 +1,373 @@ +# SIMBAD TAP/ADQL Reference + +SIMBAD provides a TAP (Table Access Protocol) service that accepts ADQL (Astronomical Data Query Language) queries. ADQL is a SQL-like language defined by the International Virtual Observatory Alliance (IVOA) with extensions for astronomical spatial operations. + +## TAP Endpoint + +``` +POST https://simbad.cds.unistra.fr/simbad/sim-tap/sync +Content-Type: application/x-www-form-urlencoded + +Parameters: + REQUEST=doQuery + LANG=ADQL + QUERY= + FORMAT=json|votable|csv|tsv + MAXREC= +``` + +## Core Tables + +### `basic` — Main Object Table + +The primary table containing one row per astronomical object. + +| Column | Type | Description | +|--------|------|-------------| +| `oid` | BIGINT | Internal object identifier (primary key) | +| `main_id` | VARCHAR | Primary object identifier | +| `ra` | DOUBLE | Right Ascension in degrees (ICRS) | +| `dec` | DOUBLE | Declination in degrees (ICRS) | +| `otype` | VARCHAR | Condensed object type code | +| `sp_type` | VARCHAR | Spectral type | +| `plx_value` | DOUBLE | Parallax in milliarcseconds | +| `plx_err` | DOUBLE | Parallax error | +| `pmra` | DOUBLE | Proper motion in RA (mas/yr) | +| `pmdec` | DOUBLE | Proper motion in Dec (mas/yr) | +| `rvz_radvel` | DOUBLE | Radial velocity (km/s) | +| `rvz_err` | DOUBLE | Radial velocity error | +| `galdim_majaxis` | DOUBLE | Galaxy major axis (arcmin) | +| `galdim_minaxis` | DOUBLE | Galaxy minor axis (arcmin) | +| `galdim_angle` | DOUBLE | Galaxy position angle (degrees) | + +### `ident` — Identifier Table + +All known identifiers for each object. An object can have many identifiers across different catalogs. + +| Column | Type | Description | +|--------|------|-------------| +| `oidref` | BIGINT | Reference to `basic.oid` | +| `id` | VARCHAR | Identifier string | + +### `flux` — Photometric Measurements + +Flux/magnitude measurements in various photometric bands. + +| Column | Type | Description | +|--------|------|-------------| +| `oidref` | BIGINT | Reference to `basic.oid` | +| `filter` | VARCHAR | Filter name (U, B, V, R, I, J, H, K, u, g, r, i, z, G, etc.) | +| `flux` | DOUBLE | Magnitude value | +| `flux_err` | DOUBLE | Magnitude error | +| `bibcode` | VARCHAR | Source reference bibcode | + +### `mesDistance` — Distance Measurements + +Published distance measurements. + +| Column | Type | Description | +|--------|------|-------------| +| `oidref` | BIGINT | Reference to `basic.oid` | +| `dist` | DOUBLE | Distance value | +| `unit` | VARCHAR | Distance unit (pc, kpc, Mpc) | +| `minus_err` | DOUBLE | Lower error | +| `plus_err` | DOUBLE | Upper error | +| `method` | VARCHAR | Measurement method | +| `bibcode` | VARCHAR | Source reference | + +### `has_ref` — Bibliographic References + +Links objects to their bibliographic references. + +| Column | Type | Description | +|--------|------|-------------| +| `oidref` | BIGINT | Reference to `basic.oid` | +| `oidbibref` | BIGINT | Reference to `ref.oidbib` | + +### `ref` — Reference Details + +| Column | Type | Description | +|--------|------|-------------| +| `oidbib` | BIGINT | Bibliography object ID | +| `bibcode` | VARCHAR | ADS bibcode | +| `title` | VARCHAR | Paper title | +| `journal` | VARCHAR | Journal name | +| `year` | INTEGER | Publication year | + +### `otypedef` — Object Type Definitions + +Lookup table for the object type classification hierarchy. + +| Column | Type | Description | +|--------|------|-------------| +| `otype` | VARCHAR | Object type code | +| `description` | VARCHAR | Human-readable description | + +## ADQL Syntax + +### Basic SELECT + +```sql +SELECT main_id, ra, dec, otype +FROM basic +WHERE otype = 'Star' +LIMIT 10 +``` + +### TOP N (Alternative to LIMIT) + +```sql +SELECT TOP 10 main_id, ra, dec +FROM basic +WHERE otype = 'Galaxy' +``` + +### WHERE Clauses + +```sql +-- Numeric comparisons +WHERE plx_value > 50 +WHERE rvz_radvel BETWEEN -100 AND 100 + +-- String matching +WHERE main_id = 'M 31' +WHERE sp_type LIKE 'O%' +WHERE otype IN ('Star', 'WD*', 'Pulsar') + +-- NULL handling +WHERE plx_value IS NOT NULL +WHERE sp_type IS NOT NULL +``` + +### JOINs + +```sql +-- Get V-band magnitudes with object data +SELECT b.main_id, b.ra, b.dec, b.otype, f.flux AS Vmag +FROM basic AS b +JOIN flux AS f ON b.oid = f.oidref +WHERE f.filter = 'V' + AND f.flux < 6.0 +ORDER BY f.flux ASC + +-- Get all identifiers for an object +SELECT b.main_id, i.id +FROM basic AS b +JOIN ident AS i ON b.oid = i.oidref +WHERE b.main_id = 'M 31' + +-- Get distance measurements +SELECT b.main_id, d.dist, d.unit, d.method +FROM basic AS b +JOIN mesDistance AS d ON b.oid = d.oidref +WHERE b.main_id = 'M 31' +``` + +### Spatial Queries + +ADQL supports geometric predicates from the IVOA standard: + +#### Cone Search (CONTAINS + CIRCLE) + +Find objects within a radius of a point: + +```sql +SELECT main_id, ra, dec, otype +FROM basic +WHERE CONTAINS( + POINT('ICRS', ra, dec), + CIRCLE('ICRS', 83.633, 22.014, 0.5) +) = 1 +``` + +Parameters: `CIRCLE('ICRS', center_ra_deg, center_dec_deg, radius_deg)` + +#### Box Search (CONTAINS + BOX) + +```sql +SELECT main_id, ra, dec, otype +FROM basic +WHERE CONTAINS( + POINT('ICRS', ra, dec), + BOX('ICRS', 180.0, 0.0, 10.0, 5.0) +) = 1 +``` + +Parameters: `BOX('ICRS', center_ra, center_dec, width_deg, height_deg)` + +#### Polygon Search + +```sql +SELECT main_id, ra, dec +FROM basic +WHERE CONTAINS( + POINT('ICRS', ra, dec), + POLYGON('ICRS', 10.0, 40.0, 12.0, 40.0, 12.0, 42.0, 10.0, 42.0) +) = 1 +``` + +#### Distance Between Points + +```sql +SELECT main_id, ra, dec, + DISTANCE(POINT('ICRS', ra, dec), + POINT('ICRS', 10.68458, 41.26917)) AS dist_deg +FROM basic +WHERE CONTAINS( + POINT('ICRS', ra, dec), + CIRCLE('ICRS', 10.68458, 41.26917, 0.1) +) = 1 +ORDER BY dist_deg ASC +``` + +### Aggregation + +```sql +-- Count objects by type +SELECT otype, COUNT(*) AS n +FROM basic +GROUP BY otype +ORDER BY n DESC + +-- Average parallax by spectral class +SELECT SUBSTRING(sp_type, 1, 1) AS sp_class, + AVG(plx_value) AS mean_plx, + COUNT(*) AS n +FROM basic +WHERE sp_type IS NOT NULL + AND plx_value IS NOT NULL +GROUP BY sp_class +ORDER BY sp_class +``` + +## Common Query Patterns + +### Find Nearby Stars with Full Data + +```sql +SELECT b.main_id, b.ra, b.dec, b.sp_type, + b.plx_value, b.pmra, b.pmdec, b.rvz_radvel, + f.flux AS Vmag +FROM basic AS b +LEFT JOIN flux AS f ON b.oid = f.oidref AND f.filter = 'V' +WHERE b.otype = 'Star' + AND b.plx_value > 100 +ORDER BY b.plx_value DESC +``` + +### Find Galaxies in a Sky Region with Redshifts + +```sql +SELECT main_id, ra, dec, otype, rvz_radvel, + galdim_majaxis, galdim_minaxis +FROM basic +WHERE CONTAINS( + POINT('ICRS', ra, dec), + CIRCLE('ICRS', 185.0, 12.7, 2.0) +) = 1 + AND otype = 'Galaxy' + AND rvz_radvel IS NOT NULL +ORDER BY rvz_radvel ASC +``` + +### Cross-Match Identifiers Between Catalogs + +```sql +SELECT b.main_id, + i1.id AS hipparcos_id, + i2.id AS gaia_id +FROM basic AS b +JOIN ident AS i1 ON b.oid = i1.oidref AND i1.id LIKE 'HIP %' +JOIN ident AS i2 ON b.oid = i2.oidref AND i2.id LIKE 'Gaia DR3%' +WHERE b.otype = 'Star' + AND b.plx_value > 50 +``` + +### Get Bibliography for Objects in a Region + +```sql +SELECT b.main_id, r.bibcode, r.title, r.year +FROM basic AS b +JOIN has_ref AS hr ON b.oid = hr.oidref +JOIN ref AS r ON hr.oidbibref = r.oidbib +WHERE CONTAINS( + POINT('ICRS', b.ra, b.dec), + CIRCLE('ICRS', 83.633, -5.375, 0.5) +) = 1 + AND r.year >= 2020 +ORDER BY r.year DESC +``` + +### Object Type Statistics in a Region + +```sql +SELECT otype, COUNT(*) AS count +FROM basic +WHERE CONTAINS( + POINT('ICRS', ra, dec), + CIRCLE('ICRS', 266.417, -29.008, 1.0) +) = 1 +GROUP BY otype +HAVING COUNT(*) > 5 +ORDER BY count DESC +``` + +## Python Example: Full TAP Workflow + +```python +import requests +import json + +def simbad_tap_query(adql, max_results=100, fmt="json"): + """Execute an ADQL query on SIMBAD via TAP.""" + response = requests.post( + "https://simbad.cds.unistra.fr/simbad/sim-tap/sync", + data={ + "REQUEST": "doQuery", + "LANG": "ADQL", + "QUERY": adql, + "FORMAT": fmt, + "MAXREC": max_results, + }, + timeout=60, + ) + response.raise_for_status() + + if fmt == "json": + return response.json() + return response.text + + +# Example: nearest stars with complete kinematics +results = simbad_tap_query(""" + SELECT TOP 50 main_id, ra, dec, sp_type, + plx_value, pmra, pmdec, rvz_radvel + FROM basic + WHERE plx_value > 200 + AND pmra IS NOT NULL + AND rvz_radvel IS NOT NULL + ORDER BY plx_value DESC +""") + +metadata = results.get("metadata", []) +col_names = [m["name"] for m in metadata] + +print(" | ".join(col_names)) +print("-" * 80) +for row in results.get("data", []): + print(" | ".join(str(v) for v in row)) +``` + +## Limitations + +- **Synchronous TAP only**: SIMBAD supports `sync` mode (results returned directly). For very large queries, consider async TAP or use `MAXREC` to paginate. +- **No upload tables**: SIMBAD TAP does not support uploading user tables for cross-matching. Use astroquery or CDS XMatch service for that. +- **Coordinate precision**: SIMBAD coordinates are compiled from heterogeneous sources; check the `coo_qual` field for quality indicators. +- **Timeout**: Queries exceeding ~60 seconds may time out. Add `TOP` or tighten `WHERE` clauses for complex queries. + +## Resources + +- SIMBAD TAP Help: https://simbad.cds.unistra.fr/simbad/tap/help/ +- ADQL 2.1 Specification: https://www.ivoa.net/documents/ADQL/20231215/ +- SIMBAD Table Descriptions: https://simbad.cds.unistra.fr/simbad/tap/taptable.htx +- TAP Protocol: https://www.ivoa.net/documents/TAP/ diff --git a/scientific-skills/simbad-database/references/api_reference.md b/scientific-skills/simbad-database/references/api_reference.md new file mode 100644 index 00000000..a9eb9bc0 --- /dev/null +++ b/scientific-skills/simbad-database/references/api_reference.md @@ -0,0 +1,231 @@ +# SIMBAD Script Interface API Reference + +The SIMBAD script interface (`sim-script`) accepts plain-text scripts via HTTP POST and returns formatted results. It is the simplest way to query SIMBAD for individual objects or small batches. + +## Endpoint + +``` +POST https://simbad.cds.unistra.fr/simbad/sim-script +Content-Type: application/x-www-form-urlencoded + +Body: script=