Skip to content

Commit 63824c2

Browse files
authored
Merge pull request #76 from loumir/update_loumir_PEN_naturaljoin
Update loumir pen naturaljoin
2 parents 1b7cb9c + deff021 commit 63824c2

File tree

3 files changed

+94
-91
lines changed

3 files changed

+94
-91
lines changed

Appendix.tex

Lines changed: 81 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ \subsection{Use case - s\_resolution\_min}
2323
III Scan mode is raster map or on-the-fly map
2424

2525
\begin{verbatim}
26-
s_resolution_min > 0.017 AND
27-
WHERE (target_name = 'Virgo A' OR
28-
CONTAINS(POINT(s_ra, s_dec),CIRCLE,187.7059308,+12.3911232,0.25)) = 1)) AND
29-
(scan_mode = 'raster map' OR scan_mode = 'on-the-fly map')
26+
SELECT * FROM ivoa.obscore
27+
NATURAL JOIN ivoa.obscore-radio
28+
WHERE
29+
s_resolution_min > 0.017
30+
AND (target_name = 'Virgo A' OR
31+
CONTAINS(POINT(s_ra, s_dec),CIRCLE,187.7059308,+12.3911232,0.25)) = 1))
32+
AND (scan_mode = 'raster map' OR scan_mode = 'on-the-fly map')
3033
\end{verbatim}
3134

3235
\subsection{Use case - s\_resolution\_max}
@@ -38,10 +41,13 @@ \subsection{Use case - s\_resolution\_max}
3841
II Target IC443 or position inside 15 arcmin from 94.2500000,+22.5699997 \\
3942

4043
\begin{verbatim}
41-
s_resolution_max < 0.017 AND
42-
WHERE (target_name = 'IC443' OR
43-
CONTAINS(POINT(s_ra,s_dec),CIRCLE(94.2500000,+22.5699997,0.25)) = 1)) AND
44-
(scan_mode = 'raster map' OR scan_mode = 'on-the-fly map')
44+
SELECT * FROM ivoa.obscore
45+
NATURAL JOIN ivoa.obscore-radio
46+
WHERE s_resolution_max < 0.017
47+
AND
48+
(target_name = 'IC443' OR
49+
CONTAINS(POINT(s_ra,s_dec),CIRCLE(94.2500000,+22.5699997,0.25)) = 1))
50+
AND (scan_mode = 'raster map' OR scan_mode = 'on-the-fly map')
4551
\end{verbatim}
4652

4753
\subsection{Use case - s\_fov\_min - large field of views}
@@ -52,11 +58,12 @@ \subsection{Use case - s\_fov\_min - large field of views}
5258
I. Minimum FOV > 0.8 deg \\
5359
II Target name = Abell 194 or position inside 15 arcmin from 21.5054167, -1.3672221 \\
5460
\begin{verbatim}
55-
SELECT * FROM ivoa.ObscoreRadioExtended
61+
SELECT * FROM ivoa.obscore
62+
NATURAL JOIN ivoa.obscore-radio
5663
WHERE s_fov_min > 0.8 AND
5764
(target_name = 'Abell 194' OR
58-
CONTAINS(POINT(s_ra,s_dec),CIRCLE(21.5054167,-1.3672221,0.25)) = 1)) AND
59-
(scan_mode = 'raster map' OR scan_mode = 'on-the-fly map')
65+
CONTAINS(POINT(s_ra,s_dec),CIRCLE(21.5054167,-1.3672221,0.25)) = 1))
66+
AND (scan_mode = 'raster map' OR scan_mode = 'on-the-fly map')
6067
\end{verbatim}
6168

6269
\subsection{Use case - s\_fov\_min - extended target completly included}
@@ -66,6 +73,8 @@ \subsection{Use case - s\_fov\_min - extended target completly included}
6673
I. Target name = Pictor A \\
6774
II. The circle defined by the minimum FOV of the dataset fully contains the circle delimiting Pictor A. \\
6875
\begin{verbatim}
76+
SELECT * FROM ivoa.obscore
77+
NATURAL JOIN ivoa.obscore-radio
6978
WHERE target_name = 'Pictor A' AND
7079
CONTAINS(CIRCLE(79.9571789, -45.7788479,(8/60)/2),
7180
CIRCLE(s_ra, s_dec, s_fov_min/2)) = 1)
@@ -79,13 +88,15 @@ \subsection{Use case - dataproduct\_type}
7988
III. Observed frequency in the range 20-21 GHz \\
8089
IV. dataproduct\_type = spatial\_profile or scan\_mode contains map\\
8190
V. 51544 < observation time (MJD) < 60309 \\
91+
8292
\begin{verbatim}
83-
SELECT * FROM ivoa.ObscoreRadioExtended
84-
WHERE obs_collection EQ ?INAF-Medicina, single dish? AND
85-
(em_min >=20000 AND em_max <= 21000) AND
86-
(dataproduct_type EQ 'spatial profile' OR scan_mode LIKE "*map*") AND
87-
target_name = '3C48' AND
88-
(t_min >= 51544 AND t_max <= 60309)
93+
SELECT * FROM ivoa.obscore
94+
NATURAL JOIN ivoa.obscore-radio
95+
WHERE obs_collection EQ 'INAF-Medicina, single dish'
96+
AND (em_min >=20000 AND em_max <= 21000)
97+
AND (dataproduct_type EQ 'spatial profile' OR scan_mode LIKE "*map*")
98+
AND target_name = '3C48'
99+
AND (t_min >= 51544 AND t_max <= 60309)
89100
\end{verbatim}
90101

91102
\subsection{Use case - f\_resolution, frequency ranges}
@@ -99,7 +110,8 @@ \subsection{Use case - f\_resolution, frequency ranges}
99110
III. em\_min and em\_max such than frequency bounds are included in the 1GHz to 1.5GHz range \\
100111
\begin{verbatim}
101112
SELECT *, 299792458 / em_max as f_min, 299792458 / em_min as f_max
102-
FROM ivoa.ObscoreRadioExtended
113+
FROM ivoa.obscore
114+
NATURAL JOIN ivoa.obscore-radio
103115
WHERE dataproduct_type = 'cube' AND
104116
f_resolution < 1000000 AND
105117
299792458 / em_max > 1.0 e+9 AND
@@ -112,10 +124,10 @@ \subsection{Use case - frequency selection for images }
112124
I. Product type is image or cube \\
113125
II. higher spectral limit < 1Ghz
114126
\begin{verbatim}
115-
SELECT * FROM ivoa.ObscoreRadioExtended
116-
WHERE (dataproduct_type = 'image' OR
117-
dataproduct_type = 'cube') AND
118-
299792458 / em_min < 1e9
127+
SELECT * FROM ivoa.obscore
128+
WHERE (dataproduct_type = 'image'
129+
OR dataproduct_type = 'cube')
130+
AND 299792458 / em_min < 1e9
119131
\end{verbatim}
120132
% Mireille Louys: shall we also look for spectra with these frequency constrains ?
121133

@@ -132,9 +144,9 @@ \subsection{Use case - high resolution data around FRB targets }
132144
\textit{Give me high-resolution data on possible persistent radio sources within an arc second of FRB 121102:}
133145

134146
\begin{verbatim}
135-
SELECT * FROM ivoa.obscore NATURAL JOIN ivoa.obs_radio
136-
WHERE CONTAINS(POINT(s_ra,s_dec),CIRCLE(82.99458,33.14794,0.0003)) = 1 AND
137-
s_resolution_max < 0.001
147+
SELECT * FROM ivoa.obscore NATURAL JOIN ivoa.obscore-radio
148+
WHERE CONTAINS(POINT(s_ra,s_dec),CIRCLE(82.99458,33.14794,0.0003)) = 1
149+
AND s_resolution_max < 0.001
138150
\end{verbatim}
139151

140152
\subsection{Use case - reasonable fidelity}
@@ -143,13 +155,14 @@ \subsection{Use case - reasonable fidelity}
143155
be imaged with reasonable fidelity:}
144156

145157
\begin{verbatim}
146-
SELECT * FROM ivoa.obscore NATURAL JOIN ivoa.obs_radio
147-
WHERE CONTAINS(POINT(s_ra,s_dec),CIRCLE(24.4212500,33.1588889,0.003)) = 1 AND
148-
s_maximum_angular_scale > 0.018 AND
149-
uv_distribution_fill > 0.2 AND
150-
uv_distribution_ecc < 0.75 AND
151-
em_min < 0.21 AND
152-
em_max > 0.21
158+
SELECT * FROM ivoa.obscore
159+
NATURAL JOIN ivoa.obscore-radio
160+
WHERE CONTAINS(POINT(s_ra,s_dec),CIRCLE(24.4212500,33.1588889,0.003)) = 1
161+
AND s_largest_angular_scale > 0.018
162+
AND uv_distribution_fill > 0.2
163+
AND uv_distribution_ecc < 0.75
164+
AND em_min < 0.21
165+
AND em_max > 0.21
153166
\end{verbatim}
154167

155168
% end of Mark's (VLBI) science cases
@@ -161,27 +174,24 @@ \subsection{ use case - visibility data product and target object selection }
161174
I. DataType = visibility \\
162175
II. Target Name = Fornax Cluster \\
163176
\begin{verbatim}
164-
SELECT obs_id FROM ivoa.ObscoreRadioExtended
165-
WHERE dataproduct_type = 'visibility'
166-
target_name = 'Fornax cluster'
177+
SELECT obs_id FROM ivoa.obscore
178+
WHERE dataproduct_type = 'visibility'
179+
AND target_name = 'Fornax cluster'
167180
\end{verbatim}
168181

169182

170-
171-
172-
173183
\subsection{Use case - maximum angular scale selection}
174184
\textit{Any visibility dataset Within an arcec around FRB 121102 where maximum angular scale is larger than 1 minute .}\\ \\
175185
Show me all datasets satisfying:\\
176186
I. Product type is visibility \\
177187
II. Maximum angular scale > 0.018 deg \\
178188
III. Position within 1 arcsec of 82.99458 + 33.14794
179189
\begin{verbatim}
180-
SELECT * FROM ivoa.ObscoreRadioExtended
181-
WHERE dataproduct_type = 'visibility' AND
182-
max_angular_scale > 0.018 AND
183-
max_angular_scale > 0.018 AND
184-
CONTAINS(POINT(s_ra,s_dec),CIRCLE(82.99458, 33.14794,0.0003)) = 1))
190+
SELECT * FROM ivoa.obscore
191+
NATURAL JOIN ivoa.obscore-radio
192+
WHERE dataproduct_type = 'visibility'
193+
AND s_largest_angular_scale_max > 0.018
194+
AND CONTAINS(POINT(s_ra,s_dec),CIRCLE(82.99458, 33.14794,0.0003)) = 1))
185195
\end{verbatim}
186196

187197
\subsection{Use case - maximum angular scale selection with reasonable fidelity}
@@ -194,12 +204,13 @@ \subsection{Use case - maximum angular scale selection with reasonable fidelity}
194204
IV. uv distribtion factor eccentricity < 0.1 \\
195205
V. Position within 1 arcsec of 82.99458 + 33.14794
196206
\begin{verbatim}
197-
SELECT * FROM ivoa.ObscoreRadioExtended
198-
WHERE dataproduct_type = 'visibilty' AND
199-
max_angular_scale > 0.018 AND
200-
uv_distribution_fill > 0.7 AND
201-
uv_distribution_ecc < 0.1 AND
202-
CONTAINS(POINT(s_ra,s_dec),CIRCLE(82.99458, 33.14794,0.0003)) =1))
207+
SELECT * FROM ivoa.obscore
208+
NATURAL JOIN ivoa.obscore-radio
209+
WHERE dataproduct_type = 'visibilty'
210+
AND s_largest_angular_scale_max > 0.018
211+
AND uv_distribution_fill > 0.7
212+
AND uv_distribution_ecc < 0.1
213+
AND CONTAINS(POINT(s_ra,s_dec),CIRCLE(82.99458, 33.14794,0.0003)) =1))
203214
\end{verbatim}
204215

205216
\subsection{Use case - time selection }
@@ -211,11 +222,12 @@ \subsection{Use case - time selection }
211222
IIV. maximal duration per sample < 0.05 s \\
212223

213224
\begin{verbatim}
214-
SELECT * FROM ivoa.ObscoreRadioExtended
215-
WHERE instr_type = 'beamForming' AND
216-
dataproduct_type = 'timeseries' AND
217-
t_resolution < 0.1 AND
218-
t_exp_max < 0.05
225+
SELECT * FROM ivoa.obscore
226+
NATURAL JOIN ivoa.obscore-radio
227+
WHERE instr_type = 'beamForming'
228+
AND dataproduct_type = 'timeseries'
229+
AND t_resolution < 0.1 AND
230+
AND t_exp_max < 0.05
219231
\end{verbatim}
220232

221233
\subsection{Use case - instrument type and mode selection }
@@ -227,29 +239,15 @@ \subsection{Use case - instrument type and mode selection }
227239
III. Target name = 3C 273 or \\
228240
IV. position inside 3 arcmin around 187.2779159404900 +02.0523882305500
229241
\begin{verbatim}
230-
SELECT * FROM ivoa.ObscoreRadioExtended
231-
WHERE instr_type = 'SD' AND
232-
scan_mode = 'raster' AND
233-
(target_name = '3C 273' OR
242+
SELECT * FROM ivoa.obscore
243+
NATURAL JOIN ivoa.obscore-radio
244+
WHERE instr_type = 'SD'
245+
AND scan_mode = 'raster'
246+
AND (target_name = '3C 273' OR
234247
CONTAINS(POINT(s_ra,s_dec), CIRCLE(187.2779159404900, +02.0523882305500,0.05)) = 1)
235248
\end{verbatim}
236249

237250
% use case FB
238-
\subsection{Use case - instrument type selection}
239-
\textit{Any single dish or beam forming dataset with spectral range inside the 500 Mhz - 1Ghz band and in the Coma Cluster.}\\ \\
240-
Show me all datasets satisfying:\\
241-
I. Instrument type is Single dish or beam forming \\
242-
II. lower spectral limit > 500 Mhz \\
243-
III. higher spectral limit < 1Ghz \\
244-
IV. position inside 18 arcmin around 194.93502 +27.91246
245-
\begin{verbatim}
246-
SELECT * FROM ivoa.ObscoreRadioExtended
247-
WHERE (instr_type = 'SD' OR
248-
instr_type = 'beamForming') AND
249-
CONTAINS(POINT(s_ra,s_dec),CIRCLE(194.93502, +27.91246, 0.3) = 1
250-
\end{verbatim}
251-
252-
253251
\subsection{Use case - instrument type and frequency selection }
254252
\textit{Any single dish or beam forming dataset with spectral range inside the 500 Mhz - 1Ghz band and in the Coma Cluster.}\\ \\
255253
Show me all datasets satisfying:\\
@@ -259,17 +257,16 @@ \subsection{Use case - instrument type and frequency selection }
259257
IV. position inside 18 arcmin around 194.93502 +27.91246
260258

261259
\begin{verbatim}
262-
SELECT * FROM ivoa.ObscoreRadioExtended
260+
SELECT * FROM ivoa.obscore
261+
NATURAL JOIN ivoa.obscore-radio
263262
WHERE (instr_type = 'SD' OR
264-
instr_type = 'beamForming') AND
265-
f_min > 500 AND
266-
f_max < 1000 AND
267-
CONTAINS(POINT(s_ra,s_dec),CIRCLE(194.93502, +27.91246, 0.3) = 1
263+
instr_type = 'beamForming')
264+
AND f_min > 500
265+
AND f_max < 1000
266+
AND CONTAINS(POINT(s_ra,s_dec),CIRCLE(194.93502, +27.91246, 0.3) = 1
268267
\end{verbatim}
269268

270269

271-
272-
273270
\subsection{Use case - instrument parameters selection }
274271
\textit{Any interferometry data of good quality and significant spatial resolution from the instrumental point of view. }\\ \\
275272
Show me all datasets satisfying:\\
@@ -278,10 +275,10 @@ \subsection{Use case - instrument parameters selection }
278275
III. antenna maximum distance in meters > 5000 \\
279276

280277
\begin{verbatim}
281-
SELECT * FROM ivoa.ObscoreRadioExtended
282-
WHERE instr_type = 'interferometry' AND
283-
instr_ant_number > 40 AND
284-
instr_ant_max_dist > 5000
278+
SELECT * FROM ivoa.obscore-radio
279+
WHERE instr_type = 'interferometry'
280+
AND instr_tel_number > 40
281+
AND instr_tel_max_dist > 5000
285282
\end{verbatim}
286283

287284

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ DOCNAME = ObsCoreExtensionForRadioData
77
DOCVERSION = 1.0
88

99
# Publication date, ISO format; update manually for "releases"
10-
DOCDATE = 2025-02-28
10+
DOCDATE = 2025-04-25
1111
# What is it you're writing: NOTE, WD, PR, or REC
1212
DOCTYPE = PEN
1313

14-
AUTHOR_EMAIL[email protected]
14+
1515

1616
IVOA_GROUP = Data Model
1717

@@ -20,7 +20,7 @@ IVOA_GROUP = Data Model
2020
SOURCES = $(DOCNAME).tex role_diagram.pdf Appendix.tex
2121

2222
# List of pixel image files to be included in submitted package
23-
FIGURES = role_diagram.pdf
23+
FIGURES = role_diagram.pdf SingleDish.png
2424

2525
# List of PDF figures (for vector graphics)
2626
VECTORFIGURES = role_diagram.svg

ObsCoreExtensionForRadioData.tex

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141

4242

4343

44+
%definition of table names
45+
%\def\radioexttable {ivoa.obscore-radio-ext} % explicit
46+
\def\radioexttable {ivoa.obsradio} % not explicitely related to Obscore
47+
\def\radioexttable {ivoa.obscore-radio}
48+
%definition of standard id for utypes content
49+
%\def\obsradioSTDID {ivo://ivoa.net/std/obscore-radio-ext#table-1.0}
4450

4551
\begin{document}
4652

@@ -432,8 +438,8 @@ \subsection{observational configuration and instrumental parameters}
432438
\subsection{Auxiliary datasets useful for data quality estimation}
433439

434440
Auxiliary datasets such as \emph{uv} distribution map, dirty beam maps, frequency/amplitude plots, phase/amplitude plots are useful for astronomers to check data quality.
435-
In that case DataLink \citep{2023ivoa.spec.1215B} may provide a solution to attach these auxiliary data to ObsCore records. The semantics FIELD in the \{link\}
436-
response will contain \#auxiliary for links to these maps or plots while the content\_qualifier FIELD introduced from 1.1 could contain a vocabulary as defined in ( TO BE COMPLETED ).
441+
In that case DataLink \citep{2023ivoa.spec.1215B} may provide a solution to attach these auxiliary data to ObsCore records. The \texttt{semantics} FIELD in the \{link\}
442+
response will contain \#auxiliary for links to these maps or plots while the \texttt{content\_qualifier} FIELD introduced from 1.1 could contain a term from a defined vocabulary (to be defined) following the IVOA vocabulary definition \citep{2021ivoa.spec.0525D}.
437443

438444

439445
\section{The ivoa.obscore\_radio table}
@@ -607,7 +613,7 @@ \section{The ivoa.obscore\_radio table}
607613
\label{tab:ExtensionAtt_instrumental}
608614
\end{longtable}
609615
\end{landscape}
610-
% c!ommented below : Markus PR version
616+
% commented below : Markus PR version
611617
%\section{Registry Aspects}
612618
%\label{sec:registry}
613619
%
@@ -726,6 +732,6 @@ \section{Registry Aspects}
726732
\input{Appendix.tex}
727733

728734

729-
\bibliography{ivoatex/ivoabib,ivoatex/docrepo,addoc.bib}
735+
\bibliography{ivoatex/ivoabib,ivoatex/docrepo}
730736

731737
\end{document}

0 commit comments

Comments
 (0)