pax_global_header00006660000000000000000000000064145731420160014515gustar00rootroot0000000000000052 comment=9f9fba325c389fda07cda8b9b6f92421c8470508 asdf-wcs-schemas-0.4.0/000077500000000000000000000000001457314201600146465ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/.flake8000066400000000000000000000003471457314201600160250ustar00rootroot00000000000000# this file exists to support an editable PEP517 install and for `flake8` (https://github.com/PyCQA/flake8/issues/234) [flake8] max-line-length = 120 extend-ignore = E203 exclude = .git, __pycache__, build, dist, eggs, *.egg, .tox asdf-wcs-schemas-0.4.0/.gitattributes000066400000000000000000000001101457314201600175310ustar00rootroot00000000000000* text eol=lf # Don't mess with these files *.asdf binary *.png binary asdf-wcs-schemas-0.4.0/.github/000077500000000000000000000000001457314201600162065ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/.github/workflows/000077500000000000000000000000001457314201600202435ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/.github/workflows/changelog.yml000066400000000000000000000010351457314201600227140ustar00rootroot00000000000000name: Changelog on: pull_request: types: [labeled, unlabeled, opened, synchronize, reopened] jobs: changelog: name: Confirm changelog entry runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 with: fetch-depth: 0 submodules: true - name: Grep for PR number in CHANGES.rst run: grep -P '\[[^\]]*#${{github.event.number}}[,\]]' CHANGES.rst if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog-entry-needed') }} asdf-wcs-schemas-0.4.0/.github/workflows/ci.yml000066400000000000000000000051571457314201600213710ustar00rootroot00000000000000name: 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.os }} strategy: matrix: include: - name: Python 3.12 Schema validation tests python-version: '3.12' os: ubuntu-latest toxenv: py312 - name: Python 3.11 Schema validation tests python-version: '3.11' os: ubuntu-latest toxenv: py311 - name: Python 3.10 Schema validation tests python-version: '3.10' os: ubuntu-latest toxenv: py310 - name: Python 3.9 Schema validation tests python-version: 3.9 os: ubuntu-latest toxenv: py39 - name: Twine check python-version: 3.9 os: ubuntu-latest toxenv: twine - name: Code style checks python-version: 3.9 os: ubuntu-latest toxenv: codestyle - name: macOS python-version: 3.9 os: macos-latest toxenv: py39 - name: Windows python-version: 3.9 os: windows-latest toxenv: py39 steps: - name: Checkout code 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 }} gwcs-dev: name: Run gwcs development tests runs-on: ubuntu-latest steps: - name: Checkout asdf-wcs-schemas uses: actions/checkout@v2 with: fetch-depth: 0 path: asdf-wcs-schemas - name: Checkout gwcs dev uses: actions/checkout@v2 with: fetch-depth: 0 repository: spacetelescope/gwcs ref: master path: gwcs - name: Set up Python 3.9 uses: actions/setup-python@v2 with: python-version: 3.9 - name: Install asdf-wcs-schemas run: cd asdf-wcs-schemas && pip install . - name: Install older pytest run: pip install "pytest<8.1" - name: Install gwcs run: cd gwcs && pip install -e .[test] - name: Pip Freeze run: pip freeze - name: Run gwcs development tests run: cd gwcs && pytest asdf-wcs-schemas-0.4.0/.github/workflows/publish-to-pypi.yml000066400000000000000000000005741457314201600240410ustar00rootroot00000000000000name: Publish to PyPI on: release: types: [released] workflow_dispatch: jobs: publish: uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1 with: upload_to_pypi: ${{ (github.event_name == 'release') && (github.event.action == 'released') }} secrets: pypi_token: ${{ secrets.PYPI_PASSWORD_ASDF_MAINTAINER }} asdf-wcs-schemas-0.4.0/.gitignore000066400000000000000000000011371457314201600166400ustar00rootroot00000000000000# Compiled files *.py[co] *.a *.o *.so __pycache__ # Ignore .c files by default to avoid including generated code. If you want to # add a non-generated .c extension, use `git add -f filename.c`. *.c # Other generated files */*/_version.py */cython_version.py htmlcov .coverage MANIFEST .pytest_cache .tox # Sphinx docs/api docs/_build docs/generated # Eclipse editor project files .project .pydevproject .settings # Packages/installer info *.egg *.eggs *.egg-info dist build eggs parts bin var sdist develop-eggs .installed.cfg distribute-*.tar.gz # Other .*.swp *~ # Mac OSX .DS_Store .idea .vscode asdf-wcs-schemas-0.4.0/.pre-commit-config.yaml000066400000000000000000000026521457314201600211340ustar00rootroot00000000000000repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: - id: check-added-large-files - id: check-ast - id: check-case-conflict - id: check-yaml args: ["--unsafe"] - id: check-toml - id: check-merge-conflict - id: check-symlinks - id: debug-statements - id: detect-private-key - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.10.0 hooks: - id: python-check-blanket-noqa - id: python-check-mock-methods - id: rst-directive-colons - id: rst-inline-touching-normal - id: text-unicode-replacement-char - repo: https://github.com/asottile/yesqa rev: v1.5.0 hooks: - id: yesqa - repo: https://github.com/asottile/pyupgrade rev: v3.15.0 hooks: - id: pyupgrade args: ["--py38-plus"] exclude: "asdf/extern/.*" - repo: https://github.com/PyCQA/autoflake rev: v2.2.1 hooks: - id: autoflake - repo: https://github.com/pycqa/isort rev: 5.12.0 hooks: - id: isort - repo: https://github.com/psf/black rev: 23.10.1 hooks: - id: black - repo: https://github.com/asottile/blacken-docs rev: 1.16.0 hooks: - id: blacken-docs - repo: https://github.com/PyCQA/flake8 rev: 6.1.0 hooks: - id: flake8 exclude: "docs" - repo: https://github.com/PyCQA/bandit rev: 1.7.5 hooks: - id: bandit args: ["-c", "bandit.yaml"] asdf-wcs-schemas-0.4.0/.readthedocs.yml000066400000000000000000000003621457314201600177350ustar00rootroot00000000000000version: 2 build: os: ubuntu-20.04 apt_packages: - graphviz tools: python: "3.9" sphinx: configuration: docs/conf.py python: install: - method: pip path: . extra_requirements: - docs formats: all asdf-wcs-schemas-0.4.0/CHANGES.rst000066400000000000000000000013611457314201600164510ustar00rootroot000000000000000.4.1 (unreleased) ------------------ - 0.4.0 (2024-03-09) ------------------ - Update schemas for ASDF standard 1.6.0. [#59] 0.3.0 (2023-11-28) ------------------ - Add gwcs-1.2.0 manifest with new wcs-1.2.0 schema. [#56] 0.2.0 (2023-09-11) ------------------ - Update documentation to be consistent with rest of ASDF. [#12] - Switch over to ``pyproject.toml`` for build configuration. [#20] - Remove duplicate tag versions in gwcs manifest 1.0.0 (adding 1.0.1) and add 1.1.0 with only the newest tags [#46] 0.1.1 (2021-12-03) ------------------ - Update manifest URI authority to asdf-format.org. [#5] 0.1.0 (2021-11-24) ------------------ - Initial schemas for ``gwcs``. [#1] - Update ``$ref`` targets from tag URIs to schema URIs. [#3] asdf-wcs-schemas-0.4.0/CODE_OF_CONDUCT.md000066400000000000000000000062651457314201600174560ustar00rootroot00000000000000# Spacetelescope Open Source Code of Conduct We expect all "spacetelescope" organization projects to adopt a code of conduct that ensures a productive, respectful environment for all open source contributors and participants. We are committed to providing a strong and enforced code of conduct and expect everyone in our community to follow these guidelines when interacting with others in all forums. Our goal is to keep ours a positive, inclusive, successful, and growing community. The community of participants in open source Astronomy projects is made up of members from around the globe with a diverse set of skills, personalities, and experiences. It is through these differences that our community experiences success and continued growth. As members of the community, - We pledge to treat all people with respect and provide a harassment- and bullying-free environment, regardless of sex, sexual orientation and/or gender identity, disability, physical appearance, body size, race, nationality, ethnicity, and religion. In particular, sexual language and imagery, sexist, racist, or otherwise exclusionary jokes are not appropriate. - We pledge to respect the work of others by recognizing acknowledgment/citation requests of original authors. As authors, we pledge to be explicit about how we want our own work to be cited or acknowledged. - We pledge to welcome those interested in joining the community, and realize that including people with a variety of opinions and backgrounds will only serve to enrich our community. In particular, discussions relating to pros/cons of various technologies, programming languages, and so on are welcome, but these should be done with respect, taking proactive measure to ensure that all participants are heard and feel confident that they can freely express their opinions. - We pledge to welcome questions and answer them respectfully, paying particular attention to those new to the community. We pledge to provide respectful criticisms and feedback in forums, especially in discussion threads resulting from code contributions. - We pledge to be conscientious of the perceptions of the wider community and to respond to criticism respectfully. We will strive to model behaviors that encourage productive debate and disagreement, both within our community and where we are criticized. We will treat those outside our community with the same respect as people within our community. - We pledge to help the entire community follow the code of conduct, and to not remain silent when we see violations of the code of conduct. We will take action when members of our community violate this code such as such as contacting conduct@stsci.edu (all emails sent to this address will be treated with the strictest confidence) or talking privately with the person. This code of conduct applies to all community situations online and offline, including mailing lists, forums, social media, conferences, meetings, associated social events, and one-to-one interactions. Parts of this code of conduct have been adapted from the Astropy and Numfocus codes of conduct. http://www.astropy.org/code_of_conduct.html https://www.numfocus.org/about/code-of-conduct/ asdf-wcs-schemas-0.4.0/CONTRIBUTING.rst000066400000000000000000000015251457314201600173120ustar00rootroot00000000000000Reporting Issues ---------------- Feature requests and bug reports for the Python implementation can be posted at `asdf-wcs-schemas's github page `_. Contributing Code and Documentation ----------------------------------- We love contributions! If you're interested in contributing to this project, please open a Pull Request or issue and we would be glad to work with you. .. note:: ASDF-wcs-schemas is mostly a collection of schemas for the ASDF format. This means that in addition to contributing a schema, you will likely also need some code to actually handle serializing and deserializing your data. Typically, this code will need to be contributed to :ref:`GWCS `, which is a separate project. Please link your pull requests and issues between the two projects. asdf-wcs-schemas-0.4.0/LICENSE000066400000000000000000000026671457314201600156660ustar00rootroot00000000000000Copyright (C) 2021 Association of Universities for Research in Astronomy (AURA) 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. The name of AURA and its representatives may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY AURA ``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 AURA 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. asdf-wcs-schemas-0.4.0/README.md000066400000000000000000000013131457314201600161230ustar00rootroot00000000000000# asdf-wcs-schemas ![CI](https://github.com/asdf-format/asdf-wcs-schemas/workflows/CI/badge.svg) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/) This package provides ASDF schemas for validating WCS tags. Users should not need to install this directly; instead, install an implementation package such as gwcs, which includes asdf-wcs-schemas as a dependency. asdf-wcs-schemas-0.4.0/bandit.yaml000066400000000000000000000002061457314201600167710ustar00rootroot00000000000000exclude_dirs: - .eggs - .git - .pytest_cache - .tox - reference_files - tests - build - dist - docs - __pycache__ asdf-wcs-schemas-0.4.0/docs/000077500000000000000000000000001457314201600155765ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/docs/Makefile000066400000000000000000000112071457314201600172370ustar00rootroot00000000000000# Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest #This is needed with git because git doesn't create a dir if it's empty $(shell [ -d "_static" ] || mkdir -p _static) help: @echo "Please use \`make ' where is one of" @echo " html to make standalone HTML files" @echo " dirhtml to make HTML files named index.html in directories" @echo " singlehtml to make a single large HTML file" @echo " pickle to make pickle files" @echo " json to make JSON files" @echo " htmlhelp to make HTML files and a HTML help project" @echo " qthelp to make HTML files and a qthelp project" @echo " devhelp to make HTML files and a Devhelp project" @echo " epub to make an epub" @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" @echo " latexpdf to make LaTeX files and run them through pdflatex" @echo " text to make text files" @echo " man to make manual pages" @echo " changes to make an overview of all changed/added/deprecated items" @echo " linkcheck to check all external links for integrity" @echo " doctest to run all doctests embedded in the documentation (if enabled)" clean: -rm -rf $(BUILDDIR) -rm -rf api -rm -rf generated html: $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." dirhtml: $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." singlehtml: $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml @echo @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." pickle: $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle @echo @echo "Build finished; now you can process the pickle files." json: $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json @echo @echo "Build finished; now you can process the JSON files." htmlhelp: $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp @echo @echo "Build finished; now you can run HTML Help Workshop with the" \ ".hhp project file in $(BUILDDIR)/htmlhelp." qthelp: $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp @echo @echo "Build finished; now you can run "qcollectiongenerator" with the" \ ".qhcp project file in $(BUILDDIR)/qthelp, like this:" @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Astropy.qhcp" @echo "To view the help file:" @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Astropy.qhc" devhelp: $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp @echo @echo "Build finished." @echo "To view the help file:" @echo "# mkdir -p $$HOME/.local/share/devhelp/Astropy" @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Astropy" @echo "# devhelp" epub: $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub @echo @echo "Build finished. The epub file is in $(BUILDDIR)/epub." latex: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @echo @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." @echo "Run \`make' in that directory to run these through (pdf)latex" \ "(use \`make latexpdf' here to do that automatically)." latexpdf: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @echo "Running LaTeX files through pdflatex..." make -C $(BUILDDIR)/latex all-pdf @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." text: $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text @echo @echo "Build finished. The text files are in $(BUILDDIR)/text." man: $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man @echo @echo "Build finished. The manual pages are in $(BUILDDIR)/man." changes: $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes @echo @echo "The overview file is in $(BUILDDIR)/changes." linkcheck: $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck @echo @echo "Link check complete; look for any errors in the above output " \ "or in $(BUILDDIR)/linkcheck/output.txt." doctest: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest @echo "Testing of doctests in the sources finished, look at the " \ "results in $(BUILDDIR)/doctest/output.txt." asdf-wcs-schemas-0.4.0/docs/_static/000077500000000000000000000000001457314201600172245ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/docs/_static/custom.css000066400000000000000000000012321457314201600212460ustar00rootroot00000000000000div.admonition { transition: width 0.5s; -webkit-transition: width 0.5s; overflow: hidden; } div.admonition:active { width: 150% } div.note:active { width: 100% } div.highlight-yaml { transition: width 0.5s; -webkit-transition: width 0.5s; overflow: hidden; } div.highlight-yaml:active { width: 150% } div.highlight-default { transition: width 0.5s; -webkit-transition: width 0.5s; overflow: hidden; } div.highlight-default:active { width: 150% } div.highlight-python { transition: width 0.5s; -webkit-transition: width 0.5s; overflow: hidden; } div.highlight-python:active { width: 150% } asdf-wcs-schemas-0.4.0/docs/_static/logo.ico000066400000000000000000000130761457314201600206670ustar00rootroot00000000000000@@((@  !!!"""###$$$%%%&&&((()))***,,,---...///000111222444555666777888999:::;;;<<<===>>>???@@@BBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLLLMMMNNNOOOPPPQQQRRRSSSTTTUUUVVVWWWXXXYYYZZZ[[[\\\]]]^^^___```aaabbbcccdddeeefffggghhhiiijjjkkklllmmmnnnooopppqqqrrrssstttuuuvvvwwwxxxyyyzzz{{{|||}}}~~~glZp7Ȗ2ۺAr<$ 7hrhP߼'Џ~Yn}SN=õY&߶֧yH*G^^lo`\#H33/4m* !0%U!bRٯXlU<4WvN+YR~a͸1~b[ԚU ZTa;U xi7o@:ǐ{rHv0JfwR]}aMUewj瓁.(|R4fZ&pQ!\=kicP%{,D;Q19UebLJ Γo>cKlE4IH()xZ|z2XR`2mig3nJIs=X-Ilw!{=S~"U U=tleV9y&Ou FϋnjA:vHYC4V:Mr R[ nXťOCq+V,.]BgZwXS {$ߗdY_Vu{+~+cĕ%mAWCXfS+++eM9K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؟?ޣP<_FF5~kpƿ=8u83pI4Jp9Av|RCջV2KN(vHdO$@J02-*vQpN4?#|?Rq&y/Os%׃tqmWwQmOъ+/@?7Ymij:[|M,.l }9:kYvO8yi Ԋ#\pȉdTgRH\UpG>_Yj}VaIˣ?fhK('\f}^cTQ4й@5v;iA+ ^|ZMmGсanwOk+zZ+ȦSJHWu )oF̠ӳ:.w|>s @>i9kfE*DĄ 4@2<$}q,$1nUM}}.O0UpBH_\>)?f<*C4pP};ө($6S,4#jo\3 #u@*6˸‘PJz >NeÚedq~4C%̧8S6yd1AEATVN;K3\ߕZ>O읍I~`uZɶ!sT\'r/#Sh5 LOY I/%woldz‰?p/{#?xDvuxvK;}tgTU'BQ(NXs*ǚ*U%K:m%вï B'm1HYӏHj ̰oWS_PVsypӜ£[g_$`I(Yg}N/Y8>>]pAB%yؒ,ѕsq eiwɢ[iϮlwhٴϹ L0 bD,m+tYOr> EOoc|!~1YIYp!N~[_1πq_?. ҩ_d,qe--g;][>PY^yj&3}As!;}~|s~$ڊܧ>O}1H=3 -BMG{秈y!oV O ƿ/""?>˯#&3~iӌw>oG$P<ߕ>.lf" ksz"׹gm_3>jܸئ:W̓vQE]W:&UNlRAŁ%ϖh5_]N endstream endobj 4 0 obj 9795 endobj 2 0 obj << /ExtGState << /a0 << /CA 1 /ca 1 >> >> >> endobj 5 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 214 167 ] /Contents 3 0 R /Group << /Type /Group /S /Transparency /CS /DeviceRGB >> /Resources 2 0 R >> endobj 1 0 obj << /Type /Pages /Kids [ 5 0 R ] /Count 1 >> endobj 6 0 obj << /Creator (cairo 1.8.10 (http://cairographics.org)) /Producer (cairo 1.8.10 (http://cairographics.org)) >> endobj 7 0 obj << /Type /Catalog /Pages 1 0 R >> endobj xref 0 8 0000000000 65535 f 0000010181 00000 n 0000009909 00000 n 0000000015 00000 n 0000009886 00000 n 0000009981 00000 n 0000010246 00000 n 0000010373 00000 n trailer << /Size 8 /Root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3nqު7|E·kU~nq%t˷y֣4D[\,bi\<1zVurFqDq}7=bD!xihf57;ZҘ:kqgsZ^|j{`1NXN{tۡYeaя5;a'E(FĂ=xor.fLcx}x;(Fsܢ[j@y_oR!}P4SLy O;Ԩ-G (~*Ӵ'S5MNIXN-Tt.vTuRn)dѹ' 9D'UKwjڸwF-3>Js.glZ԰nPi PП/wՄD/u&O}FrE7IL},֖ơv_gr4F̾lh5 ~a_w\CĸնS!җ%bcԽWO>m -]֙Gzbe?B\Gj[cKi̞=]I;J_}~6+U][{(u$wW oO\>7Wޜe}yk}F{ka2ZdYbX >3,EB"Z# }˺h~r>?jLfP^d|K\!ܡ/z涺G[o/2(7=I:0$e}!?L+anCmq@)WsC~S߿ (ڞmpTR S"@} TbOT @)pXz PKR()PCo֕p+PFuKV@ =U, Կר,J, Rq}wM! h)0@ ʥ(JRNjYB1 ^t)P=eV] p?g]UR 7/V!Аgqw6,/@ /V8_ ~ז'P~V _qz6zG% wܐ&`C]L0f6u-nR~yS Kw8*+~4_ָu+{rm)I%ځ)i,xПjũR 52T0,S{@SM лZCmq`@GnG.A5ޫ'~(*|pfeSJ *v)CWeN7칊5ުslV^^9죴|Eo {W:WemVT>@ 6쁫 7rS<#[^_̫SٟW| !mfSY[>@ 9{RZ)f"AzPJK5.)G`Hf)Bᷢӫb "$#IENDB`asdf-wcs-schemas-0.4.0/docs/_templates/000077500000000000000000000000001457314201600177335ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/docs/_templates/autosummary/000077500000000000000000000000001457314201600223215ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/docs/_templates/autosummary/base.rst000066400000000000000000000003731457314201600237700ustar00rootroot00000000000000{% extends "autosummary_core/base.rst" %} {# The template this is inherited from is in astropy/sphinx/ext/templates/autosummary_core. If you want to modify this template, it is strongly recommended that you still inherit from the astropy template. #} asdf-wcs-schemas-0.4.0/docs/_templates/autosummary/class.rst000066400000000000000000000003741457314201600241640ustar00rootroot00000000000000{% extends "autosummary_core/class.rst" %} {# The template this is inherited from is in astropy/sphinx/ext/templates/autosummary_core. If you want to modify this template, it is strongly recommended that you still inherit from the astropy template. #} asdf-wcs-schemas-0.4.0/docs/_templates/autosummary/module.rst000066400000000000000000000003751457314201600243450ustar00rootroot00000000000000{% extends "autosummary_core/module.rst" %} {# The template this is inherited from is in astropy/sphinx/ext/templates/autosummary_core. If you want to modify this template, it is strongly recommended that you still inherit from the astropy template. #} asdf-wcs-schemas-0.4.0/docs/changes.rst000066400000000000000000000001041457314201600177330ustar00rootroot00000000000000.. _change_log: Change Log ========== .. include:: ../CHANGES.rst asdf-wcs-schemas-0.4.0/docs/conf.py000066400000000000000000000143631457314201600171040ustar00rootroot00000000000000# Astropy documentation build configuration file. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this file. # # All configuration values have a default. Some values are defined in # the global Astropy configuration which is loaded here before anything else. # See astropy.sphinx.conf for which values are set there. # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # sys.path.insert(0, os.path.abspath('..')) # IMPORTANT: the above commented section was generated by sphinx-quickstart, but # is *NOT* appropriate for astropy or Astropy affiliated packages. It is left # commented out with this explanation to make it clear why this should not be # done. If the sys.path entry above is added, when the astropy.sphinx.conf # import occurs, it will import the *source* version of astropy instead of the # version installed (if invoked as "make html" or directly with sphinx), or the # version in the build directory (if "python setup.py build_sphinx" is used). # Thus, any C-extensions that are needed to build the documentation will *not* # be accessible, and the documentation will not build correctly. import datetime import os import sys from pathlib import Path # Ensure documentation examples are determinstically random. import numpy import tomli from pkg_resources import get_distribution try: numpy.random.seed(int(os.environ["SOURCE_DATE_EPOCH"])) except KeyError: pass try: from sphinx_astropy.conf.v1 import * # noqa: F403 except ImportError: print("ERROR: the documentation requires the sphinx-astropy package to be installed") sys.exit(1) # Get configuration information from `pyproject.toml` with open(Path(__file__).parent.parent / "pyproject.toml", "rb") as configuration_file: conf = tomli.load(configuration_file) configuration = conf["project"] # -- General configuration ---------------------------------------------------- project = configuration["name"] author = f"{configuration['authors'][0]['name']} <{configuration['authors'][0]['email']}>" copyright = f"{datetime.datetime.now().year}, {configuration['authors'][0]['name']}" release = get_distribution(configuration["name"]).version version = ".".join(release.split(".")[:2]) # If your documentation needs a minimal Sphinx version, state it here. # needs_sphinx = '1.2' intersphinx_mapping["pypa-packaging"] = ("https://packaging.python.org/en/latest/", None) intersphinx_mapping["asdf"] = ("https://asdf.readthedocs.io/en/latest/", None) intersphinx_mapping["asdf-standard"] = ("https://asdf-standard.readthedocs.io/en/latest/", None) intersphinx_mapping["asdf-astropy"] = ("https://asdf-astropy.readthedocs.io/en/latest/", None) intersphinx_mapping["pytest"] = ("https://docs.pytest.org/en/latest/", None) intersphinx_mapping["gwcs"] = ("https://gwcs.readthedocs.io/en/latest/", None) # To perform a Sphinx version check that needs to be more specific than # major.minor, call `check_sphinx_version("x.y.z")` here. # check_sphinx_version("1.2.1") # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns.append("_templates") # This is added to the end of RST files - a good place to put substitutions to # be used globally. rst_epilog += """""" # -- Project information ------------------------------------------------------ # -- Options for HTML output --------------------------------------------------- # A NOTE ON HTML THEMES # The global astropy configuration uses a custom theme, 'bootstrap-astropy', # which is installed along with astropy. A different theme can be used or # the options for this theme can be modified by overriding some of the # variables set in the global configuration. The variables set in the # global configuration are listed below, commented out. # Add any paths that contain custom themes here, relative to this directory. # To use a different custom theme, add the directory containing the theme. # html_theme_path = [] # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. To override the custom theme, set this to the # name of a builtin theme or the name of a custom theme in html_theme_path. html_theme = "sphinx_rtd_theme" html_theme_options = {} html_static_path = ["_static"] # Custom sidebar templates, maps document names to template names. # html_sidebars = {} # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. html_favicon = "_static/logo.ico" html_logo = "_static/logo.png" # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. # html_last_updated_fmt = '' # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". html_title = f"{project} v{release}" # Output file base name for HTML help builder. htmlhelp_basename = project + "doc" # -- Options for LaTeX output -------------------------------------------------- # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [("index", project + ".tex", project + " Documentation", author, "manual")] latex_logo = "_static/logo.pdf" # -- Options for manual page output -------------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [("index", project.lower(), project + " Documentation", [author], 1)] sys.path.insert(0, os.path.join(os.path.abspath(os.path.dirname("__file__")), "sphinxext")) extensions += ["sphinx_asdf"] def setup(app): app.add_css_file("custom.css") # -- sphinx_asdf configuration --------------------------------------------- # Top-level directory containing ASDF schemas (relative to current directory) asdf_schema_path = "../resources/schemas/stsci.edu" # This is the prefix common to all schema IDs in this repository asdf_schema_standard_prefix = "gwcs" asdf-wcs-schemas-0.4.0/docs/contributing.rst000066400000000000000000000003231457314201600210350ustar00rootroot00000000000000.. _contributing: Contributing ============ We welcome feedback and contributions of all kinds. Contributions of code, documentation, or general feedback are all appreciated. .. include:: ../CONTRIBUTING.rst asdf-wcs-schemas-0.4.0/docs/frames.rst000066400000000000000000000004761457314201600176140ustar00rootroot00000000000000.. _frame-schemas: Coordinate Frame Schemas ======================== The ``frame`` schemas. Current ------- .. asdf-autoschemas:: celestial_frame-1.0.0 composite_frame-1.0.0 frame-1.0.0 frame2d-1.0.0 spectral_frame-1.0.0 stokes_frame-1.0.0 temporal_frame-1.0.0 Legacy ------ .. asdf-autoschemas:: asdf-wcs-schemas-0.4.0/docs/index.rst000066400000000000000000000022301457314201600174340ustar00rootroot00000000000000.. _asdf-wcs-schemas: **************** ASDF WCS Schemas **************** The ASDf WCS Schemas define a set of schemas for serializing WCS objects for the :ref:`GWCS ` package. These schemas are based upon the schemas in the :ref:`ASDF Standard ` and are packaged for use by the :ref:`ASDF ` library. .. note:: This is only a schema package, to use these schemas to serialize WCS objects, one must install the :ref:`GWCS ` package. Included Resources ================== The following are listings of all the schemas provided by this package for ASDF. .. note:: Typically, schemas are used in ASDF via their tag, which can be found in the manifest. When usina a WCS in ASDF it is recommended that you use the tag instead of a direct reference to the schema. Moreover, when doing so make sure you are using the correct manifest version. .. toctree:: :maxdepth: 1 wcs.rst frames.rst transforms.rst manifests.rst Developer Resources =================== .. toctree:: :maxdepth: 1 contributing.rst changes.rst Index ===== * :ref:`genindex` * :ref:`modindex` * :ref:`search` asdf-wcs-schemas-0.4.0/docs/make.bat000066400000000000000000000106411457314201600172050ustar00rootroot00000000000000@ECHO OFF REM Command file for Sphinx documentation if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) set BUILDDIR=_build set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . if NOT "%PAPER%" == "" ( set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% ) if "%1" == "" goto help if "%1" == "help" ( :help echo.Please use `make ^` where ^ is one of echo. html to make standalone HTML files echo. dirhtml to make HTML files named index.html in directories echo. singlehtml to make a single large HTML file echo. pickle to make pickle files echo. json to make JSON files echo. htmlhelp to make HTML files and a HTML help project echo. qthelp to make HTML files and a qthelp project echo. devhelp to make HTML files and a Devhelp project echo. epub to make an epub echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter echo. text to make text files echo. man to make manual pages echo. changes to make an overview over all changed/added/deprecated items echo. linkcheck to check all external links for integrity echo. doctest to run all doctests embedded in the documentation if enabled goto end ) if "%1" == "clean" ( for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i del /q /s %BUILDDIR%\* goto end ) if "%1" == "html" ( %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html if errorlevel 1 exit /b 1 echo. echo.Build finished. The HTML pages are in %BUILDDIR%/html. goto end ) if "%1" == "dirhtml" ( %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml if errorlevel 1 exit /b 1 echo. echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml. goto end ) if "%1" == "singlehtml" ( %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml if errorlevel 1 exit /b 1 echo. echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml. goto end ) if "%1" == "pickle" ( %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle if errorlevel 1 exit /b 1 echo. echo.Build finished; now you can process the pickle files. goto end ) if "%1" == "json" ( %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json if errorlevel 1 exit /b 1 echo. echo.Build finished; now you can process the JSON files. goto end ) if "%1" == "htmlhelp" ( %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp if errorlevel 1 exit /b 1 echo. echo.Build finished; now you can run HTML Help Workshop with the ^ .hhp project file in %BUILDDIR%/htmlhelp. goto end ) if "%1" == "qthelp" ( %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp if errorlevel 1 exit /b 1 echo. echo.Build finished; now you can run "qcollectiongenerator" with the ^ .qhcp project file in %BUILDDIR%/qthelp, like this: echo.^> qcollectiongenerator %BUILDDIR%\qthelp\Astropy.qhcp echo.To view the help file: echo.^> assistant -collectionFile %BUILDDIR%\qthelp\Astropy.ghc goto end ) if "%1" == "devhelp" ( %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp if errorlevel 1 exit /b 1 echo. echo.Build finished. goto end ) if "%1" == "epub" ( %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub if errorlevel 1 exit /b 1 echo. echo.Build finished. The epub file is in %BUILDDIR%/epub. goto end ) if "%1" == "latex" ( %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex if errorlevel 1 exit /b 1 echo. echo.Build finished; the LaTeX files are in %BUILDDIR%/latex. goto end ) if "%1" == "text" ( %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text if errorlevel 1 exit /b 1 echo. echo.Build finished. The text files are in %BUILDDIR%/text. goto end ) if "%1" == "man" ( %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man if errorlevel 1 exit /b 1 echo. echo.Build finished. The manual pages are in %BUILDDIR%/man. goto end ) if "%1" == "changes" ( %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes if errorlevel 1 exit /b 1 echo. echo.The overview file is in %BUILDDIR%/changes. goto end ) if "%1" == "linkcheck" ( %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck if errorlevel 1 exit /b 1 echo. echo.Link check complete; look for any errors in the above output ^ or in %BUILDDIR%/linkcheck/output.txt. goto end ) if "%1" == "doctest" ( %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest if errorlevel 1 exit /b 1 echo. echo.Testing of doctests in the sources finished, look at the ^ results in %BUILDDIR%/doctest/output.txt. goto end ) :end asdf-wcs-schemas-0.4.0/docs/manifests.rst000066400000000000000000000006561457314201600203300ustar00rootroot00000000000000.. _manifests: Manifests ========= The ASDF tags (described by schemas) available under each ASDF transform schemas version are all described by a single manifest document for that version. GWCS ---- .. asdf-autoschemas:: :schema_root: ../resources :standard_prefix: manifests gwcs-1.0.1 gwcs-1.1.0 Legacy ------ .. asdf-autoschemas:: :schema_root: ../resources :standard_prefix: manifests gwcs-1.0.0 asdf-wcs-schemas-0.4.0/docs/transforms.rst000066400000000000000000000010421457314201600205230ustar00rootroot00000000000000.. _transform-schemas: Transform Schemas ================= The ``transform`` schemas. Current ------- .. asdf-autoschemas:: direction_cosines-1.1.0 grating_equation-1.1.0 label_mapper-1.1.0 regions_selector-1.1.0 sellmeier_glass-1.1.0 sellmeier_zemax-1.1.0 snell3d-1.1.0 spherical_cartesian-1.1.0 Legacy ------ .. asdf-autoschemas:: direction_cosines-1.0.0 grating_equation-1.0.0 label_mapper-1.0.0 regions_selector-1.0.0 sellmeier_glass-1.0.0 sellmeier_zemax-1.0.0 snell3d-1.0.0 spherical_cartesian-1.0.0 asdf-wcs-schemas-0.4.0/docs/wcs.rst000066400000000000000000000003021457314201600171170ustar00rootroot00000000000000.. _wcs-schemas: WCS Schemas =========== The ``wcs`` schemas. Current ------- .. asdf-autoschemas:: step-1.1.0 wcs-1.1.0 Legacy ------ .. asdf-autoschemas:: step-1.0.0 wcs-1.0.0 asdf-wcs-schemas-0.4.0/pyproject.toml000066400000000000000000000042771457314201600175740ustar00rootroot00000000000000[project] name = 'asdf_wcs_schemas' description = 'ASDF WCS schemas' readme = 'README.md' requires-python = '>=3.9' license = { file = 'LICENSE' } authors = [{ name = 'The ASDF Developers', email = 'help@stsci.edu' }] classifiers = [ 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Development Status :: 5 - Production/Stable', ] dependencies = [ 'asdf-standard >= 1.1.0', 'asdf-transform-schemas >= 0.5.0', 'asdf-coordinates-schemas >= 0.3.0', ] dynamic = ['version'] [build-system] requires = [ "setuptools>=60", "setuptools_scm[toml]>=3.4", "wheel" ] build-backend = "setuptools.build_meta" [project.optional-dependencies] docs = [ 'tomli', 'sphinx', 'sphinx-asdf >= 0.1.3', 'sphinx-astropy', 'astropy >= 5.0.4', 'graphviz', 'matplotlib', 'docutils', 'sphinx-rtd-theme', ] test = [ 'pytest >= 4.6.0', 'asdf >= 2.8.0', 'asdf-astropy', ] [project.urls] 'tracker' = 'https://github.com/asdf-format/asdf-wcs-schemas/issues' 'documentation' = 'https://asdf-wcs-schemas.readthedocs.io/en/stable' 'repository' = 'https://github.com/asdf-format/asdf-wcs-schemas' [project.entry-points] 'asdf.resource_mappings' = { asdf_wcs_schemas = 'asdf_wcs_schemas.integration:get_resource_mappings' } [tool.setuptools_scm] write_to = "src/asdf_wcs_schemas/_version.py" [tool.setuptools] packages = ["asdf_wcs_schemas", "asdf_wcs_schemas.resources"] [tool.setuptools.package-data] "asdf_wcs_schemas.resources" = ["resources/**/*.yaml"] [tool.setuptools.package-dir] '' = "src" "asdf_wcs_schemas.resources" = "resources" [tool.pytest.ini_options] asdf_schema_root = 'resources/schemas' asdf_schema_tests_enabled = 'true' asdf_schema_ignore_unrecognized_tag = 'true' testpaths = """ tests resources """ addopts = '--color=yes' [tool.black] line-length = 120 force-exclude = ''' ^/( ( \.eggs | \.git | \.pytest_cache | \.tox | build | dist )/ ) ''' [tool.isort] profile = "black" filter_files = true line_length = 120 asdf-wcs-schemas-0.4.0/resources/000077500000000000000000000000001457314201600166605ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/resources/__init__.py000066400000000000000000000000001457314201600207570ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/resources/manifests/000077500000000000000000000000001457314201600206515ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/resources/manifests/gwcs-1.0.0.yaml000066400000000000000000000205501457314201600231340ustar00rootroot00000000000000%YAML 1.1 --- id: asdf://asdf-format.org/astronomy/gwcs/manifests/gwcs-1.0.0 extension_uri: asdf://asdf-format.org/astronomy/gwcs/extensions/gwcs-1.0.0 title: gwcs extension 1.0 description: |- A set of tags for serializing STScI gwcs models. asdf_standard_requirement: gte: 1.1.0 tags: - tag_uri: tag:stsci.edu:gwcs/celestial_frame-1.0.0 schema_uri: http://stsci.edu/schemas/gwcs/celestial_frame-1.0.0 title: A celestial frame description: |- Represents a celestial frame - tag_uri: tag:stsci.edu:gwcs/composite_frame-1.0.0 schema_uri: http://stsci.edu/schemas/gwcs/composite_frame-1.0.0 title: A set of frames description: |- Represents a set of frames - tag_uri: "tag:stsci.edu:gwcs/direction_cosines-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/direction_cosines-1.0.0" title: > Convert coordinates between vector and direction cosine form. description: | This schema is for transforms which convert to and from direction cosines. - tag_uri: "tag:stsci.edu:gwcs/direction_cosines-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/direction_cosines-1.1.0" title: > Convert coordinates between vector and direction cosine form. description: | This schema is for transforms which convert to and from direction cosines. - tag_uri: "tag:stsci.edu:gwcs/frame2d-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/frame2d-1.0.0" title: > Represents a 2D frame. description: | Represents a 2D frame. - tag_uri: "tag:stsci.edu:gwcs/frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/frame-1.0.0" title: | The base class of all coordinate frames. description: | These objects are designed to be nested in arbitrary ways to build up transformation pipelines out of a number of low-level pieces. - tag_uri: "tag:stsci.edu:gwcs/grating_equation-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/grating_equation-1.0.0" title: > A grating equation model. description: | Supports two models: - Given incident angle and wavelength compute the refraction/difraction angle. - Given an incident angle and a refraction angle compute the wavelength. - tag_uri: "tag:stsci.edu:gwcs/grating_equation-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/grating_equation-1.1.0" title: > A grating equation model. description: | Supports two models: - Given incident angle and wavelength compute the refraction/difraction angle. - Given an incident angle and a refraction angle compute the wavelength. - tag_uri: "tag:stsci.edu:gwcs/label_mapper-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/label_mapper-1.0.0" title: > Represents a mapping from a coordinate value to a label. description: | A label mapper instance maps inputs to a label. It is used together with [regions_selector](ref:regions_selector-1.0.0). The [label_mapper](ref:label_mapper-1.0.0) returns the label corresponding to given inputs. The [regions_selector](ref:regions_selector-1.0.0) returns the transform corresponding to this label. This maps inputs (e.g. pixels on a detector) to transforms uniquely. - tag_uri: "tag:stsci.edu:gwcs/label_mapper-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/label_mapper-1.1.0" title: > Represents a mapping from a coordinate value to a label. description: | A label mapper instance maps inputs to a label. It is used together with [regions_selector](ref:regions_selector-1.1.0). The [label_mapper](ref:label_mapper-1.1.0) returns the label corresponding to given inputs. The [regions_selector](ref:regions_selector-1.1.0) returns the transform corresponding to this label. This maps inputs (e.g. pixels on a detector) to transforms uniquely. - tag_uri: "tag:stsci.edu:gwcs/regions_selector-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/regions_selector-1.0.0" title: > Represents a discontinuous transform. description: | Maps regions to transgorms and evaluates the transforms with the corresponding inputs. - tag_uri: "tag:stsci.edu:gwcs/regions_selector-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/regions_selector-1.1.0" title: > Represents a discontinuous transform. description: | Maps regions to transgorms and evaluates the transforms with the corresponding inputs. - tag_uri: "tag:stsci.edu:gwcs/sellmeier_glass-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/sellmeier_glass-1.0.0" title: > Sellmeier equation for glass description: | Sellmeier equation for glass. $$ n(\\lambda)^2 = 1 + \\frac{(B1 * \\lambda^2 )}{(\\lambda^2 - C1)} + \\frac{(B2 * \\lambda^2 )}{(\\lambda^2 - C2)} + \\frac{(B3 * \\lambda^2 )}{(\\lambda^2 - C3)} $$ - tag_uri: "tag:stsci.edu:gwcs/sellmeier_glass-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/sellmeier_glass-1.1.0" title: > Sellmeier equation for glass description: | Sellmeier equation for glass. $$ n(\\lambda)^2 = 1 + \\frac{(B1 * \\lambda^2 )}{(\\lambda^2 - C1)} + \\frac{(B2 * \\lambda^2 )}{(\\lambda^2 - C2)} + \\frac{(B3 * \\lambda^2 )}{(\\lambda^2 - C3)} $$ - tag_uri: "tag:stsci.edu:gwcs/sellmeier_zemax-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/sellmeier_zemax-1.0.0" title: Sellmeier equation for glass used by Zemax description: | Sellmeier equation for glass used by Zemax - tag_uri: "tag:stsci.edu:gwcs/sellmeier_zemax-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/sellmeier_zemax-1.1.0" title: Sellmeier equation for glass used by Zemax description: | Sellmeier equation for glass used by Zemax - tag_uri: "tag:stsci.edu:gwcs/snell3d-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/snell3d-1.0.0" title: Snell Law in 3D space description: | Snell Law in 3D. Inputs are index of refraction and direction cosines. Outputs are direction cosines. - tag_uri: "tag:stsci.edu:gwcs/snell3d-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/snell3d-1.1.0" title: Snell Law in 3D space description: | Snell Law in 3D. Inputs are index of refraction and direction cosines. Outputs are direction cosines. - tag_uri: "tag:stsci.edu:gwcs/spectral_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/spectral_frame-1.0.0" title: > Represents a spectral frame. description: > - tag_uri: "tag:stsci.edu:gwcs/spherical_cartesian-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/spherical_cartesian-1.0.0" title: > Convert coordinates between spherical and Cartesian coordinates. description: | This schema is for transforms which convert between spherical coordinates (on the unit sphere) and Cartesian coordinates. - tag_uri: "tag:stsci.edu:gwcs/spherical_cartesian-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/spherical_cartesian-1.1.0" title: > Convert coordinates between spherical and Cartesian coordinates. description: | This schema is for transforms which convert between spherical coordinates (on the unit sphere) and Cartesian coordinates. - tag_uri: "tag:stsci.edu:gwcs/step-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/step-1.0.0" title: > Describes a single step of a WCS transform pipeline. description: > - tag_uri: "tag:stsci.edu:gwcs/step-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/step-1.1.0" title: > Describes a single step of a WCS transform pipeline. description: > - tag_uri: "tag:stsci.edu:gwcs/stokes_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/stokes_frame-1.0.0" title: > Represents a stokes frame description: > - tag_uri: "tag:stsci.edu:gwcs/temporal_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/temporal_frame-1.0.0" title: > Represents a temporal frame. description: > - tag_uri: "tag:stsci.edu:gwcs/wcs-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/wcs-1.0.0" title: > A system for describing generalized world coordinate transformations. description: > ASDF WCS is a way of specifying transformations (usually from detector space to world coordinate space and back) by using the transformations in the `transform-schema` module. - tag_uri: "tag:stsci.edu:gwcs/wcs-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/wcs-1.1.0" title: > A system for describing generalized world coordinate transformations. description: > ASDF WCS is a way of specifying transformations (usually from detector space to world coordinate space and back) by using the transformations in the `transform-schema` module. ... asdf-wcs-schemas-0.4.0/resources/manifests/gwcs-1.0.1.yaml000066400000000000000000000120231457314201600231310ustar00rootroot00000000000000%YAML 1.1 --- id: asdf://asdf-format.org/astronomy/gwcs/manifests/gwcs-1.0.1 extension_uri: asdf://asdf-format.org/astronomy/gwcs/extensions/gwcs-1.0.1 title: gwcs extension 1.0.1 description: |- A set of tags for serializing STScI gwcs models. asdf_standard_requirement: gte: 1.1.0 tags: - tag_uri: tag:stsci.edu:gwcs/celestial_frame-1.0.0 schema_uri: http://stsci.edu/schemas/gwcs/celestial_frame-1.0.0 title: A celestial frame description: |- Represents a celestial frame - tag_uri: tag:stsci.edu:gwcs/composite_frame-1.0.0 schema_uri: http://stsci.edu/schemas/gwcs/composite_frame-1.0.0 title: A set of frames description: |- Represents a set of frames - tag_uri: "tag:stsci.edu:gwcs/direction_cosines-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/direction_cosines-1.0.0" title: > Convert coordinates between vector and direction cosine form. description: | This schema is for transforms which convert to and from direction cosines. - tag_uri: "tag:stsci.edu:gwcs/frame2d-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/frame2d-1.0.0" title: > Represents a 2D frame. description: | Represents a 2D frame. - tag_uri: "tag:stsci.edu:gwcs/frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/frame-1.0.0" title: | The base class of all coordinate frames. description: | These objects are designed to be nested in arbitrary ways to build up transformation pipelines out of a number of low-level pieces. - tag_uri: "tag:stsci.edu:gwcs/grating_equation-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/grating_equation-1.0.0" title: > A grating equation model. description: | Supports two models: - Given incident angle and wavelength compute the refraction/difraction angle. - Given an incident angle and a refraction angle compute the wavelength. - tag_uri: "tag:stsci.edu:gwcs/label_mapper-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/label_mapper-1.0.0" title: > Represents a mapping from a coordinate value to a label. description: | A label mapper instance maps inputs to a label. It is used together with [regions_selector](ref:regions_selector-1.0.0). The [label_mapper](ref:label_mapper-1.0.0) returns the label corresponding to given inputs. The [regions_selector](ref:regions_selector-1.0.0) returns the transform corresponding to this label. This maps inputs (e.g. pixels on a detector) to transforms uniquely. - tag_uri: "tag:stsci.edu:gwcs/regions_selector-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/regions_selector-1.0.0" title: > Represents a discontinuous transform. description: | Maps regions to transgorms and evaluates the transforms with the corresponding inputs. - tag_uri: "tag:stsci.edu:gwcs/sellmeier_glass-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/sellmeier_glass-1.0.0" title: > Sellmeier equation for glass description: | Sellmeier equation for glass. $$ n(\\lambda)^2 = 1 + \\frac{(B1 * \\lambda^2 )}{(\\lambda^2 - C1)} + \\frac{(B2 * \\lambda^2 )}{(\\lambda^2 - C2)} + \\frac{(B3 * \\lambda^2 )}{(\\lambda^2 - C3)} $$ - tag_uri: "tag:stsci.edu:gwcs/sellmeier_zemax-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/sellmeier_zemax-1.0.0" title: Sellmeier equation for glass used by Zemax description: | Sellmeier equation for glass used by Zemax - tag_uri: "tag:stsci.edu:gwcs/snell3d-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/snell3d-1.0.0" title: Snell Law in 3D space description: | Snell Law in 3D. Inputs are index of refraction and direction cosines. Outputs are direction cosines. - tag_uri: "tag:stsci.edu:gwcs/spectral_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/spectral_frame-1.0.0" title: > Represents a spectral frame. description: > - tag_uri: "tag:stsci.edu:gwcs/spherical_cartesian-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/spherical_cartesian-1.0.0" title: > Convert coordinates between spherical and Cartesian coordinates. description: | This schema is for transforms which convert between spherical coordinates (on the unit sphere) and Cartesian coordinates. - tag_uri: "tag:stsci.edu:gwcs/step-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/step-1.0.0" title: > Describes a single step of a WCS transform pipeline. description: > - tag_uri: "tag:stsci.edu:gwcs/stokes_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/stokes_frame-1.0.0" title: > Represents a stokes frame description: > - tag_uri: "tag:stsci.edu:gwcs/temporal_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/temporal_frame-1.0.0" title: > Represents a temporal frame. description: > - tag_uri: "tag:stsci.edu:gwcs/wcs-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/wcs-1.0.0" title: > A system for describing generalized world coordinate transformations. description: > ASDF WCS is a way of specifying transformations (usually from detector space to world coordinate space and back) by using the transformations in the `transform-schema` module. ... asdf-wcs-schemas-0.4.0/resources/manifests/gwcs-1.1.0.yaml000066400000000000000000000120231457314201600231310ustar00rootroot00000000000000%YAML 1.1 --- id: asdf://asdf-format.org/astronomy/gwcs/manifests/gwcs-1.1.0 extension_uri: asdf://asdf-format.org/astronomy/gwcs/extensions/gwcs-1.1.0 title: gwcs extension 1.1.0 description: |- A set of tags for serializing STScI gwcs models. asdf_standard_requirement: gte: 1.1.0 tags: - tag_uri: tag:stsci.edu:gwcs/celestial_frame-1.0.0 schema_uri: http://stsci.edu/schemas/gwcs/celestial_frame-1.0.0 title: A celestial frame description: |- Represents a celestial frame - tag_uri: tag:stsci.edu:gwcs/composite_frame-1.0.0 schema_uri: http://stsci.edu/schemas/gwcs/composite_frame-1.0.0 title: A set of frames description: |- Represents a set of frames - tag_uri: "tag:stsci.edu:gwcs/direction_cosines-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/direction_cosines-1.1.0" title: > Convert coordinates between vector and direction cosine form. description: | This schema is for transforms which convert to and from direction cosines. - tag_uri: "tag:stsci.edu:gwcs/frame2d-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/frame2d-1.0.0" title: > Represents a 2D frame. description: | Represents a 2D frame. - tag_uri: "tag:stsci.edu:gwcs/frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/frame-1.0.0" title: | The base class of all coordinate frames. description: | These objects are designed to be nested in arbitrary ways to build up transformation pipelines out of a number of low-level pieces. - tag_uri: "tag:stsci.edu:gwcs/grating_equation-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/grating_equation-1.1.0" title: > A grating equation model. description: | Supports two models: - Given incident angle and wavelength compute the refraction/difraction angle. - Given an incident angle and a refraction angle compute the wavelength. - tag_uri: "tag:stsci.edu:gwcs/label_mapper-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/label_mapper-1.1.0" title: > Represents a mapping from a coordinate value to a label. description: | A label mapper instance maps inputs to a label. It is used together with [regions_selector](ref:regions_selector-1.1.0). The [label_mapper](ref:label_mapper-1.1.0) returns the label corresponding to given inputs. The [regions_selector](ref:regions_selector-1.1.0) returns the transform corresponding to this label. This maps inputs (e.g. pixels on a detector) to transforms uniquely. - tag_uri: "tag:stsci.edu:gwcs/regions_selector-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/regions_selector-1.1.0" title: > Represents a discontinuous transform. description: | Maps regions to transgorms and evaluates the transforms with the corresponding inputs. - tag_uri: "tag:stsci.edu:gwcs/sellmeier_glass-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/sellmeier_glass-1.1.0" title: > Sellmeier equation for glass description: | Sellmeier equation for glass. $$ n(\\lambda)^2 = 1 + \\frac{(B1 * \\lambda^2 )}{(\\lambda^2 - C1)} + \\frac{(B2 * \\lambda^2 )}{(\\lambda^2 - C2)} + \\frac{(B3 * \\lambda^2 )}{(\\lambda^2 - C3)} $$ - tag_uri: "tag:stsci.edu:gwcs/sellmeier_zemax-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/sellmeier_zemax-1.1.0" title: Sellmeier equation for glass used by Zemax description: | Sellmeier equation for glass used by Zemax - tag_uri: "tag:stsci.edu:gwcs/snell3d-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/snell3d-1.1.0" title: Snell Law in 3D space description: | Snell Law in 3D. Inputs are index of refraction and direction cosines. Outputs are direction cosines. - tag_uri: "tag:stsci.edu:gwcs/spectral_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/spectral_frame-1.0.0" title: > Represents a spectral frame. description: > - tag_uri: "tag:stsci.edu:gwcs/spherical_cartesian-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/spherical_cartesian-1.1.0" title: > Convert coordinates between spherical and Cartesian coordinates. description: | This schema is for transforms which convert between spherical coordinates (on the unit sphere) and Cartesian coordinates. - tag_uri: "tag:stsci.edu:gwcs/step-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/step-1.1.0" title: > Describes a single step of a WCS transform pipeline. description: > - tag_uri: "tag:stsci.edu:gwcs/stokes_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/stokes_frame-1.0.0" title: > Represents a stokes frame description: > - tag_uri: "tag:stsci.edu:gwcs/temporal_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/temporal_frame-1.0.0" title: > Represents a temporal frame. description: > - tag_uri: "tag:stsci.edu:gwcs/wcs-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/wcs-1.1.0" title: > A system for describing generalized world coordinate transformations. description: > ASDF WCS is a way of specifying transformations (usually from detector space to world coordinate space and back) by using the transformations in the `transform-schema` module. ... asdf-wcs-schemas-0.4.0/resources/manifests/gwcs-1.2.0.yaml000066400000000000000000000120231457314201600231320ustar00rootroot00000000000000%YAML 1.1 --- id: asdf://asdf-format.org/astronomy/gwcs/manifests/gwcs-1.2.0 extension_uri: asdf://asdf-format.org/astronomy/gwcs/extensions/gwcs-1.2.0 title: gwcs extension 1.2.0 description: |- A set of tags for serializing STScI gwcs models. asdf_standard_requirement: gte: 1.1.0 tags: - tag_uri: tag:stsci.edu:gwcs/celestial_frame-1.0.0 schema_uri: http://stsci.edu/schemas/gwcs/celestial_frame-1.0.0 title: A celestial frame description: |- Represents a celestial frame - tag_uri: tag:stsci.edu:gwcs/composite_frame-1.0.0 schema_uri: http://stsci.edu/schemas/gwcs/composite_frame-1.0.0 title: A set of frames description: |- Represents a set of frames - tag_uri: "tag:stsci.edu:gwcs/direction_cosines-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/direction_cosines-1.1.0" title: > Convert coordinates between vector and direction cosine form. description: | This schema is for transforms which convert to and from direction cosines. - tag_uri: "tag:stsci.edu:gwcs/frame2d-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/frame2d-1.0.0" title: > Represents a 2D frame. description: | Represents a 2D frame. - tag_uri: "tag:stsci.edu:gwcs/frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/frame-1.0.0" title: | The base class of all coordinate frames. description: | These objects are designed to be nested in arbitrary ways to build up transformation pipelines out of a number of low-level pieces. - tag_uri: "tag:stsci.edu:gwcs/grating_equation-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/grating_equation-1.1.0" title: > A grating equation model. description: | Supports two models: - Given incident angle and wavelength compute the refraction/difraction angle. - Given an incident angle and a refraction angle compute the wavelength. - tag_uri: "tag:stsci.edu:gwcs/label_mapper-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/label_mapper-1.1.0" title: > Represents a mapping from a coordinate value to a label. description: | A label mapper instance maps inputs to a label. It is used together with [regions_selector](ref:regions_selector-1.1.0). The [label_mapper](ref:label_mapper-1.1.0) returns the label corresponding to given inputs. The [regions_selector](ref:regions_selector-1.1.0) returns the transform corresponding to this label. This maps inputs (e.g. pixels on a detector) to transforms uniquely. - tag_uri: "tag:stsci.edu:gwcs/regions_selector-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/regions_selector-1.1.0" title: > Represents a discontinuous transform. description: | Maps regions to transgorms and evaluates the transforms with the corresponding inputs. - tag_uri: "tag:stsci.edu:gwcs/sellmeier_glass-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/sellmeier_glass-1.1.0" title: > Sellmeier equation for glass description: | Sellmeier equation for glass. $$ n(\\lambda)^2 = 1 + \\frac{(B1 * \\lambda^2 )}{(\\lambda^2 - C1)} + \\frac{(B2 * \\lambda^2 )}{(\\lambda^2 - C2)} + \\frac{(B3 * \\lambda^2 )}{(\\lambda^2 - C3)} $$ - tag_uri: "tag:stsci.edu:gwcs/sellmeier_zemax-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/sellmeier_zemax-1.1.0" title: Sellmeier equation for glass used by Zemax description: | Sellmeier equation for glass used by Zemax - tag_uri: "tag:stsci.edu:gwcs/snell3d-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/snell3d-1.1.0" title: Snell Law in 3D space description: | Snell Law in 3D. Inputs are index of refraction and direction cosines. Outputs are direction cosines. - tag_uri: "tag:stsci.edu:gwcs/spectral_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/spectral_frame-1.0.0" title: > Represents a spectral frame. description: > - tag_uri: "tag:stsci.edu:gwcs/spherical_cartesian-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/spherical_cartesian-1.1.0" title: > Convert coordinates between spherical and Cartesian coordinates. description: | This schema is for transforms which convert between spherical coordinates (on the unit sphere) and Cartesian coordinates. - tag_uri: "tag:stsci.edu:gwcs/step-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/step-1.1.0" title: > Describes a single step of a WCS transform pipeline. description: > - tag_uri: "tag:stsci.edu:gwcs/stokes_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/stokes_frame-1.0.0" title: > Represents a stokes frame description: > - tag_uri: "tag:stsci.edu:gwcs/temporal_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/temporal_frame-1.0.0" title: > Represents a temporal frame. description: > - tag_uri: "tag:stsci.edu:gwcs/wcs-1.2.0" schema_uri: "http://stsci.edu/schemas/gwcs/wcs-1.2.0" title: > A system for describing generalized world coordinate transformations. description: > ASDF WCS is a way of specifying transformations (usually from detector space to world coordinate space and back) by using the transformations in the `transform-schema` module. ... asdf-wcs-schemas-0.4.0/resources/manifests/gwcs-1.3.0.yaml000066400000000000000000000120231457314201600231330ustar00rootroot00000000000000%YAML 1.1 --- id: asdf://asdf-format.org/astronomy/gwcs/manifests/gwcs-1.3.0 extension_uri: asdf://asdf-format.org/astronomy/gwcs/extensions/gwcs-1.3.0 title: gwcs extension 1.3.0 description: |- A set of tags for serializing STScI gwcs models. asdf_standard_requirement: gte: 1.6.0 tags: - tag_uri: tag:stsci.edu:gwcs/celestial_frame-1.1.0 schema_uri: http://stsci.edu/schemas/gwcs/celestial_frame-1.1.0 title: A celestial frame description: |- Represents a celestial frame - tag_uri: tag:stsci.edu:gwcs/composite_frame-1.0.0 schema_uri: http://stsci.edu/schemas/gwcs/composite_frame-1.0.0 title: A set of frames description: |- Represents a set of frames - tag_uri: "tag:stsci.edu:gwcs/direction_cosines-1.2.0" schema_uri: "http://stsci.edu/schemas/gwcs/direction_cosines-1.2.0" title: > Convert coordinates between vector and direction cosine form. description: | This schema is for transforms which convert to and from direction cosines. - tag_uri: "tag:stsci.edu:gwcs/frame2d-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/frame2d-1.1.0" title: > Represents a 2D frame. description: | Represents a 2D frame. - tag_uri: "tag:stsci.edu:gwcs/frame-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/frame-1.1.0" title: | The base class of all coordinate frames. description: | These objects are designed to be nested in arbitrary ways to build up transformation pipelines out of a number of low-level pieces. - tag_uri: "tag:stsci.edu:gwcs/grating_equation-1.2.0" schema_uri: "http://stsci.edu/schemas/gwcs/grating_equation-1.2.0" title: > A grating equation model. description: | Supports two models: - Given incident angle and wavelength compute the refraction/difraction angle. - Given an incident angle and a refraction angle compute the wavelength. - tag_uri: "tag:stsci.edu:gwcs/label_mapper-1.2.0" schema_uri: "http://stsci.edu/schemas/gwcs/label_mapper-1.2.0" title: > Represents a mapping from a coordinate value to a label. description: | A label mapper instance maps inputs to a label. It is used together with [regions_selector](ref:regions_selector-1.2.0). The [label_mapper](ref:label_mapper-1.2.0) returns the label corresponding to given inputs. The [regions_selector](ref:regions_selector-1.2.0) returns the transform corresponding to this label. This maps inputs (e.g. pixels on a detector) to transforms uniquely. - tag_uri: "tag:stsci.edu:gwcs/regions_selector-1.2.0" schema_uri: "http://stsci.edu/schemas/gwcs/regions_selector-1.2.0" title: > Represents a discontinuous transform. description: | Maps regions to transgorms and evaluates the transforms with the corresponding inputs. - tag_uri: "tag:stsci.edu:gwcs/sellmeier_glass-1.2.0" schema_uri: "http://stsci.edu/schemas/gwcs/sellmeier_glass-1.2.0" title: > Sellmeier equation for glass description: | Sellmeier equation for glass. $$ n(\\lambda)^2 = 1 + \\frac{(B1 * \\lambda^2 )}{(\\lambda^2 - C1)} + \\frac{(B2 * \\lambda^2 )}{(\\lambda^2 - C2)} + \\frac{(B3 * \\lambda^2 )}{(\\lambda^2 - C3)} $$ - tag_uri: "tag:stsci.edu:gwcs/sellmeier_zemax-1.2.0" schema_uri: "http://stsci.edu/schemas/gwcs/sellmeier_zemax-1.2.0" title: Sellmeier equation for glass used by Zemax description: | Sellmeier equation for glass used by Zemax - tag_uri: "tag:stsci.edu:gwcs/snell3d-1.2.0" schema_uri: "http://stsci.edu/schemas/gwcs/snell3d-1.2.0" title: Snell Law in 3D space description: | Snell Law in 3D. Inputs are index of refraction and direction cosines. Outputs are direction cosines. - tag_uri: "tag:stsci.edu:gwcs/spectral_frame-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/spectral_frame-1.1.0" title: > Represents a spectral frame. description: > - tag_uri: "tag:stsci.edu:gwcs/spherical_cartesian-1.2.0" schema_uri: "http://stsci.edu/schemas/gwcs/spherical_cartesian-1.2.0" title: > Convert coordinates between spherical and Cartesian coordinates. description: | This schema is for transforms which convert between spherical coordinates (on the unit sphere) and Cartesian coordinates. - tag_uri: "tag:stsci.edu:gwcs/step-1.2.0" schema_uri: "http://stsci.edu/schemas/gwcs/step-1.2.0" title: > Describes a single step of a WCS transform pipeline. description: > - tag_uri: "tag:stsci.edu:gwcs/stokes_frame-1.0.0" schema_uri: "http://stsci.edu/schemas/gwcs/stokes_frame-1.0.0" title: > Represents a stokes frame description: > - tag_uri: "tag:stsci.edu:gwcs/temporal_frame-1.1.0" schema_uri: "http://stsci.edu/schemas/gwcs/temporal_frame-1.1.0" title: > Represents a temporal frame. description: > - tag_uri: "tag:stsci.edu:gwcs/wcs-1.3.0" schema_uri: "http://stsci.edu/schemas/gwcs/wcs-1.3.0" title: > A system for describing generalized world coordinate transformations. description: > ASDF WCS is a way of specifying transformations (usually from detector space to world coordinate space and back) by using the transformations in the `transform-schema` module. ... asdf-wcs-schemas-0.4.0/resources/schemas/000077500000000000000000000000001457314201600203035ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/000077500000000000000000000000001457314201600222045ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/000077500000000000000000000000001457314201600231475ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/celestial_frame-1.0.0.yaml000066400000000000000000000006311457314201600276040ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/celestial_frame-1.0.0" title: > Represents a celestial frame. allOf: - type: object properties: axes_names: minItems: 2 maxItems: 3 axes_order: minItems: 2 maxItems: 3 unit: minItems: 2 maxItems: 3 - $ref: frame-1.0.0 ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/celestial_frame-1.1.0.yaml000066400000000000000000000006311457314201600276050ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/celestial_frame-1.1.0" title: > Represents a celestial frame. allOf: - type: object properties: axes_names: minItems: 2 maxItems: 3 axes_order: minItems: 2 maxItems: 3 unit: minItems: 2 maxItems: 3 - $ref: frame-1.1.0 ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/composite_frame-1.0.0.yaml000066400000000000000000000006271457314201600276460ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/composite_frame-1.0.0" title: > Represents a set of frames. allOf: - type: object properties: name: description: Name of composite frame. type: string frames: description: List of frames in the composite frame. type: array ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/direction_cosines-1.0.0.yaml000066400000000000000000000016671457314201600302020ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/direction_cosines-1.0.0" title: > Convert coordinates between vector and direction cosine form. description: | This schema is for transforms which convert to and from direction cosines. examples: - - Convert direction cosines to vectors. - | ! transform_type: from_direction_cosines - - Convert vectors to directional cosines. - | ! transform_type: to_direction_cosines allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" - object: properties: transform_type: description: | The type of transform/class to initialize. type: string enum: [to_direction_cosines, from_direction_cosines] required: [transform_type] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/direction_cosines-1.1.0.yaml000066400000000000000000000016671457314201600302030ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/direction_cosines-1.1.0" title: > Convert coordinates between vector and direction cosine form. description: | This schema is for transforms which convert to and from direction cosines. examples: - - Convert direction cosines to vectors. - | ! transform_type: from_direction_cosines - - Convert vectors to directional cosines. - | ! transform_type: to_direction_cosines allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" - object: properties: transform_type: description: | The type of transform/class to initialize. type: string enum: [to_direction_cosines, from_direction_cosines] required: [transform_type] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/direction_cosines-1.2.0.yaml000066400000000000000000000017511457314201600301760ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/direction_cosines-1.2.0" title: > Convert coordinates between vector and direction cosine form. description: | This schema is for transforms which convert to and from direction cosines. examples: - - Convert direction cosines to vectors. - asdf-standard-1.6.0 - | ! transform_type: from_direction_cosines - - Convert vectors to directional cosines. - asdf-standard-1.6.0 - | ! transform_type: to_direction_cosines allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" - object: properties: transform_type: description: | The type of transform/class to initialize. type: string enum: [to_direction_cosines, from_direction_cosines] required: [transform_type] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/frame-1.0.0.yaml000066400000000000000000000041021457314201600255540ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/frame-1.0.0" title: | The base class of all coordinate frames. description: | These objects are designed to be nested in arbitrary ways to build up transformation pipelines out of a number of low-level pieces. examples: - - | A celestial frame in the ICRS reference frame. - | ! axes_names: [lon, lat] name: CelestialFrame reference_frame: ! frame_attributes: {} unit: [!unit/unit-1.0.0 deg, !unit/unit-1.0.0 deg] - - | A pixel frame in three dimensions - | ! axes_names: [raster position, slit position, wavelength] axes_order: [0, 1, 2] axes_type: [SPATIAL, SPATIAL, SPECTRAL] name: pixel naxes: 3 unit: [!unit/unit-1.0.0 pixel, !unit/unit-1.0.0 pixel, !unit/unit-1.0.0 pixel] type: object properties: name: description: | A user-friendly name for the frame. type: string axes_order: description: | The order of the axes. type: array items: type: integer axes_names: description: | The name of each axis in this frame. type: array items: anyOf: - type: string - type: 'null' reference_frame: description: | The reference frame. $ref: "http://astropy.org/schemas/astropy/coordinates/frames/baseframe-1.0.0" unit: description: | Units for each axis. type: array items: $ref: "http://stsci.edu/schemas/asdf/unit/unit-1.0.0" axis_physical_types: description: | An iterable of strings describing the physical type for each world axis. These should be names from the VO UCD1+ controlled Vocabulary (http://www.ivoa.net/documents/latest/UCDlist.html). type: array items: type: string required: [name] additionalProperties: true ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/frame-1.1.0.yaml000066400000000000000000000041661457314201600255670ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/frame-1.1.0" title: | The base class of all coordinate frames. description: | These objects are designed to be nested in arbitrary ways to build up transformation pipelines out of a number of low-level pieces. examples: - - | A celestial frame in the ICRS reference frame. - asdf-standard-1.6.0 - | ! axes_names: [lon, lat] name: CelestialFrame reference_frame: ! frame_attributes: {} unit: [!unit/unit-1.0.0 deg, !unit/unit-1.0.0 deg] - - | A pixel frame in three dimensions - asdf-standard-1.6.0 - | ! axes_names: [raster position, slit position, wavelength] axes_order: [0, 1, 2] axes_type: [SPATIAL, SPATIAL, SPECTRAL] name: pixel naxes: 3 unit: [!unit/unit-1.0.0 pixel, !unit/unit-1.0.0 pixel, !unit/unit-1.0.0 pixel] type: object properties: name: description: | A user-friendly name for the frame. type: string axes_order: description: | The order of the axes. type: array items: type: integer axes_names: description: | The name of each axis in this frame. type: array items: anyOf: - type: string - type: 'null' reference_frame: description: | The reference frame. $ref: "http://astropy.org/schemas/astropy/coordinates/frames/baseframe-1.1.0" unit: description: | Units for each axis. type: array items: $ref: "http://stsci.edu/schemas/asdf/unit/unit-1.0.0" axis_physical_types: description: | An iterable of strings describing the physical type for each world axis. These should be names from the VO UCD1+ controlled Vocabulary (http://www.ivoa.net/documents/latest/UCDlist.html). type: array items: type: string required: [name] additionalProperties: true ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/frame2d-1.0.0.yaml000066400000000000000000000011701457314201600260040ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/frame2d-1.0.0" title: > Represents a 2D frame. examples: - - | A two dimensional spatial frame - | ! axes_names: [lon, lat] name: Frame2D unit: [!unit/unit-1.0.0 pixel, !unit/unit-1.0.0 pixel] allOf: - type: object properties: axes_names: minItems: 2 maxItems: 2 axes_order: minItems: 2 maxItems: 2 unit: minItems: 2 maxItems: 2 - $ref: frame-1.0.0 ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/frame2d-1.1.0.yaml000066400000000000000000000011701457314201600260050ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/frame2d-1.1.0" title: > Represents a 2D frame. examples: - - | A two dimensional spatial frame - | ! axes_names: [lon, lat] name: Frame2D unit: [!unit/unit-1.0.0 pixel, !unit/unit-1.0.0 pixel] allOf: - type: object properties: axes_names: minItems: 2 maxItems: 2 axes_order: minItems: 2 maxItems: 2 unit: minItems: 2 maxItems: 2 - $ref: frame-1.1.0 ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/grating_equation-1.0.0.yaml000066400000000000000000000025141457314201600300270ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/grating_equation-1.0.0" title: > A grating equation model. description: | Supports two models: - Given incident angle and wavelength compute the refraction/difraction angle. - Given an incident angle and a refraction angle compute the wavelength. examples: - - AnglesFromGratingEquation3D model. - | ! groove_density: 2700.0 order: 2.0 output: angle - - WavelengthFromGratingEquation model. - | ! groove_density: 2700.0 order: 2.0 output: wavelength allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" - type: object properties: groove_density: description: | The groove density of the grating anyOf: - type: number - $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" order: description: | Spectral order type: number output: type: string description: | indicates which quantity the grating equation is solved for. enum: [wavelength, angle] required: [groove_density, order, output] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/grating_equation-1.1.0.yaml000066400000000000000000000025141457314201600300300ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/grating_equation-1.1.0" title: > A grating equation model. description: | Supports two models: - Given incident angle and wavelength compute the refraction/difraction angle. - Given an incident angle and a refraction angle compute the wavelength. examples: - - AnglesFromGratingEquation3D model. - | ! groove_density: 2700.0 order: 2.0 output: angle - - WavelengthFromGratingEquation model. - | ! groove_density: 2700.0 order: 2.0 output: wavelength allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" - type: object properties: groove_density: description: | The groove density of the grating anyOf: - type: number - $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" order: description: | Spectral order type: number output: type: string description: | indicates which quantity the grating equation is solved for. enum: [wavelength, angle] required: [groove_density, order, output] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/grating_equation-1.2.0.yaml000066400000000000000000000025761457314201600300410ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/grating_equation-1.2.0" title: > A grating equation model. description: | Supports two models: - Given incident angle and wavelength compute the refraction/difraction angle. - Given an incident angle and a refraction angle compute the wavelength. examples: - - AnglesFromGratingEquation3D model. - asdf-standard-1.6.0 - | ! groove_density: 2700.0 order: 2.0 output: angle - - WavelengthFromGratingEquation model. - asdf-standard-1.6.0 - | ! groove_density: 2700.0 order: 2.0 output: wavelength allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" - type: object properties: groove_density: description: | The groove density of the grating anyOf: - type: number - $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.2.0" order: description: | Spectral order type: number output: type: string description: | indicates which quantity the grating equation is solved for. enum: [wavelength, angle] required: [groove_density, order, output] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/label_mapper-1.0.0.yaml000066400000000000000000000077661457314201600271300ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/label_mapper-1.0.0" title: > Represents a mapping from a coordinate value to a label. description: | A label mapper instance maps inputs to a label. It is used together with [regions_selector](ref:regions_selector-1.0.0). The [label_mapper](ref:label_mapper-1.0.0) returns the label corresponding to given inputs. The [regions_selector](ref:regions_selector-1.0.0) returns the transform corresponding to this label. This maps inputs (e.g. pixels on a detector) to transforms uniquely. examples: - - Map array indices are to labels. - asdf-standard-1.5.0 - | ! mapper: !core/ndarray-1.0.0 data: - [1, 0, 2] - [1, 0, 2] - [1, 0, 2] datatype: int64 shape: [3, 3] no_label: 0 - - Map numbers dictionary to transforms which return labels. - | ! atol: 1.0e-08 inputs: [x, y] inputs_mapping: !transform/remap_axes-1.1.0 mapping: [0] n_inputs: 2 mapper: !!omap - !!omap labels: [-1.67833272, -1.9580548, -1.118888] - !!omap models: - !transform/shift-1.1.0 {offset: 6.0} - !transform/shift-1.1.0 {offset: 2.0} - !transform/shift-1.1.0 {offset: 4.0} no_label: 0 - - Map a number within a range of numbers to transforms which return labels. - | ! mapper: !!omap - !!omap labels: - [3.2, 4.1] - [2.67, 2.98] - [1.95, 2.3] - !!omap models: - !transform/shift-1.1.0 {offset: 6.0} - !transform/shift-1.1.0 {offset: 2.0} - !transform/shift-1.1.0 {offset: 4.0} inputs: [x, y] inputs_mapping: !transform/remap_axes-1.1.0 mapping: [0] n_inputs: 2 allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" - type: object properties: mapper: description: | A mapping of inputs to labels. In the general case this is a `astropy.modeling.core.Model`. It could be a numpy array with the shape of the detector/observation. Pixel values are of type integer or string and represent region labels. Pixels which are not within any region have value ``no_label``. It could be a dictionary which maps tuples to labels or floating point numbers to labels. anyOf: - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" - type: object properties: labels: type: array items: anyOf: - type: number - type: array items: type: number minLength: 2 maxLength: 2 models: type: array items: $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" inputs: type: array items: type: string description: | Names of inputs. inputs_mapping: $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" description: | [mapping](https://asdf-standard.readthedocs.io/en/latest/generated/stsci.edu/asdf/transform/remap_axes-1.1.0.html) atol: type: number description: | absolute tolerance to compare keys in mapper. no_label: description: | Fill in value for missing output. anyOf: - type: number - type: string required: [mapper] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/label_mapper-1.1.0.yaml000066400000000000000000000077661457314201600271310ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/label_mapper-1.1.0" title: > Represents a mapping from a coordinate value to a label. description: | A label mapper instance maps inputs to a label. It is used together with [regions_selector](ref:regions_selector-1.1.0). The [label_mapper](ref:label_mapper-1.1.0) returns the label corresponding to given inputs. The [regions_selector](ref:regions_selector-1.1.0) returns the transform corresponding to this label. This maps inputs (e.g. pixels on a detector) to transforms uniquely. examples: - - Map array indices are to labels. - asdf-standard-1.5.0 - | ! mapper: !core/ndarray-1.0.0 data: - [1, 0, 2] - [1, 0, 2] - [1, 0, 2] datatype: int64 shape: [3, 3] no_label: 0 - - Map numbers dictionary to transforms which return labels. - | ! atol: 1.0e-08 inputs: [x, y] inputs_mapping: !transform/remap_axes-1.3.0 mapping: [0] n_inputs: 2 mapper: !!omap - !!omap labels: [-1.67833272, -1.9580548, -1.118888] - !!omap models: - !transform/shift-1.2.0 {offset: 6.0} - !transform/shift-1.2.0 {offset: 2.0} - !transform/shift-1.2.0 {offset: 4.0} no_label: 0 - - Map a number within a range of numbers to transforms which return labels. - | ! mapper: !!omap - !!omap labels: - [3.2, 4.1] - [2.67, 2.98] - [1.95, 2.3] - !!omap models: - !transform/shift-1.2.0 {offset: 6.0} - !transform/shift-1.2.0 {offset: 2.0} - !transform/shift-1.2.0 {offset: 4.0} inputs: [x, y] inputs_mapping: !transform/remap_axes-1.3.0 mapping: [0] n_inputs: 2 allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" - type: object properties: mapper: description: | A mapping of inputs to labels. In the general case this is a `astropy.modeling.core.Model`. It could be a numpy array with the shape of the detector/observation. Pixel values are of type integer or string and represent region labels. Pixels which are not within any region have value ``no_label``. It could be a dictionary which maps tuples to labels or floating point numbers to labels. anyOf: - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" - type: object properties: labels: type: array items: anyOf: - type: number - type: array items: type: number minLength: 2 maxLength: 2 models: type: array items: $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" inputs: type: array items: type: string description: | Names of inputs. inputs_mapping: $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" description: | [mapping](https://asdf-standard.readthedocs.io/en/latest/generated/stsci.edu/asdf/transform/remap_axes-1.3.0.html) atol: type: number description: | absolute tolerance to compare keys in mapper. no_label: description: | Fill in value for missing output. anyOf: - type: number - type: string required: [mapper] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/label_mapper-1.2.0.yaml000066400000000000000000000100501457314201600271060ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/label_mapper-1.2.0" title: > Represents a mapping from a coordinate value to a label. description: | A label mapper instance maps inputs to a label. It is used together with [regions_selector](ref:regions_selector-1.2.0). The [label_mapper](ref:label_mapper-1.2.0) returns the label corresponding to given inputs. The [regions_selector](ref:regions_selector-1.2.0) returns the transform corresponding to this label. This maps inputs (e.g. pixels on a detector) to transforms uniquely. examples: - - Map array indices are to labels. - asdf-standard-1.6.0 - | ! mapper: !core/ndarray-1.1.0 data: - [1, 0, 2] - [1, 0, 2] - [1, 0, 2] datatype: int64 shape: [3, 3] no_label: 0 - - Map numbers dictionary to transforms which return labels. - asdf-standard-1.6.0 - | ! atol: 1.0e-08 inputs: [x, y] inputs_mapping: !transform/remap_axes-1.4.0 mapping: [0] n_inputs: 2 mapper: !!omap - !!omap labels: [-1.67833272, -1.9580548, -1.118888] - !!omap models: - !transform/shift-1.2.0 {offset: 6.0} - !transform/shift-1.2.0 {offset: 2.0} - !transform/shift-1.2.0 {offset: 4.0} no_label: 0 - - Map a number within a range of numbers to transforms which return labels. - asdf-standard-1.6.0 - | ! mapper: !!omap - !!omap labels: - [3.2, 4.1] - [2.67, 2.98] - [1.95, 2.3] - !!omap models: - !transform/shift-1.3.0 {offset: 6.0} - !transform/shift-1.3.0 {offset: 2.0} - !transform/shift-1.3.0 {offset: 4.0} inputs: [x, y] inputs_mapping: !transform/remap_axes-1.4.0 mapping: [0] n_inputs: 2 allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" - type: object properties: mapper: description: | A mapping of inputs to labels. In the general case this is a `astropy.modeling.core.Model`. It could be a numpy array with the shape of the detector/observation. Pixel values are of type integer or string and represent region labels. Pixels which are not within any region have value ``no_label``. It could be a dictionary which maps tuples to labels or floating point numbers to labels. anyOf: - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.1.0" - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" - type: object properties: labels: type: array items: anyOf: - type: number - type: array items: type: number minLength: 2 maxLength: 2 models: type: array items: $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" inputs: type: array items: type: string description: | Names of inputs. inputs_mapping: $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" description: | [mapping](https://asdf-standard.readthedocs.io/en/latest/generated/stsci.edu/asdf/transform/remap_axes-1.4.0.html) atol: type: number description: | absolute tolerance to compare keys in mapper. no_label: description: | Fill in value for missing output. anyOf: - type: number - type: string required: [mapper] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/regions_selector-1.0.0.yaml000066400000000000000000000063651457314201600300450ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/regions_selector-1.0.0" title: > Represents a discontinuous transform. description: | Maps regions to transgorms and evaluates the transforms with the corresponding inputs. examples: - - Create a regions_selector schema for 2 regions, labeled "1" and "2". - asdf-standard-1.5.0 - | ! inputs: [x, y] label_mapper: ! mapper: !core/ndarray-1.0.0 datatype: int8 data: - [0, 1, 1, 0, 2, 0] - [0, 1, 1, 0, 2, 0] - [0, 1, 1, 0, 2, 0] - [0, 1, 1, 0, 2, 0] - [0, 1, 1, 0, 2, 0] datatype: int64 shape: [5, 6] no_label: 0 outputs: [ra, dec, lam] selector: !!omap - !!omap labels: [1, 2] - !!omap transforms: - !transform/compose-1.1.0 forward: - !transform/remap_axes-1.1.0 mapping: [0, 1, 1] - !transform/concatenate-1.1.0 forward: - !transform/concatenate-1.1.0 forward: - !transform/shift-1.1.0 {offset: 1.0} - !transform/shift-1.1.0 {offset: 2.0} - !transform/shift-1.1.0 {offset: 3.0} - !transform/compose-1.1.0 forward: - !transform/remap_axes-1.1.0 mapping: [0, 1, 1] - !transform/concatenate-1.1.0 forward: - !transform/concatenate-1.1.0 forward: - !transform/scale-1.1.0 {factor: 2.0} - !transform/scale-1.1.0 {factor: 3.0} - !transform/scale-1.1.0 {factor: 3.0} undefined_transform_value: .nan allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" - type: object properties: label_mapper: description: | An instance of [label_mapper-1.1.0](ref:label_mapper-1.0.0) $ref: "./label_mapper-1.0.0" inputs: description: | Names of inputs. type: array items: type: string outputs: description: | Names of outputs. type: array items: type: string selector: description: | A mapping of regions to trransforms. type: object properties: labels: description: | An array of unique region labels. type: array items: type: - integer - string transforms: description: | A transform for each region. The order should match the order of labels. type: array items: $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" undefined_transform_value: description: | Value to be returned if there's no transform defined for the inputs. type: number required: [label_mapper, inputs, outputs, selector] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/regions_selector-1.1.0.yaml000066400000000000000000000063651457314201600300460ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/regions_selector-1.1.0" title: > Represents a discontinuous transform. description: | Maps regions to transgorms and evaluates the transforms with the corresponding inputs. examples: - - Create a regions_selector schema for 2 regions, labeled "1" and "2". - asdf-standard-1.5.0 - | ! inputs: [x, y] label_mapper: ! mapper: !core/ndarray-1.0.0 datatype: int8 data: - [0, 1, 1, 0, 2, 0] - [0, 1, 1, 0, 2, 0] - [0, 1, 1, 0, 2, 0] - [0, 1, 1, 0, 2, 0] - [0, 1, 1, 0, 2, 0] datatype: int64 shape: [5, 6] no_label: 0 outputs: [ra, dec, lam] selector: !!omap - !!omap labels: [1, 2] - !!omap transforms: - !transform/compose-1.2.0 forward: - !transform/remap_axes-1.3.0 mapping: [0, 1, 1] - !transform/concatenate-1.2.0 forward: - !transform/concatenate-1.2.0 forward: - !transform/shift-1.2.0 {offset: 1.0} - !transform/shift-1.2.0 {offset: 2.0} - !transform/shift-1.2.0 {offset: 3.0} - !transform/compose-1.2.0 forward: - !transform/remap_axes-1.3.0 mapping: [0, 1, 1] - !transform/concatenate-1.2.0 forward: - !transform/concatenate-1.2.0 forward: - !transform/scale-1.2.0 {factor: 2.0} - !transform/scale-1.2.0 {factor: 3.0} - !transform/scale-1.2.0 {factor: 3.0} undefined_transform_value: .nan allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" - type: object properties: label_mapper: description: | An instance of [label_mapper-1.1.0](ref:label_mapper-1.1.0) $ref: "./label_mapper-1.1.0" inputs: description: | Names of inputs. type: array items: type: string outputs: description: | Names of outputs. type: array items: type: string selector: description: | A mapping of regions to trransforms. type: object properties: labels: description: | An array of unique region labels. type: array items: type: - integer - string transforms: description: | A transform for each region. The order should match the order of labels. type: array items: $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" undefined_transform_value: description: | Value to be returned if there's no transform defined for the inputs. type: number required: [label_mapper, inputs, outputs, selector] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/regions_selector-1.2.0.yaml000066400000000000000000000063651457314201600300470ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/regions_selector-1.2.0" title: > Represents a discontinuous transform. description: | Maps regions to transgorms and evaluates the transforms with the corresponding inputs. examples: - - Create a regions_selector schema for 2 regions, labeled "1" and "2". - asdf-standard-1.6.0 - | ! inputs: [x, y] label_mapper: ! mapper: !core/ndarray-1.1.0 datatype: int8 data: - [0, 1, 1, 0, 2, 0] - [0, 1, 1, 0, 2, 0] - [0, 1, 1, 0, 2, 0] - [0, 1, 1, 0, 2, 0] - [0, 1, 1, 0, 2, 0] datatype: int64 shape: [5, 6] no_label: 0 outputs: [ra, dec, lam] selector: !!omap - !!omap labels: [1, 2] - !!omap transforms: - !transform/compose-1.3.0 forward: - !transform/remap_axes-1.4.0 mapping: [0, 1, 1] - !transform/concatenate-1.3.0 forward: - !transform/concatenate-1.3.0 forward: - !transform/shift-1.3.0 {offset: 1.0} - !transform/shift-1.3.0 {offset: 2.0} - !transform/shift-1.3.0 {offset: 3.0} - !transform/compose-1.3.0 forward: - !transform/remap_axes-1.4.0 mapping: [0, 1, 1] - !transform/concatenate-1.3.0 forward: - !transform/concatenate-1.3.0 forward: - !transform/scale-1.3.0 {factor: 2.0} - !transform/scale-1.3.0 {factor: 3.0} - !transform/scale-1.3.0 {factor: 3.0} undefined_transform_value: .nan allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" - type: object properties: label_mapper: description: | An instance of [label_mapper-1.1.0](ref:label_mapper-1.2.0) $ref: "./label_mapper-1.2.0" inputs: description: | Names of inputs. type: array items: type: string outputs: description: | Names of outputs. type: array items: type: string selector: description: | A mapping of regions to trransforms. type: object properties: labels: description: | An array of unique region labels. type: array items: type: - integer - string transforms: description: | A transform for each region. The order should match the order of labels. type: array items: $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" undefined_transform_value: description: | Value to be returned if there's no transform defined for the inputs. type: number required: [label_mapper, inputs, outputs, selector] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/sellmeier_glass-1.0.0.yaml000066400000000000000000000020311457314201600276330ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/sellmeier_glass-1.0.0" title: Sellmeier equation for glass description: | Sellmeier equation for glass. $$ n(\\lambda)^2 = 1 + \\frac{(B1 * \\lambda^2 )}{(\\lambda^2 - C1)} + \\frac{(B2 * \\lambda^2 )}{(\\lambda^2 - C2)} + \\frac{(B3 * \\lambda^2 )}{(\\lambda^2 - C3)} $$ allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" - type: object properties: B_coef: description: | B coefficients in Sellmeier equation. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" items: type: number minItems: 3 maxItems: 3 C_coef: description: | C coefficients in Sellmeier equation. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" items: type: number minItems: 3 maxItems: 3 ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/sellmeier_glass-1.1.0.yaml000066400000000000000000000020311457314201600276340ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/sellmeier_glass-1.1.0" title: Sellmeier equation for glass description: | Sellmeier equation for glass. $$ n(\\lambda)^2 = 1 + \\frac{(B1 * \\lambda^2 )}{(\\lambda^2 - C1)} + \\frac{(B2 * \\lambda^2 )}{(\\lambda^2 - C2)} + \\frac{(B3 * \\lambda^2 )}{(\\lambda^2 - C3)} $$ allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" - type: object properties: B_coef: description: | B coefficients in Sellmeier equation. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" items: type: number minItems: 3 maxItems: 3 C_coef: description: | C coefficients in Sellmeier equation. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" items: type: number minItems: 3 maxItems: 3 ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/sellmeier_glass-1.2.0.yaml000066400000000000000000000020311457314201600276350ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/sellmeier_glass-1.2.0" title: Sellmeier equation for glass description: | Sellmeier equation for glass. $$ n(\\lambda)^2 = 1 + \\frac{(B1 * \\lambda^2 )}{(\\lambda^2 - C1)} + \\frac{(B2 * \\lambda^2 )}{(\\lambda^2 - C2)} + \\frac{(B3 * \\lambda^2 )}{(\\lambda^2 - C3)} $$ allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" - type: object properties: B_coef: description: | B coefficients in Sellmeier equation. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.1.0" items: type: number minItems: 3 maxItems: 3 C_coef: description: | C coefficients in Sellmeier equation. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.1.0" items: type: number minItems: 3 maxItems: 3 ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/sellmeier_zemax-1.0.0.yaml000066400000000000000000000037011457314201600276530ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/sellmeier_zemax-1.0.0" title: Sellmeier equation for glass used by Zemax description: | Sellmeier equation for glass used by Zemax allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" - type: object properties: B_coef: description: | B coefficients in Sellmeier equation. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" items: type: number minItems: 3 maxItems: 3 C_coef: description: | C coefficients in Sellmeier equation. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" items: type: number minItems: 3 maxItems: 3 D_coef: description: | Thermal D coefficients of the glass. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" items: type: number minItems: 3 maxItems: 3 E_coef: description: | Thermal E coefficients of the glass. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" items: type: number minItems: 3 maxItems: 3 ref_temperature: description: | Reference temperature of the glass in Kelvin. type: number ref_pressure: description: | Reference pressure of the glass in ATM. type: number temperature: description: | System temperature in Kelvin. type: number pressure: description: | System pressure in ATM. type: number required: [B_coef, C_coef, D_coef, E_coef, ref_temperature, ref_pressure, temperature, pressure] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/sellmeier_zemax-1.1.0.yaml000066400000000000000000000037011457314201600276540ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/sellmeier_zemax-1.1.0" title: Sellmeier equation for glass used by Zemax description: | Sellmeier equation for glass used by Zemax allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" - type: object properties: B_coef: description: | B coefficients in Sellmeier equation. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" items: type: number minItems: 3 maxItems: 3 C_coef: description: | C coefficients in Sellmeier equation. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" items: type: number minItems: 3 maxItems: 3 D_coef: description: | Thermal D coefficients of the glass. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" items: type: number minItems: 3 maxItems: 3 E_coef: description: | Thermal E coefficients of the glass. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.0.0" items: type: number minItems: 3 maxItems: 3 ref_temperature: description: | Reference temperature of the glass in Kelvin. type: number ref_pressure: description: | Reference pressure of the glass in ATM. type: number temperature: description: | System temperature in Kelvin. type: number pressure: description: | System pressure in ATM. type: number required: [B_coef, C_coef, D_coef, E_coef, ref_temperature, ref_pressure, temperature, pressure] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/sellmeier_zemax-1.2.0.yaml000066400000000000000000000037011457314201600276550ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/sellmeier_zemax-1.2.0" title: Sellmeier equation for glass used by Zemax description: | Sellmeier equation for glass used by Zemax allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" - type: object properties: B_coef: description: | B coefficients in Sellmeier equation. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.1.0" items: type: number minItems: 3 maxItems: 3 C_coef: description: | C coefficients in Sellmeier equation. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.1.0" items: type: number minItems: 3 maxItems: 3 D_coef: description: | Thermal D coefficients of the glass. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.1.0" items: type: number minItems: 3 maxItems: 3 E_coef: description: | Thermal E coefficients of the glass. anyOf: - type: array - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.1.0" items: type: number minItems: 3 maxItems: 3 ref_temperature: description: | Reference temperature of the glass in Kelvin. type: number ref_pressure: description: | Reference pressure of the glass in ATM. type: number temperature: description: | System temperature in Kelvin. type: number pressure: description: | System pressure in ATM. type: number required: [B_coef, C_coef, D_coef, E_coef, ref_temperature, ref_pressure, temperature, pressure] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/snell3d-1.0.0.yaml000066400000000000000000000005271457314201600260350ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/snell3d-1.0.0" title: Snell Law in 3D space description: | Snell Law in 3D. Inputs are index of refraction and direction cosines. Outputs are direction cosines. $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/snell3d-1.1.0.yaml000066400000000000000000000005271457314201600260360ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/snell3d-1.1.0" title: Snell Law in 3D space description: | Snell Law in 3D. Inputs are index of refraction and direction cosines. Outputs are direction cosines. $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/snell3d-1.2.0.yaml000066400000000000000000000005271457314201600260370ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/snell3d-1.2.0" title: Snell Law in 3D space description: | Snell Law in 3D. Inputs are index of refraction and direction cosines. Outputs are direction cosines. $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/spectral_frame-1.0.0.yaml000066400000000000000000000011051457314201600274510ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/spectral_frame-1.0.0" title: > Represents a spectral frame. allOf: - type: object properties: reference_position: description: | The position of the reference frame. enum: [geocenter, barycenter, heliocenter] default: geocenter axes_names: minItems: 1 maxItems: 1 axes_order: minItems: 1 maxItems: 1 unit: minItems: 1 maxItems: 1 - $ref: frame-1.0.0 ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/spectral_frame-1.1.0.yaml000066400000000000000000000011051457314201600274520ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/spectral_frame-1.1.0" title: > Represents a spectral frame. allOf: - type: object properties: reference_position: description: | The position of the reference frame. enum: [geocenter, barycenter, heliocenter] default: geocenter axes_names: minItems: 1 maxItems: 1 axes_order: minItems: 1 maxItems: 1 unit: minItems: 1 maxItems: 1 - $ref: frame-1.1.0 ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/spherical_cartesian-1.0.0.yaml000066400000000000000000000023421457314201600304710ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/spherical_cartesian-1.0.0" title: > Convert coordinates between spherical and Cartesian coordinates. description: | This schema is for transforms which convert between spherical coordinates (on the unit sphere) and Cartesian coordinates. examples: - - Convert spherical coordinates to Cartesian coordinates. - asdf-standard-1.5.0 - | ! transform_type: spherical_to_cartesian - - Convert Cartesian coordinates to spherical coordinates. - asdf-standard-1.5.0 - | ! transform_type: cartesian_to_spherical allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" - object: properties: wrap_lon_at: description: Angle at which to wrap the longitude angle. type: integer enum: [180, 360] default: 360 transform_type: description: The type of transform/class to initialize. type: string enum: [spherical_to_cartesian, cartesian_to_spherical] required: [transform_type, wrap_lon_at] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/spherical_cartesian-1.1.0.yaml000066400000000000000000000023431457314201600304730ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/spherical_cartesian-1.1.0" title: > Convert coordinates between spherical and Cartesian coordinates. description: | This schema is for transforms which convert between spherical coordinates (on the unit sphere) and Cartesian coordinates. examples: - - Convert spherical coordinates to Cartesian coordinates. - asdf-standard-1.5.0 - | ! transform_type: spherical_to_cartesian - - Convert Cartesian coordinates to spherical coordinates. - asdf-standard-1.5.0 - | ! transform_type: cartesian_to_spherical allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" - object: properties: wrap_lon_at: description: Angle at which to wrap the longitude angle. type: integer enum: [180, 360] default: 360 transform_type: description: The type of transform/class to initialize. type: string enum: [spherical_to_cartesian, cartesian_to_spherical] required: [transform_type, wrap_lon_at] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/spherical_cartesian-1.2.0.yaml000066400000000000000000000024301457314201600304710ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/spherical_cartesian-1.2.0" title: > Convert coordinates between spherical and Cartesian coordinates. description: | This schema is for transforms which convert between spherical coordinates (on the unit sphere) and Cartesian coordinates. examples: - - Convert spherical coordinates to Cartesian coordinates. - asdf-standard-1.6.0 - | ! transform_type: spherical_to_cartesian wrap_lon_at: 360 - - Convert Cartesian coordinates to spherical coordinates. - asdf-standard-1.6.0 - | ! transform_type: cartesian_to_spherical wrap_lon_at: 360 allOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" - object: properties: wrap_lon_at: description: Angle at which to wrap the longitude angle. type: integer enum: [180, 360] default: 360 transform_type: description: The type of transform/class to initialize. type: string enum: [spherical_to_cartesian, cartesian_to_spherical] required: [transform_type, wrap_lon_at] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/step-1.0.0.yaml000066400000000000000000000013531457314201600254420ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/step-1.0.0" title: > Describes a single step of a WCS transform pipeline. description: > examples: [] type: object properties: frame: description: | The frame of the inputs to the transform. anyOf: - type: string - $ref: frame-1.0.0 transform: description: | The transform from this step to the next one. The last step in a WCS should not have a transform, but exists only to describe the frames and units of the final output axes. anyOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.1.0" - type: 'null' default: null required: [frame] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/step-1.1.0.yaml000066400000000000000000000013531457314201600254430ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/step-1.1.0" title: > Describes a single step of a WCS transform pipeline. description: > examples: [] type: object properties: frame: description: | The frame of the inputs to the transform. anyOf: - type: string - $ref: frame-1.0.0 transform: description: | The transform from this step to the next one. The last step in a WCS should not have a transform, but exists only to describe the frames and units of the final output axes. anyOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0" - type: 'null' default: null required: [frame] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/step-1.2.0.yaml000066400000000000000000000013531457314201600254440ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/step-1.2.0" title: > Describes a single step of a WCS transform pipeline. description: > examples: [] type: object properties: frame: description: | The frame of the inputs to the transform. anyOf: - type: string - $ref: frame-1.1.0 transform: description: | The transform from this step to the next one. The last step in a WCS should not have a transform, but exists only to describe the frames and units of the final output axes. anyOf: - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0" - type: 'null' default: null required: [frame] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/stokes_frame-1.0.0.yaml000066400000000000000000000006061457314201600271510ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/stokes_frame-1.0.0" title: > Represents a stokes frame type: object properties: name: description: | A user-friendly name for the frame. type: string axes_order: description: | The order of the axes. type: array items: type: integer ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/temporal_frame-1.0.0.yaml000066400000000000000000000021721457314201600274640ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/temporal_frame-1.0.0" title: > Represents a temporal frame. type: object properties: name: description: | A user-friendly name for the frame. type: string axes_order: description: | The order of the axes. type: array items: type: integer axes_names: description: | The name of each axis in this frame. type: array items: anyOf: - type: string - type: 'null' reference_frame: description: | The reference frame. $ref: "http://stsci.edu/schemas/asdf/time/time-1.1.0" unit: description: | Units for each axis. type: array items: $ref: "http://stsci.edu/schemas/asdf/unit/unit-1.0.0" axis_physical_types: description: | An iterable of strings describing the physical type for each world axis. These should be names from the VO UCD1+ controlled Vocabulary (http://www.ivoa.net/documents/latest/UCDlist.html). type: array items: type: string required: [name] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/temporal_frame-1.1.0.yaml000066400000000000000000000021721457314201600274650ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/temporal_frame-1.1.0" title: > Represents a temporal frame. type: object properties: name: description: | A user-friendly name for the frame. type: string axes_order: description: | The order of the axes. type: array items: type: integer axes_names: description: | The name of each axis in this frame. type: array items: anyOf: - type: string - type: 'null' reference_frame: description: | The reference frame. $ref: "http://stsci.edu/schemas/asdf/time/time-1.2.0" unit: description: | Units for each axis. type: array items: $ref: "http://stsci.edu/schemas/asdf/unit/unit-1.0.0" axis_physical_types: description: | An iterable of strings describing the physical type for each world axis. These should be names from the VO UCD1+ controlled Vocabulary (http://www.ivoa.net/documents/latest/UCDlist.html). type: array items: type: string required: [name] ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/wcs-1.0.0.yaml000066400000000000000000000020231457314201600252560ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/wcs-1.0.0" title: > A system for describing generalized world coordinate transformations. description: > ASDF WCS is a way of specifying transformations (usually from detector space to world coordinate space and back) by using the transformations in the `transform-schema` module. type: object properties: name: description: | A descriptive name for this WCS. type: string steps: description: | A list of steps in the forward transformation from detector to world coordinates. The inverse transformation is determined automatically by reversing this list, and inverting each of the individual transforms according to the rules described in [inverse](https://asdf-standard.readthedocs.io/en/latest/generated/stsci.edu/asdf/transform/transform-1.1.0.html#inverse). type: array items: $ref: step-1.0.0 required: [name, steps] additionalProperties: true ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/wcs-1.1.0.yaml000066400000000000000000000020231457314201600252570ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/wcs-1.1.0" title: > A system for describing generalized world coordinate transformations. description: > ASDF WCS is a way of specifying transformations (usually from detector space to world coordinate space and back) by using the transformations in the `transform-schema` module. type: object properties: name: description: | A descriptive name for this WCS. type: string steps: description: | A list of steps in the forward transformation from detector to world coordinates. The inverse transformation is determined automatically by reversing this list, and inverting each of the individual transforms according to the rules described in [inverse](https://asdf-standard.readthedocs.io/en/latest/generated/stsci.edu/asdf/transform/transform-1.2.0.html#inverse). type: array items: $ref: step-1.1.0 required: [name, steps] additionalProperties: true ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/wcs-1.2.0.yaml000066400000000000000000000025401457314201600252640ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/wcs-1.2.0" title: > A system for describing generalized world coordinate transformations. description: > ASDF WCS is a way of specifying transformations (usually from detector space to world coordinate space and back) by using the transformations in the `transform-schema` module. type: object properties: name: description: | A descriptive name for this WCS. type: string pixel_shape: description: | The optional shape of the data that the WCS applies to as an array in ``(x, y)`` order (where for an image, ``x`` is the horizontal coordinate and ``y`` is the vertical coordinate) or ``None`` if not defined for this WCS. anyOf: - type: 'null' - type: array steps: description: | A list of steps in the forward transformation from detector to world coordinates. The inverse transformation is determined automatically by reversing this list, and inverting each of the individual transforms according to the rules described in [inverse](https://asdf-standard.readthedocs.io/en/latest/generated/stsci.edu/asdf/transform/transform-1.2.0.html#inverse). type: array items: $ref: step-1.1.0 required: [name, steps] additionalProperties: true ... asdf-wcs-schemas-0.4.0/resources/schemas/stsci.edu/gwcs/wcs-1.3.0.yaml000066400000000000000000000025401457314201600252650ustar00rootroot00000000000000%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "http://stsci.edu/schemas/gwcs/wcs-1.3.0" title: > A system for describing generalized world coordinate transformations. description: > ASDF WCS is a way of specifying transformations (usually from detector space to world coordinate space and back) by using the transformations in the `transform-schema` module. type: object properties: name: description: | A descriptive name for this WCS. type: string pixel_shape: description: | The optional shape of the data that the WCS applies to as an array in ``(x, y)`` order (where for an image, ``x`` is the horizontal coordinate and ``y`` is the vertical coordinate) or ``None`` if not defined for this WCS. anyOf: - type: 'null' - type: array steps: description: | A list of steps in the forward transformation from detector to world coordinates. The inverse transformation is determined automatically by reversing this list, and inverting each of the individual transforms according to the rules described in [inverse](https://asdf-standard.readthedocs.io/en/latest/generated/stsci.edu/asdf/transform/transform-1.2.0.html#inverse). type: array items: $ref: step-1.2.0 required: [name, steps] additionalProperties: true ... asdf-wcs-schemas-0.4.0/src/000077500000000000000000000000001457314201600154355ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/src/asdf_wcs_schemas/000077500000000000000000000000001457314201600207315ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/src/asdf_wcs_schemas/__init__.py000066400000000000000000000001101457314201600230320ustar00rootroot00000000000000from ._version import version as __version__ __all__ = ["__version__"] asdf-wcs-schemas-0.4.0/src/asdf_wcs_schemas/integration.py000066400000000000000000000023101457314201600236220ustar00rootroot00000000000000import sys from pathlib import Path from asdf_standard import DirectoryResourceMapping if sys.version_info < (3, 9): import importlib_resources else: import importlib.resources as importlib_resources import asdf_wcs_schemas def get_resource_mappings(): """ Get the resource mapping instances for the datamodel schemas and manifests. This method is registered with the asdf.resource_mappings entry point. Returns ------- list of collections.abc.Mapping """ resources_root = importlib_resources.files(asdf_wcs_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__).parent.parent.parent / "resources" if not resources_root.is_dir(): raise RuntimeError("Missing resources directory") return [ DirectoryResourceMapping( resources_root / "schemas" / "stsci.edu" / "gwcs", "http://stsci.edu/schemas/gwcs/", ), DirectoryResourceMapping( resources_root / "manifests", "asdf://asdf-format.org/astronomy/gwcs/manifests/", ), ] asdf-wcs-schemas-0.4.0/tests/000077500000000000000000000000001457314201600160105ustar00rootroot00000000000000asdf-wcs-schemas-0.4.0/tests/conftest.py000066400000000000000000000004201457314201600202030ustar00rootroot00000000000000import asdf import pytest import yaml @pytest.fixture(scope="session", params=["1.0.0", "1.1.0"]) def manifest(request): return yaml.safe_load( asdf.get_config().resource_manager[f"asdf://asdf-format.org/astronomy/gwcs/manifests/gwcs-{request.param}"] ) asdf-wcs-schemas-0.4.0/tests/test_integration.py000066400000000000000000000015651457314201600217530ustar00rootroot00000000000000""" Test that the asdf library integration is working properly. """ from pathlib import Path import asdf import pytest import yaml _MANIFESTS_ROOT = Path(__file__).parent.parent / "resources" / "manifests" _SCHEMAS_ROOT = Path(__file__).parent.parent / "resources" / "schemas" @pytest.mark.parametrize("manifest_path", _MANIFESTS_ROOT.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", _SCHEMAS_ROOT.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 asdf-wcs-schemas-0.4.0/tests/test_manifest.py000066400000000000000000000013631457314201600212320ustar00rootroot00000000000000""" Test that the manifest file is correctly structured and refers to schemas that exist. """ import asdf def test_manifest_valid(manifest): schema = asdf.schema.load_schema("asdf://asdf-format.org/core/schemas/extension_manifest-1.0.0") asdf.schema.validate(manifest, schema=schema) assert "title" in manifest assert "description" in manifest for tag in manifest["tags"]: # Check that the schema exists: assert tag["schema_uri"] in asdf.get_config().resource_manager # These are not required by the manifest schema but we're holding ourselves # to a higher standard: assert "title" in tag assert "description" in tag assert tag["tag_uri"].startswith("tag:stsci.edu:gwcs/") asdf-wcs-schemas-0.4.0/tests/test_schemas.py000066400000000000000000000065571457314201600210610ustar00rootroot00000000000000""" Test features of the schemas not covered by the metaschema. """ from collections.abc import Mapping import asdf import pytest import yaml SCHEMA_URI_PREFIX = "http://stsci.edu/schemas/gwcs/" METASCHEMA_URI = "http://stsci.edu/schemas/yaml-schema/draft-01" SCHEMA_URIS = [u for u in asdf.get_config().resource_manager if u.startswith(SCHEMA_URI_PREFIX)] @pytest.fixture(scope="session", params=SCHEMA_URIS) def schema_content(request): return asdf.get_config().resource_manager[request.param] @pytest.fixture(scope="session", params=SCHEMA_URIS) def schema(request): return yaml.safe_load(asdf.get_config().resource_manager[request.param]) @pytest.fixture(scope="session") def valid_tag_uris(manifest): uris = {t["tag_uri"] for t in manifest["tags"]} uris.update( [ "tag:stsci.edu:asdf/time/time-1.1.0", "tag:stsci.edu:asdf/core/ndarray-1.0.0", ] ) return uris def test_required_properties(schema): assert schema["$schema"] == METASCHEMA_URI assert "id" in schema assert "title" in schema def test_schema_style(schema_content): # xor used because windows is sometimes weird. assert schema_content.startswith(b"%YAML 1.1\n---\n") ^ schema_content.startswith(b"%YAML 1.1\r\n---\r\n") assert schema_content.endswith(b"\n...\n") ^ schema_content.endswith(b"\r\n...\r\n") assert b"\t" not in schema_content assert (not any(line != line.rstrip() for line in schema_content.split(b"\n"))) ^ ( not any(line != line.rstrip() for line in schema_content.split(b"\r\n")) ) def test_property_order(schema, manifest): is_tag_schema = schema["id"] in {t["schema_uri"] for t in manifest["tags"]} if is_tag_schema: def callback(node): if isinstance(node, Mapping) and "propertyOrder" in node: assert node.get("type") == "object" property_names = set(node.get("properties", {}).keys()) property_order_names = set(node["propertyOrder"]) if property_order_names != property_names: missing_list = ", ".join(property_order_names - property_names) extra_list = ", ".join(property_names - property_order_names) message = ( "propertyOrder does not match list of properties:\n\n" "missing properties: " + missing_list + "\n" "extra properties: " + extra_list ) assert False, message asdf.treeutil.walk(schema, callback) else: def callback(node): if isinstance(node, Mapping): assert "propertyOrder" not in node, "Only schemas associated with a tag may specify propertyOrder" asdf.treeutil.walk(schema, callback) def test_required(schema): def callback(node): if isinstance(node, Mapping) and "required" in node: assert node.get("type") in ["object", "string", None] property_names = set(node.get("properties", {}).keys()) required_names = set(node["required"]) if not required_names.issubset(property_names): missing_list = ", ".join(required_names - property_names) message = "required references names that do not exist: " + missing_list assert False, message asdf.treeutil.walk(schema, callback) asdf-wcs-schemas-0.4.0/tox.ini000066400000000000000000000013461457314201600161650ustar00rootroot00000000000000[tox] envlist= py39,py310,py311,py312,twine,black,flake8,bandit isolated_build = True [testenv] extras= test commands= pytest [testenv:egg_info] deps= commands= python setup.py egg_info [testenv:twine] deps= twine commands= twine check {work_dir}/{package_env}/dist/* [testenv:black] deps = black commands= black --check src tests [testenv:flake8] deps= flake8 commands= flake8 --count src tests [testenv:bandit] deps= bandit commands= bandit -r -ll src [testenv:codestyle] skip_install = true description = Run all style and file checks with pre-commit deps = pre-commit commands = pre-commit install-hooks pre-commit run {posargs:--color always --all-files --show-diff-on-failure}