ASDF Coordinates Schemas (asdf-coordinates-schemas) provides ASDF schemas specifically for validating astronomical coordinate tags, primarily those defined by `astropy.coordinates`. This package is typically consumed as a dependency by higher-level integration packages like `asdf-astropy` rather than being installed directly by end-users. It is part of the broader ASDF ecosystem, is actively maintained, and is currently at version 0.5.1.
pip install asdf-coordinates-schemasVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how `asdf-coordinates-schemas` works implicitly. By installing `asdf-astropy` (which depends on `asdf-coordinates-schemas`), `astropy.coordinates` objects like `SkyCoord` can be seamlessly serialized into and deserialized from ASDF files. The schemas provided by this library ensure the correct validation and structure of the coordinate data within the ASDF file.
Ensure `asdf-astropy` is installed: `pip install asdf-astropy`. This will automatically install `asdf-coordinates-schemas` as a dependency.
When creating ASDF files, be mindful of the ASDF standard version used. When reading, `asdf` is generally backwards compatible, but ensure your `asdf-astropy` package supports the specific schema version of the coordinates tag in the file. Consult `asdf-astropy` and `asdf` change logs for specific migration details.
Replace `AsdfFile.open()` calls with `asdf.open()` for reading ASDF files. For example, `with asdf.open('file.asdf') as af:`.