Skip to content
ivoa-1_1.xml 27.2 KiB
Newer Older
<?xml version="1.0" encoding="UTF-8"?>
<!--
_____________________________________________________________________________

INAF - OATS National Institute for Astrophysics - Astronomical Observatory of
Trieste INAF - IA2 Italian Center for Astronomical Archives
_____________________________________________________________________________

Copyright (C) 2017 Istituto Nazionale di Astrofisica

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License Version 3 as published by the
Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.

You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 51
Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<schema name="ivoa" version="1.1">
    <table name="obscore">
        <column name="dataproduct_type">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Logical data product type (image etc.)</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>ObsDataset.dataProductType</utype>
            <ucd>meta.id</ucd>
            <principal>true</principal>
            <enum-values>image,cube,spectrum,sed,timeseries,visibility,event,measurements</enum-values>
        <column name="dataproduct_subtype">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Data product specific type</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>ObsDataset.dataProductSubtype</utype>
            <ucd>meta.id</ucd>
            <principal>true</principal>
        </column>
        <column name="calib_level">
            <type>INTEGER</type>
            <updatable>true</updatable>
            <nullable>false</nullable>
            <description>Calibration level {0, 1, 2, 3, 4}</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>ObsDataset.calibLevel</utype>
            <ucd>meta.code;obs.calib</ucd>
            <principal>true</principal>
            <min>0</min>
            <max>4</max>
        <column name="obs_collection">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <nullable>false</nullable>
            <description>Name of the data collection</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>DataID.collection</utype>
            <ucd>meta.id</ucd>
            <principal>true</principal>
        </column>
        <column name="obs_id">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <nullable>false</nullable>
            <description>Internal ID given by the ObsTAP service</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>DataID.observationID</utype>
            <ucd>meta.id</ucd>
            <principal>true</principal>
        </column>
        <column name="obs_title">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Brief description of dataset in free format</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>DataID.title</utype>
            <ucd>meta.title;obs</ucd>
            <principal>true</principal>
        </column>
        <column name="obs_creation_date">
            <type>TIMESTAMP</type>
            <updatable>true</updatable>
            <description>Date when the dataset was created</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>DataID.date</utype>
            <ucd>time;meta.dataset</ucd>
            <principal>true</principal>
        </column>
        <column name="obs_creator_name">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Name of the creator of the data</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>DataID.creator</utype>
            <ucd>meta.id</ucd>
            <principal>true</principal>
        </column>
        <column name="obs_creator_did">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>IVOA dataset identifier given by the creator</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>DataID.creatorDID</utype>
            <ucd>meta.id</ucd>
            <principal>false</principal>
        </column>
        <column name="obs_release_date">
            <type>TIMESTAMP</type>
            <updatable>true</updatable>
            <description>Observation release date (ISO 8601)</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Curation.releaseDate</utype>
            <ucd>time.release</ucd>
            <principal>true</principal>
        </column>
        <column name="publisher_id">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>IVOA-ID for the Publisher</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Curation.publisherID</utype>
            <ucd>meta.ref.uri;meta.curation</ucd>
            <principal>true</principal>
        </column>
        <column name="bib_reference">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Service bibliographic reference</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Curation.reference</utype>
            <ucd>meta.bib</ucd>
            <principal>false</principal>
        </column>
        <column name="data_rights">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Public/Secure/Proprietary</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Curation.rights</utype>
            <ucd>meta.code</ucd>
            <principal>false</principal>
        </column>
        <column name="obs_publisher_did">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <nullable>false</nullable>
            <description>Dataset identifier given by the publisher</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Curation.publisherDID</utype>
            <ucd>meta.ref.uri;meta.curation</ucd>
            <principal>true</principal>
        </column>
        <column name="access_url">
            <type>CLOB</type>
            <updatable>true</updatable>
            <description>URL used to access (download) dataset</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Access.reference</utype>
            <ucd>meta.ref.url</ucd>
            <principal>true</principal>
        </column>
        <column name="access_format">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Content format of the dataset</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Access.format</utype>
            <ucd>meta.code.mime</ucd>
            <principal>true</principal>
        </column>
        <column name="access_estsize">
            <type>BIGINT</type>
            <updatable>true</updatable>
            <description>Estimated size of dataset in kilo bytes</description>
            <standard>true</standard>
            <unit>kbyte</unit>
            <mandatory>true</mandatory>
            <utype>Access.size</utype>
            <unit>kbyte</unit>
            <ucd>phys.size;meta.file</ucd>
            <principal>true</principal>
        </column>
        <column name="target_name">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Astronomical object observed, if any</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Target.name</utype>
            <ucd>meta.id;src</ucd>
            <principal>true</principal>
        </column>
        <column name="target_class">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Class of the Target object as in SSA</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Target.class</utype>
            <ucd>src.class</ucd>
            <principal>true</principal>
        </column>
        <column name="s_ra">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Central Spatial Position in ICRS Right ascension</description>
            <standard>true</standard>
            <unit>deg</unit>
            <mandatory>true</mandatory>
            <utype>Char.SpatialAxis.Coverage.Location.Coord.Position2D.Value2.C1</utype>
            <unit>deg</unit>
            <ucd>pos.eq.ra</ucd>
            <principal>true</principal>
        </column>
        <column name="s_dec">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Central Spatial Position in ICRS Declination</description>
            <standard>true</standard>
            <unit>deg</unit>
            <mandatory>true</mandatory>
            <utype>Char.SpatialAxis.Coverage.Location.Coord.Position2D.Value2.C2</utype>
            <unit>deg</unit>
            <ucd>pos.eq.dec</ucd>
            <principal>true</principal>
        </column>
        <column name="s_fov">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Estimated size of the covered region as the diameter of a containing circle</description>
            <standard>true</standard>
            <unit>deg</unit>
            <mandatory>true</mandatory>
            <utype>Char.SpatialAxis.Coverage.Bounds.Extent.diameter</utype>
            <unit>deg</unit>
            <ucd>phys.angSize;instr.fov</ucd>
            <principal>true</principal>
        </column>
        <column name="s_region">
            <type>REGION</type>
            <updatable>true</updatable>
            <description>Sky region covered by the data product (expressed in ICRS frame)</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Char.SpatialAxis.Coverage.Support.Area</utype>
            <ucd>pos.outline;obs.field</ucd>
            <principal>true</principal>
        </column>
        <column name="s_xel1">
            <type>BIGINT</type>
            <updatable>true</updatable>
            <description>Number of elements along the first coordinate of the spatial axis</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Char.SpatialAxis.numBins1</utype>
            <ucd>meta.number</ucd>
            <principal>true</principal>
        </column>
        <column name="s_xel2">
            <type>BIGINT</type>
            <updatable>true</updatable>
            <description>Number of elements along the second coordinate of the spatial  axis</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Char.SpatialAxis.numBins2</utype>
            <ucd>meta.number</ucd>
            <principal>true</principal>
        </column>
        <column name="s_ucd">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>UCD for the nature of the spatial axis (pos or u,v data)</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpatialAxis.ucd</utype>
            <ucd>meta.ucd</ucd>
            <principal>true</principal>
        </column>
        <column name="s_unit">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Unit used for spatial axis</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpatialAxis.unit</utype>
            <ucd>meta.unit</ucd>
            <principal>true</principal>
        </column>
        <column name="s_resolution">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Spatial resolution of data as FWHM of PSF</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Char.SpatialAxis.Resolution.refval.value</utype>
            <unit>arcsec</unit>
            <ucd>pos.angResolution</ucd>
            <principal>true</principal>
        </column>
        <column name="s_resolution_min">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Resolution min value on spatial axis (FHWM of PSF)</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpatialAxis.Resolution.Bounds.Limits.LoLimit</utype>
            <unit>arcsec</unit>
            <ucd>pos.angResolution;stat.min</ucd>
            <principal>true</principal>
        </column>
        <column name="s_resolution_max">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Resolution max value on spatial axis</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpatialAxis.Resolution.Bounds.Limits.HiLimit</utype>
            <unit>arcsec</unit>
            <ucd>pos.angResolution;stat.max</ucd>
            <principal>true</principal>
        </column>
        <column name="s_calib_status">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Type of calibration along the spatial axis</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpatialAxis.calibrationStatus</utype>
            <ucd>meta.code.qual</ucd>
            <principal>true</principal>
        </column>
        <column name="s_stat_error">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Astrometric precision along the spatial axis</description>
            <standard>true</standard>
            <unit>arcsec</unit>
            <mandatory>false</mandatory>
            <utype>Char.SpatialAxis.Accuracy.StatError.Refval.value</utype>
            <unit>arcsec</unit>
            <ucd>stat.error;pos.eq</ucd>
            <principal>false</principal>
        </column>
        <column name="s_pixel_scale">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Sampling period in world coordinate units along the spatial axis</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpatialAxis.Sampling.RefVal.SamplingPeriod</utype>
            <unit>arcsec</unit>
            <ucd>phys.angSize;instr.pixel</ucd>
            <principal>true</principal>
        </column>
        <column name="t_min">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Start time in MJD</description>
            <standard>true</standard>
            <unit>d</unit>
            <mandatory>true</mandatory>
            <utype>Char.TimeAxis.Coverage.Bounds.Limits.StartTime</utype>
            <ucd>time.start;obs.exposure</ucd>
            <principal>true</principal>
        </column>
        <column name="t_max">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Stop time in MJD</description>
            <standard>true</standard>
            <unit>d</unit>
            <mandatory>true</mandatory>
            <utype>Char.TimeAxis.Coverage.Bounds.Limits.StopTime</utype>
            <ucd>time.end;obs.exposure</ucd>
            <principal>true</principal>
        </column>
        <column name="t_exptime">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Total exposure time</description>
            <standard>true</standard>
            <unit>s</unit>
            <mandatory>true</mandatory>
            <utype>Char.TimeAxis.Coverage.Support.Extent</utype>
            <ucd>time.duration;obs.exposure</ucd>
            <principal>true</principal>
        </column>
        <column name="t_resolution">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Temporal resolution FWHM</description>
            <standard>true</standard>
            <unit>s</unit>
            <mandatory>true</mandatory>
            <utype>Char.TimeAxis.Resolution.Refval.valueResolution.Refval.value</utype>
            <ucd>time.resolution</ucd>
            <principal>true</principal>
        </column>
        <column name="t_calib_status">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Type of time coordinate calibration</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.TimeAxis.calibrationStatus</utype>
            <ucd>meta.code.qual</ucd>
            <principal>false</principal>
        </column>
        <column name="t_stat_error">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Time coord statistical error</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.TimeAxis.Accuracy.StatError.Refval.value</utype>
            <unit>s</unit>
            <ucd>stat.error;time</ucd>
            <principal>false</principal>
        </column>
        <column name="t_xel">
            <type>BIGINT</type>
            <updatable>true</updatable>
            <description>Number of elements along the time axis</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Char.TimeAxis.numBins</utype>
            <ucd>meta.number</ucd>
            <principal>true</principal>
        </column>
        <column name="t_refpos">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Time Axis Reference Position as defined in STC REC</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.TimeAxis.ReferencePosition</utype>
        </column>
        <column name="em_min">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Start in spectral coordinates</description>
            <standard>true</standard>
            <unit>m</unit>
            <mandatory>true</mandatory>
            <utype>Char.SpectralAxis.Coverage.Bounds.Limits.LoLimit</utype>
            <ucd>em.wl;stat.min</ucd>
            <principal>true</principal>
        </column>
        <column name="em_max">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Stop in spectral coordinates</description>
            <standard>true</standard>
            <unit>m</unit>
            <mandatory>true</mandatory>
            <utype>Char.SpectralAxis.Coverage.Bounds.Limits.HiLimit</utype>
            <ucd>em.wl;stat.max</ucd>
            <principal>true</principal>
        </column>
        <column name="em_res_power">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Value of the resolving power along the spectral axis. (R)</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Char.SpectralAxis.Resolution.ResolPower.refVal</utype>
            <ucd>spect.resolution</ucd>
            <principal>true</principal>
        </column>
        <column name="em_res_power_min">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Resolving power min value on spectral axis</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpectralAxis.Resolution.ResolPower.LoLimit</utype>
            <ucd>spect.resolution;stat.min</ucd>
            <principal>true</principal>
        </column>
        <column name="em_res_power_max">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Resolving power max value on spectral axis</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpectralAxis.Resolution.ResolPower.HiLimit</utype>
            <ucd>spect.resolution;stat.max</ucd>
            <principal>true</principal>
        </column>
        <column name="em_resolution">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Value of Resolution along the spectral axis</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpectralAxis.Resolution.Refval.value</utype>
            <unit>m</unit>
            <ucd>spect.resolution;stat.mean</ucd>
            <principal>true</principal>
        </column>
        <column name="em_stat_error">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Spectral coord statistical error</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpectralAxis.Accuracy.StatError.Refval.value</utype>
            <unit>m</unit>
            <ucd>stat.error;em</ucd>
            <principal>false</principal>
        </column>
        <column name="em_xel">
            <type>BIGINT</type>
            <updatable>true</updatable>
            <description>Number of elements along the spectral axis</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Char.SpectralAxis.numBins</utype>
            <ucd>meta.number</ucd>
        </column>
        <column name="em_ucd">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Nature of the spectral axis</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpectralAxis.ucd</utype>
            <ucd>meta.ucd</ucd>
            <principal>true</principal>
        </column>
        <column name="em_unit">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Units along the spectral axis</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpectralAxis.unit</utype>
            <ucd>meta.unit</ucd>
            <principal>true</principal>
        </column>
        <column name="em_calib_status">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Type of spectral coord calibration</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.SpectralAxis.calibrationStatus</utype>
            <ucd>meta.code.qual</ucd>
            <principal>false</principal>
        </column>
        <column name="o_ucd">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>UCD of the observable axis (e.g. phot.flux.density, phot.count, etc.)</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Char.ObservableAxis.ucd</utype>
            <ucd>meta.ucd</ucd>
            <principal>true</principal>
        </column>
        <column name="o_unit">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Units used for the observable values</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.ObservableAxis.unit</utype>
            <ucd>meta.unit</ucd>
            <principal>true</principal>
        </column>
        <column name="o_calib_status">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Type of calibration for the observable coordinate</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.ObservableAxis.calibrationStatus</utype>
            <ucd>meta.code.qual</ucd>
            <principal>true</principal>
        </column>
        <column name="o_stat_error">
            <type>DOUBLE</type>
            <updatable>true</updatable>
            <description>Statistical error on the Observable axis</description>
            <standard>true</standard>
            <mandatory>false</mandatory>
            <utype>Char.ObservableAxis.Accuracy.StatError.Refval.value</utype>
            <!-- units specified by o_unit -->
            <ucd>stat.error;phot.flux</ucd>
            <principal>false</principal>
        </column>
        <column name="pol_states">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>List of polarization states present in the data file or NULL if not applicable</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Char.PolarizationAxis.stateList</utype>
            <ucd>meta.code;phys.polarization</ucd>
            <principal>true</principal>
        </column>
        <column name="pol_xel">
            <type>BIGINT</type>
            <updatable>true</updatable>
            <description>Number of elements along the polarization axis</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Char.PolarizationAxis.numBins</utype>
            <ucd>meta.number</ucd>
            <principal>true</principal>
        </column>
        <column name="facility_name">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Name of the facility used for this observation</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Provenance.ObsConfig.Facility.name</utype>
            <ucd>meta.id;instr.tel</ucd>
            <principal>true</principal>
        </column>
        <column name="instrument_name">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>The name of the instrument used for the observation</description>
            <standard>true</standard>
            <mandatory>true</mandatory>
            <utype>Provenance.ObsConfig.Instrument.name</utype>
            <ucd>meta.id;instr</ucd>
            <principal>true</principal>
        </column>
        <column name="proposal_id">
            <type>VARCHAR</type>
            <updatable>true</updatable>
            <description>Identifier of proposal to which observation belongs</description>
            <mandatory>true</mandatory>
            <utype>Provenance.Proposal.identifier</utype>
            <ucd>meta.id; obs.proposal</ucd>
            <principal>false</principal>
        </column>
    </table>
</schema>