Skip to content

Commit

Permalink
Add two time series datalinks for DiaObjects
Browse files Browse the repository at this point in the history
This adds two service descriptor definitions: one for retrieving a
DiaSource time series, and another for retrieving a
ForcedSourceOnDiaObject time series, each based on a selected
DiaObject.
  • Loading branch information
JeremyMcCormick committed Dec 7, 2023
1 parent 0fee0e7 commit ebdcc95
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datalink/datalink-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"dp01_position_cone_search": ["dp01_dc2_catalogs_position_coord_ra", "dp01_dc2_catalogs_position_coord_dec"],
"dp01_truth_match_cone_search": ["dp01_dc2_catalogs_truth_match_ra", "dp01_dc2_catalogs_truth_match_dec"],
"dp02_object_to_fs_timeseries": ["dp02_dc2_catalogs_Object_objectId"],
"dp02_diaobject_to_dias_timeseries": ["dp02_dc2_catalogs_DiaObject_diaObjectId"],
"dp02_diaobject_to_diafs_timeseries": ["dp02_dc2_catalogs_DiaObject_diaObjectId"],
"obscore_links": ["ivoa_ObsCore_access_url"]
}
45 changes: 45 additions & 0 deletions datalink/dp02_diaobject_to_diafs_timeseries.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<VOTABLE xmlns="http://www.ivoa.net/xml/VOTable/v1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2">

<INFO name="$dp02_dc2_catalogs_DiaObject_diaObjectId$" ID="$dp02_dc2_catalogs_DiaObject_diaObjectId$" value="this will be dropped..." />

<RESOURCE type="meta" utype="adhoc:service">
<DESCRIPTION>Retrieve ForcedSourceOnDiaObject time series</DESCRIPTION>
<GROUP name="inputParams">
<PARAM name="id" datatype="long" ref="$dp02_dc2_catalogs_DiaObject_diaObjectId$" value="" ucd="meta.id">
<DESCRIPTION>Object ID for time series</DESCRIPTION>
</PARAM>
<PARAM name="table" datatype="char" arraysize="*" value="dp02_dc2_catalogs.ForcedSourceOnDiaObject">
<DESCRIPTION>Table containing time series data</DESCRIPTION>
</PARAM>
<PARAM name="id_column" datatype="char" arraysize="*" value="diaObjectId">
<DESCRIPTION>Foreign key in time series table</DESCRIPTION>
</PARAM>
<PARAM name="join_time_column" datatype="char" arraysize="*" value="dp02_dc2_catalogs.CcdVisit.expMidptMJD">
<DESCRIPTION>Foreign column spec for time retrieval</DESCRIPTION>
</PARAM>
<PARAM name="band" datatype="char" arraysize="*" value="all">
<DESCRIPTION>Filter band to retrieve (default: all)</DESCRIPTION>
<VALUES>
<OPTION value="all"/>
<OPTION value="u"/>
<OPTION value="g"/>
<OPTION value="r"/>
<OPTION value="i"/>
<OPTION value="z"/>
<OPTION value="y"/>
</VALUES>
</PARAM>
<PARAM name="detail" datatype="char" arraysize="*" value="principal">
<DESCRIPTION>Level of detail for time series (default: principal)</DESCRIPTION>
<VALUES>
<OPTION value="full"/>
<OPTION value="principal"/>
<OPTION value="minimal"/>
</VALUES>
</PARAM>
</GROUP>
<PARAM name="accessURL" datatype="char" arraysize="*" value="$baseUrl$/api/datalink/timeseries"/>
<PARAM name="standardID" datatype="char" arraysize="*" value="lsst://api.data.lsst.cloud/datalink/timeseries#v0.1"/>
</RESOURCE>
</VOTABLE>
45 changes: 45 additions & 0 deletions datalink/dp02_diaobject_to_dias_timeseries.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<VOTABLE xmlns="http://www.ivoa.net/xml/VOTable/v1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2">

<INFO name="$dp02_dc2_catalogs_DiaObject_diaObjectId$" ID="$dp02_dc2_catalogs_DiaObject_diaObjectId$" value="this will be dropped..." />

<RESOURCE type="meta" utype="adhoc:service">
<DESCRIPTION>Retrieve DiaSource time series</DESCRIPTION>
<GROUP name="inputParams">
<PARAM name="id" datatype="long" ref="$dp02_dc2_catalogs_DiaObject_diaObjectId$" value="" ucd="meta.id">
<DESCRIPTION>Object ID for time series</DESCRIPTION>
</PARAM>
<PARAM name="table" datatype="char" arraysize="*" value="dp02_dc2_catalogs.DiaSource">
<DESCRIPTION>Table containing time series data</DESCRIPTION>
</PARAM>
<PARAM name="id_column" datatype="char" arraysize="*" value="diaObjectId">
<DESCRIPTION>Foreign key in time series table</DESCRIPTION>
</PARAM>
<PARAM name="join_time_column" datatype="char" arraysize="*" value="dp02_dc2_catalogs.CcdVisit.expMidptMJD">
<DESCRIPTION>Foreign column spec for time retrieval</DESCRIPTION>
</PARAM>
<PARAM name="band" datatype="char" arraysize="*" value="all">
<DESCRIPTION>Filter band to retrieve (default: all)</DESCRIPTION>
<VALUES>
<OPTION value="all"/>
<OPTION value="u"/>
<OPTION value="g"/>
<OPTION value="r"/>
<OPTION value="i"/>
<OPTION value="z"/>
<OPTION value="y"/>
</VALUES>
</PARAM>
<PARAM name="detail" datatype="char" arraysize="*" value="principal">
<DESCRIPTION>Level of detail for time series (default: principal)</DESCRIPTION>
<VALUES>
<OPTION value="full"/>
<OPTION value="principal"/>
<OPTION value="minimal"/>
</VALUES>
</PARAM>
</GROUP>
<PARAM name="accessURL" datatype="char" arraysize="*" value="$baseUrl$/api/datalink/timeseries"/>
<PARAM name="standardID" datatype="char" arraysize="*" value="lsst://api.data.lsst.cloud/datalink/timeseries#v0.1"/>
</RESOURCE>
</VOTABLE>

0 comments on commit ebdcc95

Please sign in to comment.