././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638642813.9497015 asdf_coordinates_schemas-0.1.0/0000755000446400020070000000000000000000000017457 5ustar00eslavichSTSCI\science././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638642813.9133728 asdf_coordinates_schemas-0.1.0/.github/0000755000446400020070000000000000000000000021017 5ustar00eslavichSTSCI\science././@PaxHeader0000000000000000000000000000003200000000000010210 xustar0026 mtime=1638642813.91874 asdf_coordinates_schemas-0.1.0/.github/workflows/0000755000446400020070000000000000000000000023054 5ustar00eslavichSTSCI\science././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/.github/workflows/ci.yml0000644000446400020070000000272400000000000024177 0ustar00eslavichSTSCI\sciencename: CI on: push: branches: - main tags: - '*' pull_request: schedule: # Weekly Monday 9AM build - cron: '0 9 * * 1' jobs: tox: name: ${{ matrix.name }} runs-on: ${{ matrix.runs-on }} strategy: fail-fast: false matrix: include: - name: Python 3.7 runs-on: ubuntu-latest python-version: "3.7" toxenv: py37 - name: Python 3.9 runs-on: ubuntu-latest python-version: "3.9" toxenv: py39 - name: Python 3.10 runs-on: ubuntu-latest python-version: "3.10" toxenv: py310 - name: Twine check runs-on: ubuntu-latest python-version: "3.9" toxenv: twine - name: Code style checks runs-on: ubuntu-latest python-version: "3.9" toxenv: style - name: Bandit security audit runs-on: ubuntu-latest python-version: "3.9" toxenv: bandit steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - name: Install tox run: | python -m pip install --upgrade pip pip install tox - name: Run tox run: tox -e ${{ matrix.toxenv }} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638642336.0 asdf_coordinates_schemas-0.1.0/.gitignore0000644000446400020070000000377700000000000021465 0ustar00eslavichSTSCI\science# Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ share/python-wheels/ *.egg-info/ .installed.cfg *.egg MANIFEST # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover *.py,cover .hypothesis/ .pytest_cache/ cover/ # Translations *.mo *.pot # Django stuff: *.log local_settings.py db.sqlite3 db.sqlite3-journal # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder .pybuilder/ target/ # Jupyter Notebook .ipynb_checkpoints # IPython profile_default/ ipython_config.py # pyenv # For a library or package, you might want to ignore these files since the code is # intended to run in multiple environments; otherwise, check them in: # .python-version # pipenv # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. # However, in case of collaboration, if having platform-specific dependencies or dependencies # having no cross-platform support, pipenv may install dependencies that don't work, or not # install all needed dependencies. #Pipfile.lock # PEP 582; used by e.g. github.com/David-OConnor/pyflow __pypackages__/ # Celery stuff celerybeat-schedule celerybeat.pid # SageMath parsed files *.sage.py # Environments .env .venv env/ venv/ ENV/ env.bak/ venv.bak/ # Spyder project settings .spyderproject .spyproject # Rope project settings .ropeproject # mkdocs documentation /site # mypy .mypy_cache/ .dmypy.json dmypy.json # Pyre type checker .pyre/ # pytype static type analyzer .pytype/ # Cython debug symbols cython_debug/ _version.py././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641592.0 asdf_coordinates_schemas-0.1.0/CHANGES.rst0000644000446400020070000000007200000000000021260 0ustar00eslavichSTSCI\science0.1.0 (2021-12-04) ------------------ - Initial release. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/LICENSE0000644000446400020070000000300300000000000020460 0ustar00eslavichSTSCI\scienceCopyright (c) 2021 Association of Universities for Research in Astronomy. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638642813.9498513 asdf_coordinates_schemas-0.1.0/PKG-INFO0000644000446400020070000000164700000000000020564 0ustar00eslavichSTSCI\scienceMetadata-Version: 2.1 Name: asdf_coordinates_schemas Version: 0.1.0 Summary: ASDF coordinates schemas Home-page: https://github.com/asdf-format/asdf-coordinates-schemas Author: The ASDF Developers Author-email: help@stsci.edu License: BSD-3-Clause Platform: UNKNOWN Classifier: Intended Audience :: Science/Research Classifier: Topic :: Scientific/Engineering :: Astronomy Classifier: License :: OSI Approved :: BSD License Classifier: Programming Language :: Python :: 3 Requires-Python: >=3.7 Description-Content-Type: text/markdown Provides-Extra: test License-File: LICENSE # asdf-coordinates-schemas This package provides ASDF schemas for validating coordinates tags. Users should not need to install this directly; instead, install an implementation package such as asdf-astropy, which includes asdf-coordinates-schemas as a dependency. ![CI](https://github.com/asdf-format/asdf-coordinates-schemas/workflows/CI/badge.svg) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638482217.0 asdf_coordinates_schemas-0.1.0/README.md0000644000446400020070000000054200000000000020737 0ustar00eslavichSTSCI\science# asdf-coordinates-schemas This package provides ASDF schemas for validating coordinates tags. Users should not need to install this directly; instead, install an implementation package such as asdf-astropy, which includes asdf-coordinates-schemas as a dependency. ![CI](https://github.com/asdf-format/asdf-coordinates-schemas/workflows/CI/badge.svg) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638642035.0 asdf_coordinates_schemas-0.1.0/pyproject.toml0000644000446400020070000000031000000000000022365 0ustar00eslavichSTSCI\science[build-system] requires = ["setuptools>=42", "setuptools_scm[toml]>=3.4", "wheel"] build-backend = "setuptools.build_meta" [tool.setuptools_scm] write_to = "src/asdf_coordinates_schemas/_version.py" ././@PaxHeader0000000000000000000000000000003300000000000010211 xustar0027 mtime=1638642813.913972 asdf_coordinates_schemas-0.1.0/resources/0000755000446400020070000000000000000000000021471 5ustar00eslavichSTSCI\science././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638642813.9193013 asdf_coordinates_schemas-0.1.0/resources/manifests/0000755000446400020070000000000000000000000023462 5ustar00eslavichSTSCI\science././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/manifests/coordinates-1.0.0.yaml0000644000446400020070000001155300000000000027317 0ustar00eslavichSTSCI\scienceid: asdf://asdf-format.org/astronomy/coordinates/manifests/coordinates-1.0.0 extension_uri: asdf://asdf-format.org/astronomy/coordinates/extensions/coordinates-1.0.0 title: Coordinates extension 1.0.0 description: |- A set of tags for serializing coordinates. tags: - tag_uri: tag:astropy.org:astropy/coordinates/angle-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/angle-1.0.0 title: Represents an Angle. description: |- This object represents a subtype of Quantity which has units equivalent to radians or degrees. - tag_uri: tag:astropy.org:astropy/coordinates/earthlocation-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/earthlocation-1.0.0 title: Represents EarthLocation objects from astropy. description: |- Location on the Earth. - tag_uri: tag:astropy.org:astropy/coordinates/frames/baseframe-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/baseframe-1.0.0 title: Represents a coordinate frame object from astropy description: |- This schema is designed to be extended by other schemas to restrict the allowable frame_attributes. - tag_uri: tag:astropy.org:astropy/coordinates/frames/cirs-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/cirs-1.0.0 title: Represents a CIRS coordinate object from astropy - tag_uri: tag:astropy.org:astropy/coordinates/frames/fk4-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/fk4-1.0.0 title: Represents a FK4 coordinate object from astropy - tag_uri: tag:astropy.org:astropy/coordinates/frames/fk4noeterms-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/fk4noeterms-1.0.0 title: Represents a FK4NoETerms coordinate object from astropy - tag_uri: tag:astropy.org:astropy/coordinates/frames/fk5-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/fk5-1.0.0 title: Represents a FK5 coordinate object from astropy - tag_uri: tag:astropy.org:astropy/coordinates/frames/galactic-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/galactic-1.0.0 title: Represents an Galactic coordinate object from astropy. - tag_uri: tag:astropy.org:astropy/coordinates/frames/galactocentric-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/galactocentric-1.0.0 title: Represents an galactocentric coordinate object from astropy - tag_uri: tag:astropy.org:astropy/coordinates/frames/gcrs-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/gcrs-1.0.0 title: Represents a GCRS coordinate object from astropy - tag_uri: tag:astropy.org:astropy/coordinates/frames/icrs-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/icrs-1.0.0 title: Represents an ICRS coordinate object from astropy description: |- This object represents the right ascension (RA) and declination of an ICRS coordinate or frame. The ICRS class contains additional fields that may be useful to add here in the future. - tag_uri: tag:astropy.org:astropy/coordinates/frames/icrs-1.1.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/icrs-1.1.0 title: Represents an ICRS coordinate object from astropy. - tag_uri: tag:astropy.org:astropy/coordinates/frames/itrs-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/itrs-1.0.0 title: Represents a ITRS coordinate object from astropy - tag_uri: tag:astropy.org:astropy/coordinates/frames/precessedgeocentric-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/precessedgeocentric-1.0.0 title: Represents a PrecessedGeocentric coordinate object from astropy - tag_uri: tag:astropy.org:astropy/coordinates/latitude-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/latitude-1.0.0 title: Represents latitude-like angles. description: |- Represents latitude-like angle(s) which must be in the range -90 to +90 deg. - tag_uri: tag:astropy.org:astropy/coordinates/longitude-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/longitude-1.0.0 title: Represents longitude-like angles. description: |- Longitude-like angle(s) which are wrapped within a contiguous 360 degree range. - tag_uri: tag:astropy.org:astropy/coordinates/representation-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/representation-1.0.0 title: Representation of points or differentials in two or three dimensional space. description: |- Representation of points or differentials in two or three dimensional space. - tag_uri: tag:astropy.org:astropy/coordinates/skycoord-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/skycoord-1.0.0 title: Represents a SkyCoord object from astropy - tag_uri: tag:astropy.org:astropy/coordinates/spectralcoord-1.0.0 schema_uri: http://astropy.org/schemas/astropy/coordinates/spectralcoord-1.0.0 title: Represents a SpectralCoord object from astropy ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638642813.9226985 asdf_coordinates_schemas-0.1.0/resources/schemas/0000755000446400020070000000000000000000000023114 5ustar00eslavichSTSCI\science././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/angle-1.0.0.yaml0000644000446400020070000000162600000000000025525 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/angle-1.0.0" title: | Represents an Angle. # TODO: Is there any restriction on the range of values? The next # version of the schema should make this explicit. description: This object represents a subtype of Quantity which has units equivalent to radians or degrees. examples: - - An Angle object in Degrees - | ! unit: !unit/unit-1.0.0 deg value: 10.0 type: object properties: value: description: | A vector of one or more values anyOf: - type: number - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" unit: description: | The unit corresponding to the values $ref: "http://stsci.edu/schemas/asdf/unit/unit-1.0.0" required: [value, unit] ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/earthlocation-1.0.0.yaml0000644000446400020070000000162600000000000027273 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/earthlocation-1.0.0" title: | Represents EarthLocation objects from astropy. description: | Location on the Earth. type: object properties: x: description: | X component of location in geocentric representation $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" y: description: | Y component of location in geocentric representation $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" z: description: | Z component of location in geocentric representation $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" ellipsoid: description: | Reference ellipsoid that is used when representing geodetic coordinates. type: string enum: [WGS84, GRS80, WGS72] required: [x, y, z] additionalProperties: False ... ././@PaxHeader0000000000000000000000000000003300000000000010211 xustar0027 mtime=1638642813.928159 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/0000755000446400020070000000000000000000000024371 5ustar00eslavichSTSCI\science././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/baseframe-1.0.0.yaml0000644000446400020070000000121700000000000027635 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/frames/baseframe-1.0.0" title: | Represents a coordinate frame object from astropy description: | This schema is designed to be extended by other schemas to restrict the allowable frame_attributes. type: object properties: data: description: | The representation object holding any data associated with the frame. $ref: "../representation-1.0.0" frame_attributes: description: | Attributes on the coordinate frame. type: object additionalProperties: false required: [frame_attributes] ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/cirs-1.0.0.yaml0000644000446400020070000000261200000000000026650 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/frames/cirs-1.0.0" title: | Represents a CIRS coordinate object from astropy examples: - - A CIRS frame without data - | ! frame_attributes: obstime: !time/time-1.1.0 {scale: tai, value: B1950.000} - - A CIRS frame with data - | ! data: ! components: lat: ! {unit: !unit/unit-1.0.0 deg, value: 10.0} lon: ! unit: !unit/unit-1.0.0 deg value: 120.0 wrap_angle: ! {unit: !unit/unit-1.0.0 deg, value: 360.0} type: UnitSphericalRepresentation frame_attributes: obstime: !time/time-1.1.0 {scale: tai, value: B1950.000} allOf: - $ref: baseframe-1.0.0 - properties: frame_attributes: type: object properties: obstime: $ref: "http://stsci.edu/schemas/asdf/time/time-1.1.0" required: [obstime] ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/fk4-1.0.0.yaml0000644000446400020070000000314300000000000026374 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/frames/fk4-1.0.0" title: | Represents a FK4 coordinate object from astropy examples: - - A FK4 frame without data - | ! frame_attributes: equinox: !time/time-1.1.0 {scale: tai, value: B1950.000} obstime: !time/time-1.1.0 {scale: tai, value: B1950.000} - - A FK4 frame with data - | ! data: ! components: lat: ! {unit: !unit/unit-1.0.0 deg, value: 10.0} lon: ! unit: !unit/unit-1.0.0 deg value: 120.0 wrap_angle: ! {unit: !unit/unit-1.0.0 deg, value: 360.0} type: UnitSphericalRepresentation frame_attributes: equinox: !time/time-1.1.0 {scale: tai, value: B1950.000} obstime: !time/time-1.1.0 {scale: tai, value: B1950.000} allOf: - $ref: baseframe-1.0.0 - properties: frame_attributes: type: object properties: equinox: $ref: "http://stsci.edu/schemas/asdf/time/time-1.1.0" obstime: $ref: "http://stsci.edu/schemas/asdf/time/time-1.1.0" required: [equinox] ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/fk4noeterms-1.0.0.yaml0000644000446400020070000000322300000000000030150 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/frames/fk4noeterms-1.0.0" title: | Represents a FK4NoETerms coordinate object from astropy examples: - - A FK4NoETerms frame without data - | ! frame_attributes: equinox: !time/time-1.1.0 {scale: tai, value: B1950.000} obstime: !time/time-1.1.0 {scale: tai, value: B1950.000} - - A FK4NoETerms frame with data - | ! data: ! components: lat: ! {unit: !unit/unit-1.0.0 deg, value: 10.0} lon: ! unit: !unit/unit-1.0.0 deg value: 120.0 wrap_angle: ! {unit: !unit/unit-1.0.0 deg, value: 360.0} type: UnitSphericalRepresentation frame_attributes: equinox: !time/time-1.1.0 {scale: tai, value: B1950.000} obstime: !time/time-1.1.0 {scale: tai, value: B1950.000} allOf: - $ref: baseframe-1.0.0 - properties: frame_attributes: type: object properties: equinox: $ref: "http://stsci.edu/schemas/asdf/time/time-1.1.0" obstime: $ref: "http://stsci.edu/schemas/asdf/time/time-1.1.0" required: [equinox] ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/fk5-1.0.0.yaml0000644000446400020070000000255400000000000026402 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/frames/fk5-1.0.0" title: | Represents a FK5 coordinate object from astropy examples: - - A FK5 frame without data with a custom equinox - | ! frame_attributes: {equinox: !time/time-1.1.0 '2011-01-02 00:00:00.000'} - - A FK5 frame with data - | ! data: ! components: lat: ! {unit: !unit/unit-1.0.0 deg, value: 10.0} lon: ! unit: !unit/unit-1.0.0 deg value: 120.0 wrap_angle: ! {unit: !unit/unit-1.0.0 deg, value: 360.0} type: UnitSphericalRepresentation frame_attributes: {equinox: !time/time-1.1.0 J2000.000} allOf: - $ref: baseframe-1.0.0 - properties: frame_attributes: type: object properties: equinox: $ref: "http://stsci.edu/schemas/asdf/time/time-1.1.0" required: [equinox] ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/galactic-1.0.0.yaml0000644000446400020070000000215600000000000027462 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/frames/galactic-1.0.0" title: | Represents an Galactic coordinate object from astropy. examples: - - An Galactic frame without data - | ! frame_attributes: {} - - An Galactic frame with data - | ! data: ! components: lat: ! {unit: !unit/unit-1.0.0 deg, value: 2.0} lon: ! unit: !unit/unit-1.0.0 deg value: 1.0 wrap_angle: ! {unit: !unit/unit-1.0.0 deg, value: 360.0} type: UnitSphericalRepresentation frame_attributes: {} allOf: - $ref: baseframe-1.0.0 ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/galactocentric-1.0.0.yaml0000644000446400020070000000451600000000000030677 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/frames/galactocentric-1.0.0" title: | Represents an galactocentric coordinate object from astropy examples: - - A Galactocentric frame without data - | ! frame_attributes: galcen_coord: ! data: ! components: lat: ! {unit: !unit/unit-1.0.0 deg, value: -28.936175} lon: ! unit: !unit/unit-1.0.0 deg value: 266.4051 wrap_angle: ! {unit: !unit/unit-1.0.0 deg, value: 360.0} type: UnitSphericalRepresentation frame_attributes: {} galcen_distance: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 kpc, value: 8.3} galcen_v_sun: ! components: d_x: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 km s-1, value: 11.1} d_y: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 km s-1, value: 232.24} d_z: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 km s-1, value: 7.25} type: CartesianDifferential roll: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 deg, value: 0.0} z_sun: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 pc, value: 27.0} allOf: - $ref: baseframe-1.0.0 - properties: frame_attributes: type: object properties: galacen_coord: $ref: "icrs-1.1.0" galcen_distance: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" galcen_v_sun: $ref: "../representation-1.0.0" z_sun: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" roll: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" required: [galcen_coord, galcen_distance, galcen_v_sun, z_sun, roll] ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/gcrs-1.0.0.yaml0000644000446400020070000000601700000000000026651 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/frames/gcrs-1.0.0" title: | Represents a GCRS coordinate object from astropy examples: - - A GCRS frame without data - | ! frame_attributes: obsgeoloc: ! components: x: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m, value: 0.0} y: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m, value: 0.0} z: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m, value: 0.0} type: CartesianRepresentation obsgeovel: ! components: x: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m s-1, value: 0.0} y: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m s-1, value: 0.0} z: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m s-1, value: 0.0} type: CartesianRepresentation obstime: !time/time-1.1.0 J2000.000 - - A GCRS frame with data - | ! data: ! components: lat: ! {unit: !unit/unit-1.0.0 deg, value: 2.0} lon: ! unit: !unit/unit-1.0.0 deg value: 1.0 wrap_angle: ! {unit: !unit/unit-1.0.0 deg, value: 360.0} type: UnitSphericalRepresentation frame_attributes: obsgeoloc: ! components: x: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m, value: 0.0} y: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m, value: 0.0} z: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m, value: 0.0} type: CartesianRepresentation obsgeovel: ! components: x: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m s-1, value: 0.0} y: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m s-1, value: 0.0} z: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m s-1, value: 0.0} type: CartesianRepresentation obstime: !time/time-1.1.0 J2000.000 allOf: - $ref: baseframe-1.0.0 - properties: frame_attributes: type: object properties: obstime: $ref: "http://stsci.edu/schemas/asdf/time/time-1.1.0" obsgeoloc: $ref: "../representation-1.0.0" obsgeovel: $ref: "../representation-1.0.0" ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/icrs-1.0.0.yaml0000644000446400020070000000210200000000000026642 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/frames/icrs-1.0.0" title: | Represents an ICRS coordinate object from astropy description: | This object represents the right ascension (RA) and declination of an ICRS coordinate or frame. The ICRS class contains additional fields that may be useful to add here in the future. type: object properties: ra: type: object description: | A longitude representing the right ascension of the ICRS coordinate properties: value: type: number unit: $ref: "http://stsci.edu/schemas/asdf/unit/unit-1.0.0" default: deg wrap_angle: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" default: "360 deg" dec: type: object description: | A latitude representing the declination of the ICRS coordinate properties: value: type: number unit: $ref: "http://stsci.edu/schemas/asdf/unit/unit-1.0.0" default: deg required: [ra, dec] ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/icrs-1.1.0.yaml0000644000446400020070000000211200000000000026644 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/frames/icrs-1.1.0" title: | Represents an ICRS coordinate object from astropy. examples: - - An ICRS frame without data - | ! frame_attributes: {} - - An ICRS frame with data - | ! data: ! components: lat: ! {unit: !unit/unit-1.0.0 deg, value: 10.0} lon: ! unit: !unit/unit-1.0.0 deg value: 120.0 wrap_angle: ! {unit: !unit/unit-1.0.0 deg, value: 360.0} type: UnitSphericalRepresentation frame_attributes: {} allOf: - $ref: baseframe-1.0.0 ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/itrs-1.0.0.yaml0000644000446400020070000000261200000000000026671 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/frames/itrs-1.0.0" title: | Represents a ITRS coordinate object from astropy examples: - - A ITRS frame without data - | ! frame_attributes: obstime: !time/time-1.1.0 {scale: tai, value: B1950.000} - - A ITRS frame with data - | ! data: ! components: lat: ! {unit: !unit/unit-1.0.0 deg, value: 10.0} lon: ! unit: !unit/unit-1.0.0 deg value: 120.0 wrap_angle: ! {unit: !unit/unit-1.0.0 deg, value: 360.0} type: UnitSphericalRepresentation frame_attributes: obstime: !time/time-1.1.0 {scale: tai, value: B1950.000} allOf: - $ref: baseframe-1.0.0 - properties: frame_attributes: type: object properties: obstime: $ref: "http://stsci.edu/schemas/asdf/time/time-1.1.0" required: [obstime] ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/frames/precessedgeocentric-1.0.0.yaml0000644000446400020070000000646400000000000031741 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/frames/precessedgeocentric-1.0.0" title: | Represents a PrecessedGeocentric coordinate object from astropy examples: - - A PrecessedGeocentric frame without data - | ! frame_attributes: equinox: !time/time-1.1.0 J2000.000 obsgeoloc: ! components: x: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m, value: 0.0} y: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m, value: 0.0} z: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m, value: 0.0} type: CartesianRepresentation obsgeovel: ! components: x: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m s-1, value: 0.0} y: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m s-1, value: 0.0} z: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m s-1, value: 0.0} type: CartesianRepresentation obstime: !time/time-1.1.0 J2000.000 - - A PrecessedGeocentric frame with data - | ! data: ! components: lat: ! {unit: !unit/unit-1.0.0 deg, value: 1.0} lon: ! unit: !unit/unit-1.0.0 deg value: 1.0 wrap_angle: ! {unit: !unit/unit-1.0.0 deg, value: 360.0} type: UnitSphericalRepresentation frame_attributes: equinox: !time/time-1.1.0 J2000.000 obsgeoloc: ! components: x: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m, value: 0.0} y: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m, value: 0.0} z: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m, value: 0.0} type: CartesianRepresentation obsgeovel: ! components: x: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m s-1, value: 0.0} y: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m s-1, value: 0.0} z: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 m s-1, value: 0.0} type: CartesianRepresentation obstime: !time/time-1.1.0 J2000.000 allOf: - $ref: baseframe-1.0.0 - properties: frame_attributes: type: object properties: equinox: $ref: "http://stsci.edu/schemas/asdf/time/time-1.1.0" obstime: $ref: "http://stsci.edu/schemas/asdf/time/time-1.1.0" obsgeoloc: $ref: "../representation-1.0.0" obsgeovel: $ref: "../representation-1.0.0" ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/latitude-1.0.0.yaml0000644000446400020070000000144200000000000026246 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/latitude-1.0.0" title: | Represents latitude-like angles. description: | Represents latitude-like angle(s) which must be in the range -90 to +90 deg. examples: - - A Latitude object in Degrees - | ! unit: !unit/unit-1.0.0 deg value: 10.0 type: object properties: value: description: | A vector of one or more values anyOf: - type: number - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" unit: description: | The unit corresponding to the values $ref: "http://stsci.edu/schemas/asdf/unit/unit-1.0.0" required: [value, unit] ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/longitude-1.0.0.yaml0000644000446400020070000000207100000000000026424 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/longitude-1.0.0" title: | Represents longitude-like angles. description: | Longitude-like angle(s) which are wrapped within a contiguous 360 degree range. examples: - - A Longitude object in Degrees - | ! unit: !unit/unit-1.0.0 deg value: 10.0 wrap_angle: ! unit: !unit/unit-1.0.0 deg value: 180.0 type: object properties: value: description: | A vector of one or more values anyOf: - type: number - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" unit: description: | The unit corresponding to the values $ref: "http://stsci.edu/schemas/asdf/unit/unit-1.0.0" wrap_angle: description: | Angle at which to wrap back to ``wrap_angle - 360 deg``. $ref: "angle-1.0.0" required: [value, unit, wrap_angle] ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/representation-1.0.0.yaml0000644000446400020070000001457000000000000027503 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/representation-1.0.0" title: | Representation of points or differentials in two or three dimensional space. description: | Representation of points or differentials in two or three dimensional space. examples: - - A SphericalRepresentation - | ! components: distance: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 AU, value: 1.0} lat: ! {unit: !unit/unit-1.0.0 deg, value: 10.0} lon: ! unit: !unit/unit-1.0.0 deg value: 10.0 wrap_angle: ! {unit: !unit/unit-1.0.0 deg, value: 360.0} type: SphericalRepresentation - - A CartesianDifferential - | ! components: d_x: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 km s-1, value: 100.0} d_y: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 km s-1, value: 200.0} d_z: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 km s-1, value: 3141.0} type: CartesianDifferential type: object properties: type: type: string enum: - CartesianRepresentation - SphericalRepresentation - UnitSphericalRepresentation - RadialRepresentation - PhysicsSphericalRepresentation - CylindricalRepresentation - CartesianDifferential - SphericalDifferential - UnitSphericalCosLatDifferential - UnitSphericalDifferential - SphericalCosLatDifferential - RadialDifferential - PhysicsSphericalDifferential - CylindricalDifferential components: anyOf: # CartesianRepresentation - type: object properties: x: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" y: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" z: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # SphericalRepresentation - type: object properties: lat: $ref: "latitude-1.0.0" lon: $ref: "longitude-1.0.0" distance: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # UnitSphericalRepresentation - type: object properties: lat: $ref: "latitude-1.0.0" lon: $ref: "longitude-1.0.0" # RadialRepresentation - type: object properties: distance: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # PhysicsSphericalRepresentation - type: object properties: phi: $ref: "angle-1.0.0" theta: $ref: "angle-1.0.0" r: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # CylindricalRepresentation - type: object properties: rho: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" phi: $ref: "angle-1.0.0" z: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # CartesianDifferential - type: object properties: d_x: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_y: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_z: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # SphericalDifferential - type: object properties: d_lon: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_lat: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_distance: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # UnitSphericalCosLatDifferential - type: object properties: d_lon_coslat: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_lat: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # UnitSphericalDifferential - type: object properties: d_lon: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_lat: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # SphericalCosLatDifferential - type: object properties: d_lon_coslat: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_lat: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_distance: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # SphericalDifferential - type: object properties: d_lon: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_lat: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_distance: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # RadialDifferential - type: object properties: d_phi: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_theta: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_r: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # PhysicsSphericalDifferential - type: object properties: d_phi: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_theta: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_r: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # RadialDifferential - type: object properties: d_distance: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" # CylindricalDifferential - type: object properties: d_rho: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_phi: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" d_z: $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" required: [type, components] ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/skycoord-1.0.0.yaml0000644000446400020070000000075400000000000026275 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/skycoord-1.0.0" title: | Represents a SkyCoord object from astropy allOf: - type: object properties: frame: description: | A string describing the kind of frame that is represented by this SkyCoord object. This value is used when reconstructing SkyCoord. type: string required: [frame] additionalProperties: true ... ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/resources/schemas/spectralcoord-1.0.0.yaml0000644000446400020070000000153300000000000027300 0ustar00eslavichSTSCI\science%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://astropy.org/schemas/astropy/coordinates/spectralcoord-1.0.0" title: > Represents a SpectralCoord object from astropy type: object properties: value: description: | A vector of one or more values anyOf: - type: number - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" unit: description: | The unit corresponding to the values $ref: "http://stsci.edu/schemas/asdf/unit/unit-1.0.0" observer: description: | The observer frame for this coordinate $ref: "http://astropy.org/schemas/astropy/coordinates/frames/baseframe-1.0.0" target: description: | The target frame for this coordinate $ref: "http://astropy.org/schemas/astropy/coordinates/frames/baseframe-1.0.0" required: [value, unit] ... ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638642813.9505153 asdf_coordinates_schemas-0.1.0/setup.cfg0000644000446400020070000000205000000000000021275 0ustar00eslavichSTSCI\science[metadata] name = asdf_coordinates_schemas author = The ASDF Developers author_email = help@stsci.edu license = BSD-3-Clause license_file = LICENSE description = ASDF coordinates schemas long_description = file: README.md long_description_content_type = text/markdown url = https://github.com/asdf-format/asdf-coordinates-schemas classifiers = Intended Audience :: Science/Research Topic :: Scientific/Engineering :: Astronomy License :: OSI Approved :: BSD License Programming Language :: Python :: 3 [options] python_requires = >=3.7 zip_safe = true install_requires = asdf>=2.8.0 [options.extras_require] test = pytest [options.entry_points] asdf.resource_mappings = asdf_coordinates_schemas = asdf_coordinates_schemas.integration:get_resource_mappings [tool:pytest] asdf_schema_root = resources/schemas asdf_schema_tests_enabled = true asdf_schema_ignore_unrecognized_tag = true testpaths = tests resources [flake8] ignore = E501, E203, W503 exclude = .git, __pycache__, build, dist, eggs, *.egg, .tox [egg_info] tag_build = tag_date = 0 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/setup.py0000644000446400020070000000067500000000000021201 0ustar00eslavichSTSCI\science#!/usr/bin/env python from setuptools import setup, find_packages packages = find_packages(where="src") packages.append("asdf_coordinates_schemas.resources") package_dir = { "": "src", "asdf_coordinates_schemas.resources": "resources", } package_data = { "asdf_coordinates_schemas.resources": ["*.yaml", "**/*.yaml", "**/**/*.yaml"], } setup( packages=packages, package_dir=package_dir, package_data=package_data, ) ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638642813.9145324 asdf_coordinates_schemas-0.1.0/src/0000755000446400020070000000000000000000000020246 5ustar00eslavichSTSCI\science././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638642813.9295337 asdf_coordinates_schemas-0.1.0/src/asdf_coordinates_schemas/0000755000446400020070000000000000000000000025260 5ustar00eslavichSTSCI\science././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638642291.0 asdf_coordinates_schemas-0.1.0/src/asdf_coordinates_schemas/__init__.py0000644000446400020070000000011100000000000027362 0ustar00eslavichSTSCI\sciencefrom ._version import version as __version__ __all__ = ["__version__"] ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638642813.0 asdf_coordinates_schemas-0.1.0/src/asdf_coordinates_schemas/_version.py0000644000446400020070000000021600000000000027455 0ustar00eslavichSTSCI\science# coding: utf-8 # file generated by setuptools_scm # don't change, don't track in version control version = '0.1.0' version_tuple = (0, 1, 0) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/src/asdf_coordinates_schemas/integration.py0000644000446400020070000000202300000000000030152 0ustar00eslavichSTSCI\sciencefrom pathlib import Path import sys if sys.version_info < (3, 9): import importlib_resources else: import importlib.resources as importlib_resources from asdf.resource import DirectoryResourceMapping import asdf_coordinates_schemas def get_resource_mappings(): resources_root = importlib_resources.files(asdf_coordinates_schemas) / "resources" if not resources_root.is_dir(): # In an editable install, the resources directory will exist off the # repository root: resources_root = Path(__file__).absolute().parent.parent.parent / "resources" if not resources_root.is_dir(): raise RuntimeError("Missing resources directory") return [ DirectoryResourceMapping( resources_root / "schemas", "http://astropy.org/schemas/astropy/coordinates/", recursive=True, ), DirectoryResourceMapping( resources_root / "manifests", "asdf://asdf-format.org/astronomy/coordinates/manifests/", ), ] ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638642813.9484317 asdf_coordinates_schemas-0.1.0/src/asdf_coordinates_schemas.egg-info/0000755000446400020070000000000000000000000026752 5ustar00eslavichSTSCI\science././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638642813.0 asdf_coordinates_schemas-0.1.0/src/asdf_coordinates_schemas.egg-info/PKG-INFO0000644000446400020070000000164700000000000030057 0ustar00eslavichSTSCI\scienceMetadata-Version: 2.1 Name: asdf-coordinates-schemas Version: 0.1.0 Summary: ASDF coordinates schemas Home-page: https://github.com/asdf-format/asdf-coordinates-schemas Author: The ASDF Developers Author-email: help@stsci.edu License: BSD-3-Clause Platform: UNKNOWN Classifier: Intended Audience :: Science/Research Classifier: Topic :: Scientific/Engineering :: Astronomy Classifier: License :: OSI Approved :: BSD License Classifier: Programming Language :: Python :: 3 Requires-Python: >=3.7 Description-Content-Type: text/markdown Provides-Extra: test License-File: LICENSE # asdf-coordinates-schemas This package provides ASDF schemas for validating coordinates tags. Users should not need to install this directly; instead, install an implementation package such as asdf-astropy, which includes asdf-coordinates-schemas as a dependency. ![CI](https://github.com/asdf-format/asdf-coordinates-schemas/workflows/CI/badge.svg) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638642813.0 asdf_coordinates_schemas-0.1.0/src/asdf_coordinates_schemas.egg-info/SOURCES.txt0000644000446400020070000000273200000000000030642 0ustar00eslavichSTSCI\science.gitignore CHANGES.rst LICENSE README.md pyproject.toml setup.cfg setup.py tox.ini .github/workflows/ci.yml resources/manifests/coordinates-1.0.0.yaml resources/schemas/angle-1.0.0.yaml resources/schemas/earthlocation-1.0.0.yaml resources/schemas/latitude-1.0.0.yaml resources/schemas/longitude-1.0.0.yaml resources/schemas/representation-1.0.0.yaml resources/schemas/skycoord-1.0.0.yaml resources/schemas/spectralcoord-1.0.0.yaml resources/schemas/frames/baseframe-1.0.0.yaml resources/schemas/frames/cirs-1.0.0.yaml resources/schemas/frames/fk4-1.0.0.yaml resources/schemas/frames/fk4noeterms-1.0.0.yaml resources/schemas/frames/fk5-1.0.0.yaml resources/schemas/frames/galactic-1.0.0.yaml resources/schemas/frames/galactocentric-1.0.0.yaml resources/schemas/frames/gcrs-1.0.0.yaml resources/schemas/frames/icrs-1.0.0.yaml resources/schemas/frames/icrs-1.1.0.yaml resources/schemas/frames/itrs-1.0.0.yaml resources/schemas/frames/precessedgeocentric-1.0.0.yaml src/asdf_coordinates_schemas/__init__.py src/asdf_coordinates_schemas/_version.py src/asdf_coordinates_schemas/integration.py src/asdf_coordinates_schemas.egg-info/PKG-INFO src/asdf_coordinates_schemas.egg-info/SOURCES.txt src/asdf_coordinates_schemas.egg-info/dependency_links.txt src/asdf_coordinates_schemas.egg-info/entry_points.txt src/asdf_coordinates_schemas.egg-info/requires.txt src/asdf_coordinates_schemas.egg-info/top_level.txt src/asdf_coordinates_schemas.egg-info/zip-safe tests/test_integration.py tests/test_manifests.py././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638642813.0 asdf_coordinates_schemas-0.1.0/src/asdf_coordinates_schemas.egg-info/dependency_links.txt0000644000446400020070000000000100000000000033020 0ustar00eslavichSTSCI\science ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638642813.0 asdf_coordinates_schemas-0.1.0/src/asdf_coordinates_schemas.egg-info/entry_points.txt0000644000446400020070000000016000000000000032245 0ustar00eslavichSTSCI\science[asdf.resource_mappings] asdf_coordinates_schemas = asdf_coordinates_schemas.integration:get_resource_mappings ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638642813.0 asdf_coordinates_schemas-0.1.0/src/asdf_coordinates_schemas.egg-info/requires.txt0000644000446400020070000000003300000000000031346 0ustar00eslavichSTSCI\scienceasdf>=2.8.0 [test] pytest ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638642813.0 asdf_coordinates_schemas-0.1.0/src/asdf_coordinates_schemas.egg-info/top_level.txt0000644000446400020070000000003100000000000031476 0ustar00eslavichSTSCI\scienceasdf_coordinates_schemas ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638642813.0 asdf_coordinates_schemas-0.1.0/src/asdf_coordinates_schemas.egg-info/zip-safe0000644000446400020070000000000100000000000030402 0ustar00eslavichSTSCI\science ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638642813.9492517 asdf_coordinates_schemas-0.1.0/tests/0000755000446400020070000000000000000000000020621 5ustar00eslavichSTSCI\science././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/tests/test_integration.py0000644000446400020070000000151100000000000024553 0ustar00eslavichSTSCI\science""" Test that the asdf library integration is working properly. """ from pathlib import Path import asdf import pytest import yaml RESOURCES_ROOT = Path(__file__).absolute().parent.parent / "resources" @pytest.mark.parametrize("manifest_path", (RESOURCES_ROOT / "manifests").glob("**/*.yaml")) def test_manifest_integration(manifest_path): content = manifest_path.read_bytes() manifest = yaml.safe_load(content) asdf_content = asdf.get_config().resource_manager[manifest["id"]] assert asdf_content == content @pytest.mark.parametrize("schema_path", (RESOURCES_ROOT / "schemas").glob("**/*.yaml")) def test_schema_integration(schema_path): content = schema_path.read_bytes() schema = yaml.safe_load(content) asdf_content = asdf.get_config().resource_manager[schema["id"]] assert asdf_content == content ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/tests/test_manifests.py0000644000446400020070000000141400000000000024223 0ustar00eslavichSTSCI\science""" Test that the manifest file is correctly structured and refers to schemas that exist. """ from pathlib import Path import asdf import pytest import yaml RESOURCES_ROOT = Path(__file__).absolute().parent.parent / "resources" @pytest.mark.parametrize("manifest_path", (RESOURCES_ROOT / "manifests").glob("**/*.yaml")) def test_manifest(manifest_path): content = manifest_path.read_bytes() manifest = yaml.safe_load(content) schema = asdf.schema.load_schema("asdf://asdf-format.org/core/schemas/extension_manifest-1.0.0") asdf.schema.validate(manifest, schema=schema) for tag in manifest.get("tags", []): # Check that the schema exists: if "schema_uri" in tag: assert tag["schema_uri"] in asdf.get_config().resource_manager ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638641558.0 asdf_coordinates_schemas-0.1.0/tox.ini0000644000446400020070000000054100000000000020772 0ustar00eslavichSTSCI\science[tox] envlist= py39,twine,style,bandit [testenv] extras= test commands= pytest deps= py310: git+https://github.com/pytest-dev/pytest [testenv:twine] deps= twine commands= twine check {distdir}/* [testenv:style] deps= flake8 commands= flake8 --count src tests [testenv:bandit] deps= bandit commands= bandit -r -ll src