-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from spacetelescope/gwcs-improvements
Gwcs improvements
- Loading branch information
Showing
7 changed files
with
115 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
%YAML 1.1 | ||
--- | ||
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01" | ||
id: "http://stsci.edu/schemas/asdf/0.1.0/transform/compose" | ||
tag: "tag:stsci.edu:asdf/0.1.0/transform/compose" | ||
title: > | ||
Perform a list of subtransforms in series. | ||
description: | | ||
The output of each subtransform is fed into the input of the next | ||
subtransform. | ||
The number of output dimensions of each subtransform must be equal | ||
to the number of input dimensions of the next subtransform in list. | ||
To reorder or add/drop axes, insert ``remap_axes`` transforms in the | ||
subtransform list. | ||
Invertability: All ASDF tools are required to be able to compute the | ||
analytic inverse of this transform, by reversing the list of | ||
transforms and applying the inverse of each. | ||
examples: | ||
- | ||
- A series of transforms | ||
- | | ||
!transform/compose | ||
forward: | ||
- !transform/generic | ||
n_inputs: 1 | ||
n_outputs: 2 | ||
- !transform/generic | ||
n_inputs: 2 | ||
n_outputs: 1 | ||
allOf: | ||
- $ref: transform | ||
- properties: | ||
forward: | ||
type: array | ||
items: | ||
$ref: transform | ||
required: [forward] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
%YAML 1.1 | ||
--- | ||
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01" | ||
id: "http://stsci.edu/schemas/asdf/0.1.0/transform/constant" | ||
tag: "tag:stsci.edu:asdf/0.1.0/transform/constant" | ||
title: > | ||
A transform that takes no inputs and always outputs a constant | ||
value. | ||
description: | | ||
Invertability: All ASDF tools are required to be able to compute the | ||
analytic inverse of this transform, which always outputs zero values. | ||
allOf: | ||
- $ref: transform | ||
- type: object | ||
properties: | ||
value: | ||
type: number | ||
required: [value] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters