You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Vega" : "The Vega magnitude system uses the Vega as the standard star with an apparent magnitude of zero, regardless of the wavelength filter. The spectrum of Vega used to define this system is a composite spectrum of empirical and synthetic spectra (Bohlin & Gilliland, 2004AJ....127.3508B). m(Vega) = -2.5*log10(F/FVega), where F is flux of an object, and FVega is the calibrated spectrum of Vega.",
28
28
"AB" : "The AB magnitude system uses flat reference spectrum in frequency space. The conversion is chosen such that the V-magnitude corresponds roughly to that in the Johnson system. The monochromatic AB magnitude is defined as m(AB) = 8.9 -2.5*log10(Fv[Jy]) = -48.6 -2.5*log10(Fv[erg s^−1 cm^−2 Hz^−1]), where Fv is the spectral flux density.",
29
29
"ST" : "The ST magnitude system uses flat reference spectrum in wavelength space. The conversion is chosen such that the V-magnitude corresponds roughly to that in the Johnson system. The monochromatic ST magnitude is defined as m(ST) = -21.1 -2.5*log10(Flambda[erg s^−1 cm^−2 Angstrom^−1]), where Flambda is the spectral flux density."
@@ -33,20 +33,20 @@ COMMENT ON TYPE photsys.MagSysType IS '{
33
33
-----------------------------------------------
34
34
--------- Photometric systems -----------------
35
35
36
-
CREATETABLEphotsys.photsys (
36
+
CREATETABLEphotometry.systems (
37
37
id TextPRIMARY KEY
38
38
, description TextNOT NULL
39
39
, bibcode Char(19) UNIQUE
40
40
, svo_id Text UNIQUE
41
41
) ;
42
42
43
-
COMMENT ON TABLE photsys.photsys IS 'Photometric system' ;
44
-
COMMENT ON COLUMN photsys.photsys.id IS 'Photometric system ID' ;
45
-
COMMENT ON COLUMN photsys.photsys.description IS 'Description of the photometric system' ;
46
-
COMMENT ON COLUMN photsys.photsys.bibcode IS '{"description" : "ADS bibcode", "url" : "https://ui.adsabs.harvard.edu/abs/", "ucd" : "meta.ref.url"}' ;
47
-
COMMENT ON COLUMN photsys.photsys.svo_id IS '{"description" : "Query to the Spanish Virtual Observatory", "url" : "http://svo2.cab.inta-csic.es/theory/fps/index.php?", "ucd" : "meta.ref.url"}' ;
43
+
COMMENT ON TABLE photometry.systems IS 'Photometric system' ;
44
+
COMMENT ON COLUMN photometry.systems.id IS 'Photometric system ID' ;
45
+
COMMENT ON COLUMN photometry.systems.description IS 'Description of the photometric system' ;
46
+
COMMENT ON COLUMN photometry.systems.bibcode IS '{"description" : "ADS bibcode", "url" : "https://ui.adsabs.harvard.edu/abs/", "ucd" : "meta.ref.url"}' ;
47
+
COMMENT ON COLUMN photometry.systems.svo_id IS '{"description" : "Query to the Spanish Virtual Observatory", "url" : "http://svo2.cab.inta-csic.es/theory/fps/index.php?", "ucd" : "meta.ref.url"}' ;
@@ -81,76 +81,76 @@ INSERT INTO photsys.photsys VALUES
81
81
82
82
83
83
-------------- Filter description ---------------
84
-
CREATETABLEphotsys.bands (
84
+
CREATETABLEphotometry.bands (
85
85
id textPRIMARY KEY
86
86
, name textNOT NULL
87
-
, photsys textNOT NULLREFERENCESphotsys.photsys (id) ON DELETE restrict ONUPDATE cascade
87
+
, photsys textNOT NULLREFERENCESphotometry.systems (id) ON DELETE restrict ONUPDATE cascade
88
88
, waveref realNOT NULL
89
89
, fwhm realNOT NULL
90
-
, relextreal
90
+
, extinctionreal
91
91
, svo_id text UNIQUE
92
92
) ;
93
-
CREATEINDEXONphotsys.bands (waveref) ;
94
-
CREATEINDEXONphotsys.bands (name) ;
95
-
CREATEINDEXONphotsys.bands (photsys) ;
93
+
CREATEINDEXONphotometry.bands (waveref) ;
94
+
CREATEINDEXONphotometry.bands (name) ;
95
+
CREATEINDEXONphotometry.bands (photsys) ;
96
96
97
-
COMMENT ON TABLE photsys.bands IS 'List of filters' ;
98
-
COMMENT ON COLUMN photsys.bands.id IS 'Filter ID' ;
99
-
COMMENT ON COLUMN photsys.bands.name IS 'Common filter designation' ;
100
-
COMMENT ON COLUMN photsys.bands.photsys IS 'Photometric system' ;
101
-
COMMENT ON COLUMN photsys.bands.waveref IS 'The reference wavelength of the filter transmission' ;
102
-
COMMENT ON COLUMN photsys.bands.fwhm IS 'The Full Width Half Maximum of the filter transmission' ;
103
-
COMMENT ON COLUMN photsys.bands.relext IS 'Relative extinction. Ratio between extintion at λref, Af, and visual extintion, Av' ;
104
-
COMMENT ON COLUMN photsys.bands.svo_id IS '{"description" : "The Spanish Virtual Observatory filter ID", "url" : "http://svo2.cab.inta-csic.es/theory/fps/index.php?id=", "ucd" : "meta.ref.url"}' ;
97
+
COMMENT ON TABLE photometry.bands IS 'List of filters' ;
98
+
COMMENT ON COLUMN photometry.bands.id IS 'Filter ID' ;
99
+
COMMENT ON COLUMN photometry.bands.name IS 'Common filter designation' ;
100
+
COMMENT ON COLUMN photometry.bands.photsys IS 'Photometric system' ;
101
+
COMMENT ON COLUMN photometry.bands.waveref IS 'The reference wavelength of the filter transmission' ;
102
+
COMMENT ON COLUMN photometry.bands.fwhm IS 'The Full Width Half Maximum of the filter transmission' ;
103
+
COMMENT ON COLUMN photometry.bands.extinction IS 'Relative extinction. Ratio between extintion at λref, Af, and visual extintion, Av' ;
104
+
COMMENT ON COLUMN photometry.bands.svo_id IS '{"description" : "The Spanish Virtual Observatory filter ID", "url" : "http://svo2.cab.inta-csic.es/theory/fps/index.php?id=", "ucd" : "meta.ref.url"}' ;
105
105
106
106
107
107
-------------- Calibrated properties -----------
108
-
CREATETABLEphotsys.data (
108
+
CREATETABLEphotometry.calib_bands (
109
109
id textPRIMARY KEY
110
-
, band textNOT NULLREFERENCESphotsys.bands (id) ON DELETE restrict ONUPDATE cascade
111
-
, magsys photsys.MagSysType
110
+
, band textNOT NULLREFERENCESphotometry.bands (id) ON DELETE restrict ONUPDATE cascade
111
+
, magsys photometry.MagSysType
112
112
, UNIQUE (band,magsys)
113
113
) ;
114
114
115
-
COMMENT ON TABLE photsys.data IS 'List of calibrated bands' ;
116
-
COMMENT ON COLUMN photsys.data.id IS 'Calibrated band ID' ;
117
-
COMMENT ON COLUMN photsys.data.band IS 'Band ID' ;
118
-
COMMENT ON COLUMN photsys.data.magsys IS 'Magnitude system' ;
119
-
120
-
121
-
CREATEVIEWphotsys.dataviewAS
122
-
SELECT
123
-
d.*
124
-
, b.name
125
-
, b.waveref
126
-
, b.fwhm
127
-
, b.relext
128
-
, b.svo_id
129
-
, b.photsys
130
-
, s.bibcode
131
-
, s.description
132
-
FROM
133
-
photsys.dataAS d
134
-
LEFT JOINphotsys.bandsAS b ON (b.id=d.band)
135
-
LEFT JOINphotsys.photsysAS s ON (s.id=b.photsys)
136
-
;
137
-
138
-
COMMENT ON VIEW photsys.dataview IS 'Band list' ;
139
-
COMMENT ON COLUMN photsys.dataview.id IS 'Calibrated band ID' ;
140
-
COMMENT ON COLUMN photsys.dataview.band IS 'Band ID' ;
141
-
COMMENT ON COLUMN photsys.dataview.magsys IS 'Magnitude system' ;
142
-
COMMENT ON COLUMN photsys.dataview.name IS '{"description":"Common filter designation","ucd":"instr.bandpass"}' ;
143
-
COMMENT ON COLUMN photsys.dataview.photsys IS 'Photometric system' ;
144
-
COMMENT ON COLUMN photsys.dataview.waveref IS '{"description":"Reference wavelength (pivot wavelength) of the filter transmission", "unit":"Angstrom", "ucd":"em.wl"}' ;
145
-
COMMENT ON COLUMN photsys.dataview.fwhm IS '{"description":"The Full Width Half Maximum of the filter transmission", "unit":"Angstrom", "ucd":"instr.bandwidth" }' ;
146
-
COMMENT ON COLUMN photsys.dataview.relext IS 'Relative extinction. Ratio between extintion at λref, Af, and visual extintion, Av' ;
147
-
COMMENT ON COLUMN photsys.dataview.svo_id IS '{"description" : "The Spanish Virtual Observatory filter ID", "url" : "http://svo2.cab.inta-csic.es/theory/fps/index.php?id=", "ucd" : "meta.ref.ivoid;meta.ref.url"}' ;
148
-
COMMENT ON COLUMN photsys.dataview.description IS 'Description of the photometric system' ;
149
-
COMMENT ON COLUMN photsys.dataview.bibcode IS '{"description" : "ADS bibcode", "url" : "https://ui.adsabs.harvard.edu/abs/", "ucd" : "meta.ref.url"}' ;
115
+
COMMENT ON TABLE photometry.calib_bands IS 'List of calibrated bands' ;
116
+
COMMENT ON COLUMN photometry.calib_bands.id IS 'Calibrated band ID' ;
117
+
COMMENT ON COLUMN photometry.calib_bands.band IS 'Band ID' ;
118
+
COMMENT ON COLUMN photometry.calib_bands.magsys IS 'Magnitude system' ;
119
+
120
+
121
+
--CREATE VIEW photometry.calib_bandsview AS
122
+
--SELECT
123
+
-- d.*
124
+
--, b.name
125
+
--, b.waveref
126
+
--, b.fwhm
127
+
--, b.extinction
128
+
--, b.svo_id
129
+
--, b.photsys
130
+
--, s.bibcode
131
+
--, s.description
132
+
--FROM
133
+
-- photometry.calib_bands AS d
134
+
--LEFT JOIN photometry.bands AS b ON (b.id=d.band)
135
+
--LEFT JOIN photometry.systems AS s ON (s.id=b.photsys)
136
+
--;
137
+
--
138
+
--COMMENT ON VIEW photometry.calib_bandsview IS 'Band list' ;
139
+
--COMMENT ON COLUMN photometry.calib_bandsview.id IS 'Calibrated band ID' ;
140
+
--COMMENT ON COLUMN photometry.calib_bandsview.band IS 'Band ID' ;
141
+
--COMMENT ON COLUMN photometry.calib_bandsview.magsys IS 'Magnitude system' ;
142
+
--COMMENT ON COLUMN photometry.calib_bandsview.name IS '{"description":"Common filter designation","ucd":"instr.bandpass"}' ;
143
+
--COMMENT ON COLUMN photometry.calib_bandsview.photsys IS 'Photometric system' ;
144
+
--COMMENT ON COLUMN photometry.calib_bandsview.waveref IS '{"description":"Reference wavelength (pivot wavelength) of the filter transmission", "unit":"Angstrom", "ucd":"em.wl"}' ;
145
+
--COMMENT ON COLUMN photometry.calib_bandsview.fwhm IS '{"description":"The Full Width Half Maximum of the filter transmission", "unit":"Angstrom", "ucd":"instr.bandwidth" }' ;
146
+
--COMMENT ON COLUMN photometry.calib_bandsview.extinction IS 'Relative extinction. Ratio between extintion at λref, Af, and visual extintion, Av' ;
147
+
--COMMENT ON COLUMN photometry.calib_bandsview.svo_id IS '{"description" : "The Spanish Virtual Observatory filter ID", "url" : "http://svo2.cab.inta-csic.es/theory/fps/index.php?id=", "ucd" : "meta.ref.ivoid;meta.ref.url"}' ;
148
+
--COMMENT ON COLUMN photometry.calib_bandsview.description IS 'Description of the photometric system' ;
149
+
--COMMENT ON COLUMN photometry.calib_bandsview.bibcode IS '{"description" : "ADS bibcode", "url" : "https://ui.adsabs.harvard.edu/abs/", "ucd" : "meta.ref.url"}' ;
150
150
151
151
152
152
--------------- DATA -----------------
153
-
COPY photsys.bands (id,name,photsys,waveref,fwhm,relext,svo_id) FROM STDIN;
153
+
COPY photometry.bands (id,name,photsys,waveref,fwhm,extinction,svo_id) FROM STDIN;
COMMENT ON TYPE photometry.MagMethodType IS '{ "psf":"Point Spread Function photometry for the point source", "visual":"Visual estimate", "aperture":"Aperture photometry", "isophotal":"Magnitude measurement inside a specified isophote", "asymptotic":"Asymptotic (extrapolated) magnitude when the aperture size -> Inf", "model":"Best fit model of the light distribution", "petrosian":"Petrosian adaptively scaled aperture", "kron":"Kron adaptively scaled aperture" }' ;
25
+
26
+
27
+
CREATETABLEphotometry.total (
28
+
record_id TextNOT NULLREFERENCESlayer0.records(id) ONUPDATE cascade ON DELETE restrict
29
+
, band textNOT NULLREFERENCESphotometry.calib_bands (id) ON DELETE restrict ONUPDATE cascade
0 commit comments