The `asdf-wcs-schemas` library provides ASDF (Advanced Scientific Data Format) schemas specifically designed for validating World Coordinate System (WCS) tags. It is a crucial component within the broader ASDF ecosystem, particularly for astronomical data, and is typically consumed as a dependency by higher-level packages like `gwcs`. The current version is 0.5.0, and its release cadence is tied to updates in the ASDF Standard and related scientific data formats.
pip install asdf-wcs-schemasNo compatibility data collected yet for this library.
This quickstart demonstrates how to create and serialize a `gwcs` WCS object into an ASDF file. The `asdf-wcs-schemas` package is implicitly utilized by the `asdf` library during the write and read operations to validate the structure of the WCS data. This package is not intended for direct Python imports for user-level functionality, but rather provides the underlying schema definitions.
Install `gwcs` (or another ASDF extension that leverages WCS schemas) instead of `asdf-wcs-schemas` directly: `pip install gwcs`.
Always ensure `asdf`, `gwcs`, and `asdf-wcs-schemas` are kept up-to-date and compatible. Refer to the `gwcs` documentation for recommended dependency versions. Check the `asdf` changelog for details on schema deprecations and moves.
When creating or modifying ASDF files with WCS objects, ensure that the ASDF tags and manifest versions referenced in the file (e.g., `tag:stsci.edu:asdf/wcs/wcs-1.0.0`) are consistent with the `gwcs` library version being used for serialization. Always use the tags provided by `gwcs` rather than direct schema file references where possible.
Upgrade your `asdf` library to a version compatible with your `jsonschema` version, or explicitly pin `jsonschema` to a known compatible version (e.g., `<4.10.0`) if an `asdf` upgrade is not immediately feasible. Consult the `asdf` changelog for `jsonschema` compatibility notes.
This issue is typically resolved by upgrading the `asdf` package to a version that properly handles the changes in `jsonschema`'s API. Ensure `asdf` and `jsonschema` dependencies are updated.