SIARecord

class pyvo.dal.sia.SIARecord(results, index)[source]

Bases: pyvo.dal.query.Record

a dictionary-like container for data in a record from the results of an image (SIA) search, describing an available image.

The commonly accessed metadata which are stadardized by the SIA protocol are available as attributes. If the metadatum accessible via an attribute is not available, the value of that attribute will be None. All metadata, including non-standard metadata, are acessible via the get( key ) function (or the [key] operator) where key is table column name.

Attributes Summary

acref the URL that can be used to retrieve the image
dateobs the modified Julien date (MJD) of the mid-point of the
dec return the declination of the center of the image
format the format of the image
instr the name of the instrument (or instruments) that produced the
naxes the number of axes in this image.
naxis the lengths of the sides along each axis, in pixels, as
ra return the right ascension of the center of the image
title the title of the image

Methods Summary

getdataurl() return the URL contained in the access URL column which can be used
suggest_dataset_basename() return a default base filename that the dataset available via
suggest_extension([default]) returns a recommended filename extension for the dataset described

Attributes Documentation

acref

the URL that can be used to retrieve the image

dateobs

the modified Julien date (MJD) of the mid-point of the observational data that went into the image

dec

return the declination of the center of the image

format

the format of the image

instr

the name of the instrument (or instruments) that produced the data that went into this image.

naxes

the number of axes in this image.

naxis

the lengths of the sides along each axis, in pixels, as a sequence

ra

return the right ascension of the center of the image

title

the title of the image

Methods Documentation

getdataurl()[source]

return the URL contained in the access URL column which can be used to retrieve the dataset described by this record. None is returned if no such column exists.

suggest_dataset_basename()[source]

return a default base filename that the dataset available via getdataset() can be saved as. This function is specialized for a particular service type this record originates from so that it can be used by cachedataset() via make_dataset_filename().

suggest_extension(default=None)[source]

returns a recommended filename extension for the dataset described by this record. Typically, this would look at the column describing the format and choose an extension accordingly.