distance_from_parallax
Convert parallax in milliarcseconds to distance in parsecs, rejecting non-positive values to avoid undefined results.
Instructions
Convert a parallax in milliarcseconds to a distance in parsecs.
Rejects non-positive parallaxes, for which distance is undefined, rather than returning a nonsense number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parallax_mas | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| error | No | ||
| value | Yes |