Two single-coordinate endpoints. All responses are JSON. Coordinates are ICRS degrees; distance is parsecs. Values match the reference Python dustmaps package to within 1e-6 relative tolerance.
2D E(B−V) from the CSFD map (Chiang 2023), nearest HEALPix pixel, no interpolation.
| param | type | description |
|---|---|---|
ra | float, deg | Right ascension, ICRS |
dec | float, deg | Declination, ICRS, in [−90, 90] |
$ curl 'https://dustmaps.snad.space/api/v1/csfd?ra=83.6331&dec=22.0145'
{"ebv":0.5432}
3D E(B−V) from the Bayestar19 map (Green et al. 2019), mode='best',
with the 0.884 conversion factor already applied. Returns
{"ebv": null} (HTTP 200) outside the PS1 footprint (roughly dec < −30°).
| param | type | description |
|---|---|---|
ra | float, deg | Right ascension, ICRS |
dec | float, deg | Declination, ICRS, in [−90, 90] |
distance | float, pc | Distance, must be > 0 |
$ curl 'https://dustmaps.snad.space/api/v1/bayestar2019?ra=266.4051&dec=-28.936175&distance=8000'
{"ebv":1.9033}
$ curl 'https://dustmaps.snad.space/api/v1/bayestar2019?ra=0&dec=-80&distance=1000'
{"ebv":null}
Liveness probe. Returns {"status":"ok"} once both maps are mapped and
shape-validated; used by the container HEALTHCHECK.
Bad input (non-finite ra/dec, |dec| > 90, or
non-positive distance) → 400 with a JSON body:
{"error":"ra and dec must be finite, with -90 <= dec <= 90"}