HipsSurveyProperties

class hips.HipsSurveyProperties(data: collections.OrderedDict) → None[source]

Bases: object

HiPS properties container.

Parameters:

data : OrderedDict

HiPS survey properties

Examples

>>> from hips import HipsSurveyProperties
>>> url = 'http://alasky.unistra.fr/DSS/DSS2Merged/properties'
>>> hips_survey_property = HipsSurveyProperties.fetch(url)
>>> hips_survey_property.base_url
'http://alasky.u-strasbg.fr/DSS/DSS2Merged'

Attributes Summary

astropy_frame Astropy coordinate frame (str).
base_url HiPS access URL
hips_frame HiPS coordinate frame (str).
hips_order HiPS order (int).
hips_service_url HiPS service base URL (str).
hips_to_astropy_frame_mapping
hips_version HiPS version (str).
tile_format HiPS tile format (str).
tile_width HiPS tile width
title HiPS title (str).

Methods Summary

fetch(…) Read from HiPS survey description file from remote URL (HipsSurveyProperties).
from_name(…) Create object from Survey ID (HipsSurveyProperties).
make((hips_survey: typing.Union[str, …) Convenience constructor for from_string classmethod or existing object (HipsSurveyProperties).
parse((text: str, …) Parse HiPS survey description text (HipsSurveyProperties).
read(…) Read from HiPS survey description file (HipsSurveyProperties).
tile_url(…) Tile URL on the server (str).

Attributes Documentation

astropy_frame

Astropy coordinate frame (str).

base_url

HiPS access URL

hips_frame

HiPS coordinate frame (str).

hips_order

HiPS order (int).

hips_service_url

HiPS service base URL (str).

hips_to_astropy_frame_mapping = OrderedDict([('equatorial', 'icrs'), ('galactic', 'galactic'), ('ecliptic', 'ecliptic')])
hips_version

HiPS version (str).

tile_format

HiPS tile format (str).

tile_width

HiPS tile width

title

HiPS title (str).

Methods Documentation

classmethod fetch(url: str) → hips.tiles.survey.HipsSurveyProperties[source]

Read from HiPS survey description file from remote URL (HipsSurveyProperties).

Parameters:

url : str

URL containing HiPS properties

classmethod from_name(name: str) → hips.tiles.survey.HipsSurveyProperties[source]

Create object from Survey ID (HipsSurveyProperties).

classmethod make(hips_survey: typing.Union[str, _ForwardRef('HipsSurveyProperties')]) → hips.tiles.survey.HipsSurveyProperties[source]

Convenience constructor for from_string classmethod or existing object (HipsSurveyProperties).

classmethod parse(text: str, url: str = None) → hips.tiles.survey.HipsSurveyProperties[source]

Parse HiPS survey description text (HipsSurveyProperties).

Parameters:

text : str

Text containing HiPS survey properties

url : str

Properties URL of HiPS

classmethod read(filename: str) → hips.tiles.survey.HipsSurveyProperties[source]

Read from HiPS survey description file (HipsSurveyProperties).

Parameters:

filename : str

HiPS properties filename

tile_url(tile_meta: hips.tiles.tile.HipsTileMeta) → str[source]

Tile URL on the server (str).