Skip to content

Commit 2c938f2

Browse files
committed
Bump the slicedwcs schema version
1 parent 6e852c7 commit 2c938f2

File tree

4 files changed

+119
-4
lines changed

4 files changed

+119
-4
lines changed

asdf_astropy/extensions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@
540540

541541

542542
_ASTROPY_EXTENSION_MANIFEST_URIS = [
543+
"asdf://astropy.org/astropy/manifests/astropy-1.4.0",
543544
"asdf://astropy.org/astropy/manifests/astropy-1.3.0",
544545
"asdf://astropy.org/astropy/manifests/astropy-1.2.0",
545546
"asdf://astropy.org/astropy/manifests/astropy-1.1.0",
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
id: asdf://astropy.org/astropy/manifests/astropy-1.4.0
2+
extension_uri: asdf://astropy.org/astropy/extensions/astropy-1.4.0
3+
title: Astropy extension 1.4.0
4+
description: |-
5+
A set of tags for serializing astropy objects. This does not include most
6+
model classes, which are handled by an implementation of the ASDF
7+
transform extension.
8+
asdf_standard_requirement:
9+
gte: 1.6.0
10+
tags:
11+
- tag_uri: tag:astropy.org:astropy/time/timedelta-1.1.0
12+
schema_uri: http://astropy.org/schemas/astropy/time/timedelta-1.1.0
13+
title: Represents an instance of TimeDelta from astropy
14+
description: |-
15+
Represents the time difference between two times.
16+
- tag_uri: tag:astropy.org:astropy/fits/fits-1.1.0
17+
schema_uri: http://astropy.org/schemas/astropy/fits/fits-1.1.0
18+
title: A FITS file inside of an ASDF file.
19+
description: |-
20+
This schema is useful for distributing ASDF files that can
21+
automatically be converted to FITS files by specifying the exact
22+
content of the resulting FITS file.
23+
24+
Not all kinds of data in FITS are directly representable in ASDF.
25+
For example, applying an offset and scale to the data using the
26+
`BZERO` and `BSCALE` keywords. In these cases, it will not be
27+
possible to store the data in the native format from FITS and also
28+
be accessible in its proper form in the ASDF file.
29+
30+
Only image and binary table extensions are supported.
31+
- tag_uri: tag:astropy.org:astropy/table/table-1.2.0
32+
schema_uri: http://astropy.org/schemas/astropy/table/table-1.2.0
33+
title: A table.
34+
description: |-
35+
A table is represented as a list of columns, where each entry is a
36+
[column](ref:http://stsci.edu/schemas/asdf/table/column-1.1.0)
37+
object, containing the data and some additional information.
38+
39+
The data itself may be stored inline as text, or in binary in either
40+
row- or column-major order by use of the `strides` property on the
41+
individual column arrays.
42+
43+
Each column in the table must have the same first (slowest moving)
44+
dimension.
45+
- tag_uri: tag:astropy.org:astropy/transform/units_mapping-1.1.0
46+
schema_uri: http://astropy.org/schemas/astropy/transform/units_mapping-1.1.0
47+
title: Mapper that operates on the units of the input.
48+
description: |-
49+
This transform operates on the units of the input, first converting to
50+
the expected input units, then assigning replacement output units without
51+
further conversion.
52+
- tag_uri: tag:astropy.org:astropy/table/ndarraymixin-1.0.0
53+
schema_uri: http://astropy.org/schemas/astropy/table/ndarraymixin-1.0.0
54+
title: NdarrayMixin column.
55+
description: |-
56+
Represents an astropy.table.NdarrayMixin instance.
57+
- tag_uri: tag:astropy.org:astropy/wcs/slicedwcs-1.1.0
58+
schema_uri: http://astropy.org/schemas/astropy/wcs/slicedwcs-1.1.0
59+
title: Represents an instance of SlicedLowLevelWCS
60+
description: |-
61+
The SlicedLowLevelWCS class is a wrapper class for WCS that applies slices
62+
to the WCS, allowing certain pixel and world dimensions to be retained or
63+
dropped.
64+
65+
It manages the slicing and coordinate transformations while preserving
66+
the underlying WCS object.
67+
- tag_uri: tag:astropy.org:astropy/wcs/wcs-1.0.0
68+
schema_uri: http://astropy.org/schemas/astropy/wcs/wcs-1.0.0
69+
title: FITS WCS (World Coordinate System) Converter
70+
description: |-
71+
Represents the FITS WCS object, the HDUlist of the FITS header is preserved
72+
during serialization and during deserialization the WCS object is recreated
73+
from the HDUlist.

asdf_astropy/resources/schemas/wcs/slicedwcs-1.0.0.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ allOf:
1616
- type: object
1717
properties:
1818
wcs:
19-
anyOf:
20-
- tag: "tag:astropy.org:astropy/wcs/wcs-1*"
21-
- tag: "tag:stsci.edu:gwcs/wcs-*"
22-
19+
tag: "tag:astropy.org:astropy/wcs/wcs-1*"
2320
slices_array:
2421
type: array
2522
items:
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
%YAML 1.1
2+
---
3+
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
4+
id: "http://astropy.org/schemas/astropy/wcs/slicedwcs-1.1.0"
5+
6+
title: Represents the SlicedLowLevelWCS object
7+
8+
description: >-
9+
The SlicedLowLevelWCS class is a wrapper class for WCS that applies slices
10+
to the WCS, allowing certain pixel and world dimensions to be retained or
11+
dropped.
12+
It manages the slicing and coordinate transformations while preserving
13+
the underlying WCS object.
14+
15+
allOf:
16+
- type: object
17+
properties:
18+
wcs:
19+
anyOf:
20+
- tag: "tag:astropy.org:astropy/wcs/wcs-1*"
21+
- tag: "tag:stsci.edu:gwcs/wcs-*"
22+
23+
slices_array:
24+
type: array
25+
items:
26+
- oneOf:
27+
- type: integer
28+
- type: object
29+
properties:
30+
start:
31+
anyOf:
32+
- type: integer
33+
- type: "null"
34+
stop:
35+
anyOf:
36+
- type: integer
37+
- type: "null"
38+
step:
39+
anyOf:
40+
- type: integer
41+
- type: "null"
42+
43+
44+
required: ["wcs", "slices_array"]

0 commit comments

Comments
 (0)