2021-11-11T13:00:00
\getConfig{web}{siteName} obs_radio Table
observational-astronomy
interferometry
Radio-specific metadata for suitable data
products from \getConfig{web}{siteName}'s obscore table.
The columns of the ObsCore radio extension. You may want
to replay this into a table intended to mix in //obs-radio#publish
-- but there is nothing wrong with not doing so.
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
ivo://ivoa.net/std/obsradio#table-1.0
True
obs_publisher_did
An IVOA-defined metadata table for
radio measurements, with extra metadata for interferometric measurements
("visibilities") as well as single-dish observations. You
will almost always want to join this table to ivoa.obscore
(do a natural join).
create view \qName (missing) AS (SELECT 0)
This table contains the SQL fragments that make up this site's
ivoa.obs_radio view.
Manipulate this table through gavo imp on tables that have an obs_radio
mixin, or by dropping RDs or purging tables that are part of obscore.
Mix this into a table that contains radio data to have their
metadata show up in the obscore extension for radio data. This
only makes sense together with one of the obscore mixins, as
the main metadata is kept in the obscore table.
Use the mixin parameters to map whatever is in your table to obs_radio'
columns. As with obscore, parameter values must be SQL expressions
evaluatable within the table mixed in. The default is to have
all extension columns NULL.
# for now, just create parameters from the extension table's
# columns; this probably will need work even if their
# descriptions are fixed.
for col in context.getById("obs_radio"):
if col.name!="obs_publisher_did":
yield {"name": col.name, "description": col.description}
NULL
obs_publisher_did
items = []
for col in context.getById("obs_radio"):
items.append(r"CAST(\{name} AS {type}) AS {name}".format(
**col.asInfoDict()))
yield {"clause": ",\n".join(items)}
\clause