Skip to content

Commit

Permalink
Merge pull request #35 from eslavich/eslavich-remove-coordinates-schemas
Browse files Browse the repository at this point in the history
Move coordinates schemas to asdf-coordinates-schemas
  • Loading branch information
eslavich authored Dec 4, 2021
2 parents 567ac00 + 8dd9247 commit 6d5de4f
Show file tree
Hide file tree
Showing 23 changed files with 19 additions and 1,054 deletions.
24 changes: 17 additions & 7 deletions asdf_astropy/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,7 @@
]


ASTROPY_CONVERTERS = [
EquivalencyConverter(),
UnitsMappingConverter(),
AngleConverter(),
LatitudeConverter(),
LongitudeConverter(),
EarthLocationConverter(),
COORDINATES_CONVERTERS = [
FrameConverter(
"tag:astropy.org:astropy/coordinates/frames/baseframe-*",
"astropy.coordinates.baseframe.BaseCoordinateFrame",
Expand Down Expand Up @@ -436,15 +430,31 @@
"astropy.coordinates.builtin_frames.gcrs.PrecessedGeocentric",
),
LegacyICRSConverter(),
AngleConverter(),
LatitudeConverter(),
LongitudeConverter(),
EarthLocationConverter(),
RepresentationConverter(),
SkyCoordConverter(),
SpectralCoordConverter(),
]


ASTROPY_CONVERTERS = [
EquivalencyConverter(),
UnitsMappingConverter(),
TimeDeltaConverter(),
AstropyTableConverter(),
AstropyFitsConverter(),
]


COORDINATES_EXTENSION = ManifestExtension.from_uri(
"asdf://asdf-format.org/astronomy/coordinates/manifests/coordinates-1.0.0",
converters=COORDINATES_CONVERTERS,
)


ASTROPY_EXTENSION = ManifestExtension.from_uri(
"asdf://astropy.org/astropy/manifests/astropy-1.0.0",
# This prevents a warning about a missing extension when opening
Expand Down
2 changes: 1 addition & 1 deletion asdf_astropy/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ def get_extensions():
list of asdf.extension.Extension
"""
from . import extensions
return [extensions.ASTROPY_EXTENSION] + extensions.TRANSFORM_EXTENSIONS + extensions.CORE_EXTENSIONS
return [extensions.ASTROPY_EXTENSION, extensions.COORDINATES_EXTENSION] + extensions.TRANSFORM_EXTENSIONS + extensions.CORE_EXTENSIONS
77 changes: 0 additions & 77 deletions asdf_astropy/resources/manifests/astropy-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,83 +8,6 @@ description: |-
asdf_standard_requirement:
gte: 1.1.0
tags:
- tag_uri: tag:astropy.org:astropy/coordinates/longitude-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/longitude-1.0.0
title: Represents longitude-like angles.
description: |-
Longitude-like angle(s) which are wrapped within a contiguous 360 degree range.
- tag_uri: tag:astropy.org:astropy/coordinates/spectralcoord-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/spectralcoord-1.0.0
title: Represents a SpectralCoord object from astropy
- tag_uri: tag:astropy.org:astropy/coordinates/latitude-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/latitude-1.0.0
title: Represents latitude-like angles.
description: |-
Represents latitude-like angle(s) which must be in the range -90 to +90 deg.
- tag_uri: tag:astropy.org:astropy/coordinates/representation-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/representation-1.0.0
title: Representation of points or differentials in two or three dimensional space.
description: |-
Representation of points or differentials in two or three dimensional space.
- tag_uri: tag:astropy.org:astropy/coordinates/skycoord-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/skycoord-1.0.0
title: Represents a SkyCoord object from astropy
- tag_uri: tag:astropy.org:astropy/coordinates/angle-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/angle-1.0.0
title: Represents an Angle.
description: |-
This object represents a subtype of Quantity which has units equivalent to radians or degrees.
- tag_uri: tag:astropy.org:astropy/coordinates/earthlocation-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/earthlocation-1.0.0
title: Represents EarthLocation objects from astropy.
description: |-
Location on the Earth.
- tag_uri: tag:astropy.org:astropy/coordinates/frames/fk5-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/fk5-1.0.0
title: Represents a FK5 coordinate object from astropy
- tag_uri: tag:astropy.org:astropy/coordinates/frames/itrs-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/itrs-1.0.0
title: Represents a ITRS coordinate object from astropy
- tag_uri: tag:astropy.org:astropy/coordinates/frames/icrs-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/icrs-1.0.0
title: Represents an ICRS coordinate object from astropy (deprecated format).
- tag_uri: tag:astropy.org:astropy/coordinates/frames/icrs-1.1.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/icrs-1.1.0
title: Represents an ICRS coordinate object from astropy.
- tag_uri: tag:astropy.org:astropy/coordinates/frames/galactocentric-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/galactocentric-1.0.0
title: Represents an galactocentric coordinate object from astropy
- tag_uri: tag:astropy.org:astropy/coordinates/frames/baseframe-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/baseframe-1.0.0
title: Represents a coordinate frame object from astropy
description: |-
This schema is designed to be extended by other schemas to restrict the
allowable frame_attributes.
- tag_uri: tag:astropy.org:astropy/coordinates/frames/precessedgeocentric-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/precessedgeocentric-1.0.0
title: Represents a PrecessedGeocentric coordinate object from astropy
- tag_uri: tag:astropy.org:astropy/coordinates/frames/galactic-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/galactic-1.0.0
title: Represents an Galactic coordinate object from astropy.
- tag_uri: tag:astropy.org:astropy/coordinates/frames/fk4noeterms-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/fk4noeterms-1.0.0
title: Represents a FK4NoETerms coordinate object from astropy
- tag_uri: tag:astropy.org:astropy/coordinates/frames/icrs-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/icrs-1.0.0
title: Represents an ICRS coordinate object from astropy
description: |-
This object represents the right ascension (RA) and declination of an ICRS
coordinate or frame. The ICRS class contains additional fields that may be
useful to add here in the future.
- tag_uri: tag:astropy.org:astropy/coordinates/frames/cirs-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/cirs-1.0.0
title: Represents a CIRS coordinate object from astropy
- tag_uri: tag:astropy.org:astropy/coordinates/frames/fk4-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/fk4-1.0.0
title: Represents a FK4 coordinate object from astropy
- tag_uri: tag:astropy.org:astropy/coordinates/frames/gcrs-1.0.0
schema_uri: http://astropy.org/schemas/astropy/coordinates/frames/gcrs-1.0.0
title: Represents a GCRS coordinate object from astropy
- tag_uri: tag:astropy.org:astropy/time/timedelta-1.0.0
schema_uri: http://astropy.org/schemas/astropy/time/timedelta-1.0.0
title: Represents an instance of TimeDelta from astropy
Expand Down
37 changes: 0 additions & 37 deletions asdf_astropy/resources/schemas/coordinates/angle-1.0.0.yaml

This file was deleted.

This file was deleted.

This file was deleted.

43 changes: 0 additions & 43 deletions asdf_astropy/resources/schemas/coordinates/frames/cirs-1.0.0.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions asdf_astropy/resources/schemas/coordinates/frames/fk4-1.0.0.yaml

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6d5de4f

Please sign in to comment.